华为hcia之ipv6实验手册

华为hcia之ipv6实验手册_第1张图片

R3:

dhcp enable

ipv6

dhcpv6 pool test
address prefix 2000:23::/64
excluded-address 2000:23::2
dns-server 2000:23::2

interface GigabitEthernet0/0/0
ipv6 enable
ipv6 address 2000:12::2/64
ipv6 address auto link-local
undo ipv6 nd ra halt //无状态配置

interface GigabitEthernet0/0/1
ipv6 enable
ipv6 address 2000:23::2/64
ipv6 address auto link-local
undo ipv6 nd ra halt //dhcpv6不能发布网关,开户RA功能发布网关
ipv6 nd autoconfig managed-address-flag
//让undo ipv6 nd ra halt只发布网关,不给用无状态获取IP和前缀,令其M位置位,用dhcpv6的有状态获取
ipv6 nd autoconfig other-flag
//让undo ipv6 nd ra halt只发布网关,不让它发布其它一些干扰信息(mtu、重传等)
dhcpv6 server test

R4

ipv6

interface GigabitEthernet0/0/0
ipv6 enable
ipv6 address auto link-local
ipv6 address auto global

ipv6 route-static 2000:23:: 64 2000:12::2 //设置静态路由

R5

ipv6

dhcp enable

interface GigabitEthernet0/0/1
ipv6 enable
ipv6 address auto link-local
ipv6 address auto global default //获取默认路由
ipv6 address auto dhcp

查看路由:
华为hcia之ipv6实验手册_第2张图片

查看邻居:
华为hcia之ipv6实验手册_第3张图片

ping测试
华为hcia之ipv6实验手册_第4张图片

你可能感兴趣的:(网络工程,华为,服务器,linux)