熟悉IPV6地址的应用场景
掌握IPV6地址的配置方法
实验拓扑如图所示:
想要华为数通配套实验拓扑和配置笔记的朋友们点赞+关注,评论区留下邮箱发给你!
(1)如图所示:在AR上通过静态配置的方法配置IPV6地址
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info-center enable
Info: Information center is disabled.
[Huawei]sysname AR2
[AR2]interface g0/0/0
[AR2-GigabitEthernet0/0/0]ipv6 enable
[AR2-GigabitEthernet0/0/0]ipv6 address 2002:88:99::2/64 //手动配置静态IP地址
[AR2-GigabitEthernet0/0/0]quit
[AR2]interface g0/0/1
[AR2-GigabitEthernet0/0/1]ipv6 enable
[AR2-GigabitEthernet0/0/1]ipv6 address 2001:66:77::2/64 //手动配置静态IP地址
[AR2-GigabitEthernet0/0/1]quit
(2)AR1的接口IP地址,通过无状态化地址自动配置
AR1的配置
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info-center enable
Info: Information center is disabled.
[Huawei]sysname AR1
[AR1]ipv6
[AR1]interface g0/0/0
[AR1-GigabitEthernet0/0/0]ipv6 enable
[AR1-GigabitEthernet0/0/0]ipv6 address auto global //IPV6地址通过无状化自动配置获取
[AR1-GigabitEthernet0/0/0]quit
AR2的配置
[AR2]interface g0/0/1
[AR2-GigabitEthernet0/0/1]undo ipv6 nd ra halt //让路由器发送RA(路由通告)
【技术要点1】无状态化配置获取地址的流程
(3)在AR3上通过有状态化配置
AR1的配置
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info-center enable
Info: Information center is disabled.
[Huawei]sysname AR3
[AR3]dhcp enable
[AR3]ipv6
[AR3]interface g0/0/1
[AR3-GigabitEthernet0/0/1]ipv6 enable
[AR3-GigabitEthernet0/0/1]ipv6 address auto link-local
[AR3-GigabitEthernet0/0/1]ipv6 address auto dhcp
[AR3-GigabitEthernet0/0/1]quit
AR2的配置
[AR2]dhcp enable //启用DHCP
Info: The operation may take a few seconds. Please wait for a moment.done.
[AR2]dhcpv6 pool hcip //创建DHCP地址池名叫HCIP
[AR2-dhcpv6-pool-hcip]address prefix 2002:88:99::/64 //地址网段
[AR2-dhcpv6-pool-hcip]excluded-address 2002:88:99::2 //去除地址
[AR2]interface g0/0/0
[AR2-GigabitEthernet0/0/0]dhcpv6 server hcip //在接口下调用
【技术要点】
(1)在AR1的g0/0/0口抓包分析
RS的包文格式如图所示:
RA的包文格式如图所示:
(2)抓包分析DHCP
Solicit的包文格式如图所示:
Advertise的包文格式如图所示:
Request的包文格式如图所示:
Reply的包文格式如图所示:
想要华为数通配套实验拓扑和配置笔记的朋友们点赞+关注,评论区留下邮箱发给你!