Имеется роутер на Debian squeeze. Доступ к ipv6 через брокера.
/etc/network/interfaces
auto lo
iface lo inet loopback
allow-hotplug eth0
iface eth0 inet static
address 94.19.137.57
netmask 255.255.254.0
gateway 94.19.136.1
dns-nameserver 192.168.1.1
allow-hotplug eth1
iface eth1 inet static
address 192.168.1.1
netmask 255.255.255.0
iface eth1 inet6 static
address 2001:470:27:742::1
netmask 64
auto 6in4-he
iface 6in4-he inet6 v4tunnel
address 2001:470:27:742::2
netmask 64
endpoint 216.66.80.90
local 94.19.137.57
ttl 255
up ip route add ::/0 dev 6in4-he
down ip route del ::/0 dev 6in4-he
/etc/radvd.conf
interface eth1
{
AdvSendAdvert on;
AdvLinkMTU 1280;
prefix 2001:470:27:742::/64
{
AdvOnLink on;
AdvAutonomous on;
};
};
На самом роутере всё нормально
[root@margaret:~]# ping6 ipv6.google.com -c 4
PING ipv6.google.com(2a00:1450:8001::63) 56 data bytes
64 bytes from 2a00:1450:8001::63: icmp_seq=1 ttl=56 time=50.8 ms
64 bytes from 2a00:1450:8001::63: icmp_seq=2 ttl=56 time=50.6 ms
64 bytes from 2a00:1450:8001::63: icmp_seq=3 ttl=56 time=50.1 ms
64 bytes from 2a00:1450:8001::63: icmp_seq=4 ttl=56 time=51.7 ms
--- ipv6.google.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3003ms
rtt min/avg/max/mdev = 50.121/50.860/51.778/0.617 ms
Но на клиентах ни один ipv6 хост не пингуется, пока не пинганёшь роутер.
[pentium02@einstein:~]$ ping6 ipv6.google.com
PING ipv6.google.com(2a00:1450:8001::63) 56 data bytes
^C
--- ipv6.google.com ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 2999ms
[pentium02@einstein:~]$ ping6 2001:470:27:742::1
PING 2001:470:27:742::1(2001:470:27:742::1) 56 data bytes
64 bytes from 2001:470:27:742::1: icmp_seq=1 ttl=64 time=1.07 ms
64 bytes from 2001:470:27:742::1: icmp_seq=2 ttl=64 time=0.259 ms
^C
--- 2001:470:27:742::1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 0.259/0.667/1.075/0.408 ms
[pentium02@einstein:~]$ ping6 ipv6.google.com
PING ipv6.google.com(2a00:1450:8001::63) 56 data bytes
64 bytes from 2a00:1450:8001::63: icmp_seq=1 ttl=55 time=63.4 ms
64 bytes from 2a00:1450:8001::63: icmp_seq=2 ttl=55 time=49.5 ms
64 bytes from 2a00:1450:8001::63: icmp_seq=3 ttl=55 time=50.4 ms
64 bytes from 2a00:1450:8001::63: icmp_seq=4 ttl=55 time=51.2 ms
^C
--- ipv6.google.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3001ms
rtt min/avg/max/mdev = 49.592/53.698/63.457/5.665 ms