16.3-IPv6无状态地址配置

目录 网络
16.3-IPv6无状态地址配置-下一朵云
图1 IPv6无状态地址自动配置

网络节点向相连的路由器发送RS,请求地址前缀信息

路由器通过发送路由器通告RA,回复地址前缀

示例实验

16.3-IPv6无状态地址配置-下一朵云
图2 实验拓扑

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报文

16.3-IPv6无状态地址配置-下一朵云
图3 RS\RA报文
>>本文为下一朵云的原创文章,转载请附上原文出处链接及本声明
>>原文链接地址:16.3-IPv6无状态地址配置

暂无评论

发表评论

电子邮件地址不会被公开。 必填项已用*标注