实验15 ND基本配置
实验任务一:配置ND
-
建立物理连接
-
Ipv6地址配置
[PCA-GigabitEthernet0/0]ipv6 address 1::2/64
[RTA-GigabitEthernet0/0]ipv6 address 1::1/64
[PCA]ping ipv6 1::1
Ping6(56 data bytes) 1::2 --> 1::1, press CTRL_C to break
56 bytes from 1::1, icmp_seq=0 hlim=64 time=2.000 ms
56 bytes from 1::1, icmp_seq=1 hlim=64 time=1.000 ms
56 bytes from 1::1, icmp_seq=2 hlim=64 time=1.000 ms
56 bytes from 1::1, icmp_seq=3 hlim=64 time=0.000 ms
56 bytes from 1::1, icmp_seq=4 hlim=64 time=1.000 ms
--- Ping6 statistics for 1::1 ---
5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.000/1.000/2.000/0.632 ms
[PCA]%May 24 23:25:24:719 2018 PCA PING/6/PING_STATISTICS: Ping6 statistics for 1::1: 5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss, round-trip min/avg/max/std-dev = 0.000/1.000/2.000/0.632 ms.
- ND协议配置
缺省情况下,路由器接口禁止向外发送RA报文,PC无法自动获取IPV6地址。
[RTA-GigabitEthernet0/0]undo ipv6 nd ra halt
[PCA-GigabitEthernet0/0]ipv6 address auto
[PCA-GigabitEthernet0/0]ping ipv6 1::1
Ping6(56 data bytes) 1::8E74:B7FF:FE0D:105 --> 1::1, press CTRL_C to break
56 bytes from 1::1, icmp_seq=0 hlim=64 time=1.000 ms
56 bytes from 1::1, icmp_seq=1 hlim=64 time=0.000 ms
56 bytes from 1::1, icmp_seq=2 hlim=64 time=0.000 ms
56 bytes from 1::1, icmp_seq=3 hlim=64 time=0.000 ms
56 bytes from 1::1, icmp_seq=4 hlim=64 time=1.000 ms
--- Ping6 statistics for 1::1 ---
5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.000/0.400/1.000/0.490 ms
[PCA-GigabitEthernet0/0]%May 24 23:40:39:712 2018 PCA PING/6/PING_STATISTICS: Ping6 statistics for 1::1: 5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss, round-trip min/avg/max/std-dev = 0.000/0.400/1.000/0.490 ms.
[RTA-GigabitEthernet0/0]display ipv6 neighbors all
Type: S-Static D-Dynamic O-Openflow R-Rule I-Invalid
IPv6 address Link layer VID Interface/Link ID State T Age
1::2 8c74-b70d-0105 N/A GE0/0 STALE D 1086
1::8E74:B7FF:FE0D:105 8c74-b70d-0105 N/A GE0/0 STALE D 171
FE80::8E74:B7FF:FE0D:105 8c74-b70d-0105 N/A GE0/0 STALE D 161
链路地址:FE80::8E74:B7FF:FE0D:105 MAC地址:8c74-b70d-0105 EUI-64算法生成8E74:B7FF:FE0D:105,加上FE80::就可以生成链路本地地址。