华为IPV6-DHCPV3通信配置

1.[AR1]ipv6 //开启IPV6功能

2.[AR1]dhcp enable //启用DHCP功能

3.[AR1]dhcpv6 pool AR1 //创建一个名为AR1的地址池

4.[AR1-dhcpv6-pool-AR1]address prefix 2020::/64 //下发地址的前缀为:2020::/64

5.[AR1-dhcpv6-pool-AR1]excluded-address 2020::1 //排除地址(留些地址静态使用或者备用)

6.[AR1-dhcpv6-pool-AR1]dns-server 8::8 //dns服务器地址

[AR1-dhcpv6-pool-AR1]dns-domain-name taobao.com //dns服务器域名

7.[AR1]interface g0/0/0 //进入接口

8.[AR1-GigabitEthernet0/0/0]ipv6 enable //启用ipv6功能

9.[AR1-GigabitEthernet0/0/0]ipv6 address 2020::1 64 //配置接口地址

10.[AR1-GigabitEthernet0/0/0]ipv6 nd autoconfig managed-address-flag //将ra报文中的m为置1

11.[AR1-GigabitEthernet0/0/0]ipv6 nd autoconfig other-flag //将ra报文中的o位置1

12.[AR1-GigabitEthernet0/0/0]dhcpv6 server AR1 //调用刚才配置的地址池

13.[AR1-GigabitEthernet0/0/0]undo ipv6 nd ra halt //触发路由器下发ra报文