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报文
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。