16.3-IPv6无状态地址配置
网络节点向相连的路由器发送RS,请求地址前缀信息
路由器通过发送路由器通告RA,回复地址前缀
示例实验
R1配置命令:
[R1]ipv6
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ipv6 enable
[R1-GigabitEthernet0/0/0]ipv6 add 2001::1/64
[R1-GigabitEthernet0/0/0]undo ipv6 nd ra halt
配置IPv6地址,打开下发前缀功能
PC配置命令:
[PC]ipv6
[PC]int g0/0/0
[PC-GigabitEthernet0/0/0]ipv6 en
[PC-GigabitEthernet0/0/0]ipv6 add auto global
查看PC的IPv6地址:
[PC]dis ipv6 int g0/0/0
GigabitEthernet0/0/0 current state : UP
IPv6 protocol current state : UP
IPv6 is enabled, link-local address is FE80::2E0:FCFF:FE67:30FB
Global unicast address(es):
2001::2E0:FCFF:FE67:30FB,
subnet is 2001::/64 [SLAAC 1970-01-01 00:10:11 2592000S]
Joined group address(es):
FF02::1:FF67:30FB
FF02::2
FF02::1
MTU is 1500 bytes
ND DAD is enabled, number of DAD attempts: 1
ND reachable time is 30000 milliseconds
ND retransmit interval is 1000 milliseconds
Hosts use stateless autoconfig for addresses
其中IPv6 GUA地址为2001::2E0:FCFF:FE67:30FB/64
RS\RA报文
本文链接:https://www.orcy.net.cn/2698.html,转载请附上原文出处链接
发表评论