配置路由器ipv6位址池方法:
ipv6配置
sys
system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]ipv6 //開啟IPV6功能
[Huawei]dhcp enable 開啟DHCP功能
Info: The operation may take a few seconds. Please wait for a moment.done.
[Huawei]dhcpv6 pool ITkongjian 啟用一個ipv6的位址池名稱
[Huawei-dhcpv6-pool-uundoncin]address prefix 2023::/64 位址池字首2023::64網段
[Huawei-dhcpv6-pool-uundoncin]excluded-address 2023::100 預留一個位址
[Huawei-dhcpv6-pool-uundoncin]dns-domain-name uundoncin.nat 啟用一個dns域,域名是ITkongjian.nat
[Huawei-dhcpv6-pool-uundoncin]dns-server 2088::88 dns位址
[Huawei-dhcpv6-pool-uundoncin]q
接口
[Huawei]interface g0/0/1
[Huawei-GigabitEthernet0/0/1]ipv6 enable 接口下使用ipv6功能
Info: Please enable IPv6 function in system view.
[Huawei-GigabitEthernet0/0/1]ipv6 address 2023::1/64
[Huawei-GigabitEthernet0/0/1]ipv6 nd autoconfig managed-address-flag 配置m位置=1
[Huawei-GigabitEthernet0/0/1]ipv6 nd autoconfig other-flag 配置o位置=0
[Huawei-GigabitEthernet0/0/1]dhcpv6 server ITkongjian 接口調用位址池
[Huawei-GigabitEthernet0/0/1]undo ipv6 nd ra halt //觸發路由器下發ra封包
觸發路由器
總結:1、開啟IPV6功能啟用ipv6位址池,配置位址池字首。
2、在接口下使用這個位址池。