我目前在我的专用networking上为Server 2008 R2设置IPv6和DHCPv6进行testing。 我能够通过configuration一个静态的,然后设置示波器来获得DHCPv6的工作。 我也能够configuration我的Centos框来获得DHCPv6。 我有问题让Windows 7获得正确的前缀长度。
Centos框正确configuration其链接本地和唯一的本地地址:
inet6 addr: fd00:17ef::383a:a9d:4735:9c73/64 Scope:Global inet6 addr: fe80::400b:1eff:feb5:f9be/64 Scope:Link
而Windows 2008 R2服务器(DHCPv6)也configuration正确:
IPv6 Address. . . . . . . . . . . : fd00:17ef::80ed:975c:20ac:fbcd IPv6 Address. . . . . . . . . . . : fd00:17ef::80ed:975c:20ac:fbce Link-local IPv6 Address . . . . . : fe80::bd83:34ec:9de4:41d7%11
Windows 7框似乎具有正确的IPv6地址:
IPv6 Address. . . . . . . . . . . : fd00:17ef::395a:803e:4fc5:dfae
Centos服务器可以在所有IPv6接口上ping DHCP服务器:
[root@jofs1 ~]# ping6 -c 1 fd00:17ef::80ed:975c:20ac:fbcd PING fd00:17ef::80ed:975c:20ac:fbcd(fd00:17ef::80ed:975c:20ac:fbcd) 56 data bytes 64 bytes from fd00:17ef::80ed:975c:20ac:fbcd: icmp_seq=1 ttl=128 time=0.422 ms [root@jofs1 ~]# ping6 -c 1 fd00:17ef::80ed:975c:20ac:fbce PING fd00:17ef::80ed:975c:20ac:fbce(fd00:17ef::80ed:975c:20ac:fbce) 56 data bytes 64 bytes from fd00:17ef::80ed:975c:20ac:fbce: icmp_seq=1 ttl=128 time=0.378 ms [root@jofs1 ~]# ping6 -c 1 -I eth0 fe80::bd83:34ec:9de4:41d7 PING fe80::bd83:34ec:9de4:41d7(fe80::bd83:34ec:9de4:41d7) from fe80::400b:1eff:feb5:f9be eth0: 56 data bytes 64 bytes from fe80::bd83:34ec:9de4:41d7: icmp_seq=1 ttl=128 time=0.194 ms
Server 2008 R2服务器可以ping Centos服务器:
C:\Windows\system32>ping -n 1 fd00:17ef::383a:a9d:4735:9c73 Pinging fd00:17ef::383a:a9d:4735:9c73 with 32 bytes of data: Reply from fd00:17ef::383a:a9d:4735:9c73: time<1ms C:\Windows\system32>ping -n 1 fe80::400b:1eff:feb5:f9be Pinging fe80::400b:1eff:feb5:f9be with 32 bytes of data: Reply from fe80::400b:1eff:feb5:f9be: time<1ms
Windows 7框无法通过DHCP分配的地址ping这两个服务器中的任何一个:
C:\Windows\system32>ping -n 1 fd00:17ef::383a:a9d:4735:9c73 Pinging fd00:17ef::383a:a9d:4735:9c73 with 32 bytes of data: PING: transmit failed. General failure. C:\Windows\system32>ping -n 1 fd00:17ef::383a:a9d:4735:9c73 Pinging fd00:17ef::383a:a9d:4735:9c73 with 32 bytes of data: PING: transmit failed. General failure.
链路本地地址工作。 检查路由列表,似乎前缀没有正确设置:
11 276 fd00:17ef::395a:803e:4fc5:dfae/128 On-link
netsh显示站点前缀长度为64.我无法find有关为Server 2008 R2服务器或Windows 7客户端设置IPv6前缀长度的任何文档。 有没有办法设置正确的前缀长度?
我知道Server 2008 R2 DHCPv6只允许/ 64范围。 我想知道是否有一个我错过了允许它推出/ 64范围的设置。
如果你在Windows客户端机器上发出route print命令,你会意识到有这样的东西存在:
::1/128 On-link fe80::/64 On-link fe80::/64 On-link fe80::4538:b2f1:41f0:213/128 On-link fe80::88a8:ec4a:b2d:fea6/128 On-link fd00:17ef::395a:803e:4fc5:dfae/128 On-link
请注意, 您的fd00:17ef::是没有/ 64前缀的,这是因为Windows中的DHCPv6没有发布前缀长度。 路由器应该这样做。 如果您在IPv6testing实验室中没有路由器,则无法正确testingIPv6。
但是,如果您想将Windows机器用作IPv6路由器,则可以轻松修复(在Windows服务器上运行):
netsh interface ipv6 set interface "Local Area Connection" advertise=enabled netsh interface ipv6 set route fd00:17ef::/64 "Local Area Connection" publish=yes
请注意,您应该根据RFC 4193生成ULA地址 – 或点击此处: http : //unique-local-ipv6.com/
PS:我已经意识到这是3岁的问题,但谷歌仍然返回它,所以我做了一些研究,把它放在这里,让别人可以find:)