我正在尝试将我的 ISP IPv6 路由到我的 LAN。一切似乎都正常,但客户端(在 Win7、Ubuntu 上)无法访问任何 IPv6 网络。缺少了一些东西,但我不知道是什么。
谢谢。
ISP 路由器 <-> eth1
eth2 <-> 局域网
服务器配置 Ubuntu 15.04 - 3.19.0-15-通用
eth1 Link encap:Ethernet HWaddr 00:15:5d:00:c8:02
inet addr:192.168.100.250 Bcast:192.168.100.255 Mask:255.255.255.0
inet6 addr: fe80::215:5dff:fe00:c802/64 Scope:Link
inet6 addr: 2001:xxxx:yyyy:aca1:215:5dff:fe00:c802/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1558 errors:0 dropped:0 overruns:0 frame:0
TX packets:1301 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:400852 (400.8 KB) TX bytes:231257 (231.2 KB)
eth2 Link encap:Ethernet HWaddr 00:15:5d:00:c8:03
inet6 addr: fe80::215:5dff:fe00:c803/64 Scope:Link
inet6 addr: 2001:xxxx:yyyy:aca1:215:5dff:fe00:c803/64 Scope:Global
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:472 errors:0 dropped:0 overruns:0 frame:0
TX packets:784 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:93975 (93.9 KB) TX bytes:115547 (115.5 KB)
radvd配置文件
interface eth2 {
AdvSendAdvert on;
MinRtrAdvInterval 3;
MaxRtrAdvInterval 10;
RDNSS 2001:4860:4860::8888 2001:4860:4860::8844 {};
prefix 2001:xxxx:yyyy:aca1::/64 {
AdvOnLink on;
AdvAutonomous on;
AdvRouterAddr on;
};
route ::/0 {
};
};
系统配置文件(仅 net.ipv6.conf.all.forwarding=1 不起作用)
net.ipv6.conf.eth2.accept_ra=2
net.ipv6.conf.all.accept_ra=2
net.ipv6.conf.eth1.accept_ra=2
net.ipv6.conf.all.forwarding=1
net.ipv4.ip_forward=1
net.ipv6.conf.default.forwarding=1
net.ipv6.conf.eth1.forwarding=1
net.ipv6.conf.eth2.forwarding=1
服务器连接
root@server:~$ ping6 www.google.com
PING www.google.com(2800:3f0:4003:c01::67) 56 data bytes
64 bytes from 2800:3f0:4003:c01::67: icmp_seq=1 ttl=57 time=58.7 ms
64 bytes from 2800:3f0:4003:c01::67: icmp_seq=2 ttl=57 time=58.8 ms
64 bytes from 2800:3f0:4003:c01::67: icmp_seq=3 ttl=57 time=58.8 ms
64 bytes from 2800:3f0:4003:c01::67: icmp_seq=4 ttl=57 time=58.7 ms
root@server:~$ ping www.google.com
PING www.google.com (64.233.190.99) 56(84) bytes of data.
64 bytes from gsademo18.google.com (64.233.190.99): icmp_seq=1 ttl=49 time=56.2 ms
64 bytes from gsademo18.google.com (64.233.190.99): icmp_seq=2 ttl=49 time=56.4 ms
64 bytes from gsademo18.google.com (64.233.190.99): icmp_seq=3 ttl=49 time=56.5 ms
64 bytes from gsademo18.google.com (64.233.190.99): icmp_seq=4 ttl=49 time=56.3 ms
ip -6个月(客户端浏览 ipv6.google.com 时)
4: eth2 inet6 2001:xxxx:yyyy:aca1:215:5dff:fe00:c803/64 scope global mngtmpaddr dynamic
valid_lft 86400sec preferred_lft 14400sec
prefix 2001:xxxx:yyyy:aca1::/64 dev eth2 onlink autoconf valid 86400 preferred 14400
Unknown message: 0000005c 00000044 00000000
fe80::1 dev eth1 lladdr 44:55:b1:d5:05:76 router REACHABLE
4: eth2 inet6 2001:xxxx:yyyy:aca1:215:5dff:fe00:c803/64 scope global mngtmpaddr dynamic
valid_lft 86400sec preferred_lft 14400sec
prefix 2001:xxxx:yyyy:aca1::/64 dev eth2 onlink autoconf valid 86400 preferred 14400
Unknown message: 0000005c 00000044 00000000
4: eth2 inet6 2001:xxxx:yyyy:aca1:215:5dff:fe00:c803/64 scope global mngtmpaddr dynamic
valid_lft 86400sec preferred_lft 14400sec
prefix 2001:xxxx:yyyy:aca1::/64 dev eth2 onlink autoconf valid 86400 preferred 14400
Unknown message: 0000005c 00000044 00000000
fe80::1 dev eth1 lladdr 44:55:b1:d5:05:76 router STALE
4: eth2 inet6 2001:xxxx:yyyy:aca1:215:5dff:fe00:c803/64 scope global mngtmpaddr dynamic
valid_lft 86400sec preferred_lft 14400sec
prefix 2001:xxxx:yyyy:aca1::/64 dev eth2 onlink autoconf valid 86400 preferred 14400
Unknown message: 0000005c 00000044 00000000
fe80::1 dev eth1 lladdr 44:55:b1:d5:05:76 router REACHABLE
2001:xxxx:yyyy:aca1:5c5e:3a92:6239:64fd dev br0 lladdr 00:15:5d:00:c8:06 STALE
4: eth2 inet6 2001:xxxx:yyyy:aca1:215:5dff:fe00:c803/64 scope global mngtmpaddr dynamic
valid_lft 86400sec preferred_lft 14400sec
prefix 2001:xxxx:yyyy:aca1::/64 dev eth2 onlink autoconf valid 86400 preferred 14400
Unknown message: 0000005c 00000044 00000000
fe80::811e:d436:9ffa:ae76 dev br0 lladdr 00:15:5d:00:c8:06 REACHABLE
4: eth2 inet6 2001:xxxx:yyyy:aca1:215:5dff:fe00:c803/64 scope global mngtmpaddr dynamic
valid_lft 86400sec preferred_lft 14400sec
prefix 2001:xxxx:yyyy:aca1::/64 dev eth2 onlink autoconf valid 86400 preferred 14400
Unknown message: 0000005c 00000044 00000000
fe80::1 dev eth1 lladdr 44:55:b1:d5:05:76 router STALE
fe80::1 dev eth1 lladdr 44:55:b1:d5:05:76 router REACHABLE
4: eth2 inet6 2001:xxxx:yyyy:aca1:215:5dff:fe00:c803/64 scope global mngtmpaddr dynamic
valid_lft 86400sec preferred_lft 14400sec
prefix 2001:xxxx:yyyy:aca1::/64 dev eth2 onlink autoconf valid 86400 preferred 14400
Unknown message: 0000005c 00000044 00000000
4: eth2 inet6 2001:xxxx:yyyy:aca1:215:5dff:fe00:c803/64 scope global mngtmpaddr dynamic
valid_lft 86400sec preferred_lft 14400sec
prefix 2001:xxxx:yyyy:aca1::/64 dev eth2 onlink autoconf valid 86400 preferred 14400
Unknown message: 0000005c 00000044 00000000
4: eth2 inet6 2001:xxxx:yyyy:aca1:215:5dff:fe00:c803/64 scope global mngtmpaddr dynamic
valid_lft 86400sec preferred_lft 14400sec
prefix 2001:xxxx:yyyy:aca1::/64 dev eth2 onlink autoconf valid 86400 preferred 14400
Unknown message: 0000005c 00000044 00000000
fe80::1 dev eth1 lladdr 44:55:b1:d5:05:76 router STALE
4: eth2 inet6 2001:xxxx:yyyy:aca1:215:5dff:fe00:c803/64 scope global mngtmpaddr dynamic
valid_lft 86400sec preferred_lft 14400sec
prefix 2001:xxxx:yyyy:aca1::/64 dev eth2 onlink autoconf valid 86400 preferred 14400
Unknown message: 0000005c 00000044 00000000
fe80::1 dev eth1 lladdr 44:55:b1:d5:05:76 router REACHABLE
4: eth2 inet6 2001:xxxx:yyyy:aca1:215:5dff:fe00:c803/64 scope global mngtmpaddr dynamic
valid_lft 86400sec preferred_lft 14400sec
prefix 2001:xxxx:yyyy:aca1::/64 dev eth2 onlink autoconf valid 86400 preferred 14400
Unknown message: 0000005c 00000044 00000000
4: eth2 inet6 2001:xxxx:yyyy:aca1:215:5dff:fe00:c803/64 scope global mngtmpaddr dynamic
valid_lft 86400sec preferred_lft 14400sec
prefix 2001:xxxx:yyyy:aca1::/64 dev eth2 onlink autoconf valid 86400 preferred 14400
Unknown message: 0000005c 00000044 00000000
Win7 客户端 ipconfig
Adaptador Ethernet Conexão local:
Sufixo DNS específico de conexão. . . . . . : xxxxx
Endereço IPv6 . . . . . . . . . . . . . . . : 2001:xxxx:yyyy:aca1:811e:d436:9
ffa:ae76
Endereço IPv6 Temporário. . . . . . . . . . : 2001:xxxx:yyyy:aca1:5c5e:3a92:6
239:64fd
Endereço IPv6 de link local . . . . . . . . : fe80::811e:d436:9ffa:ae76%11
Endereço IPv4. . . . . . . . . . . . . . . : 192.168.53.10
Máscara de Sub-rede . . . . . . . . . . . . : 255.255.255.0
Gateway Padrão. . . . . . . . . . . . . . . : fe80::215:5dff:fe00:c803%11
192.168.53.250
C:\Users\windows7>ping -4 www.google.com
Disparando www.google.com [64.233.190.103] com 32 bytes de dados:
Resposta de 64.233.190.103: bytes=32 tempo=63ms TTL=48
Resposta de 64.233.190.103: bytes=32 tempo=58ms TTL=48
Resposta de 64.233.190.103: bytes=32 tempo=58ms TTL=48
C:\Users\windows7>ping -6 www.google.com
Disparando www.google.com [2800:3f0:4003:c01::63] com 32 bytes de dados:
Esgotado o tempo limite do pedido.
Esgotado o tempo limite do pedido.
编辑1: 我的 ISP 为我提供了一个带有动态前缀的公共 /64 地址。我的网络使用 radvd 进行分配(curl 脚本,用于检测前缀更改)。那么,可以进行路由吗?我该怎么做?