一 组网信息

二 设备配置
2.1 R1设备配置
hostname R1
!
interface GigabitEthernet 0/0
ipv6 address 1::/127
!
interface Loopback 0
ipv6 address 2::2/128
!
ipv6 route 3::3/128 1::1
!
2.2 R2设备配置
hostname R2
!
interface GigabitEthernet 0/0
ipv6 address 1::1/127
!
interface Loopback 0
ipv6 address 3::3/128
!
ipv6 route 2::2/128 1::
!
三 设备状态查看
3.1 R1设备状态查看
R1#sh ipv6 interface brief
GigabitEthernet 0/0 [up/up]
1::
FE80::5200:FF:FE01:1
Loopback 0 [up/up]
2::2
FE80::5200:FF:FE01:1
R1#show ipv6 route
IPv6 routing table name - Default - 9 entries
Codes: C - Connected, L - Local, S - Static
R - RIP, O - OSPF, B - BGP, I - IS-IS, V - Overflow route
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
SU - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
IA - Inter area, EV - BGP EVPN, N - Nd to host
C 1::/127 via GigabitEthernet 0/0, directly connected
L 1::/128 via GigabitEthernet 0/0, local host
LC 2::2/128 via Loopback 0, local host
S 3::3/128 [1/0] via 1::1
(recursive via 1::1, GigabitEthernet 0/0) 递归到了0/0接口
C FE80::/10 via ::1, Null0
C FE80::/64 via GigabitEthernet 0/0, directly connected
L FE80::5200:FF:FE01:1/128 via GigabitEthernet 0/0, local host
C FE80::/64 via Loopback 0, directly connected
L FE80::5200:FF:FE01:1/128 via Loopback 0, local host
R1#
R1#show ipv6 neighbors
IPv6 Address Linklayer Addr Interface
1:: 5000.0001.0001 GigabitEthernet 0/0
1::1 5000.0002.0001 GigabitEthernet 0/0
FE80::5200:FF:FE01:1 5000.0001.0001 GigabitEthernet 0/0
R1#
R1#show ipv6 neighbors detail
IPv6 Address Linklayer Addr Interface State Age(s) Ask Vid Inner vid Vni Port Gid Location
1:: 5000.0001.0001 Gi0/0 REACH/H - 0 0 0 0 - 0 Local
1::1 5000.0002.0001 Gi0/0 STALE/R 3414 0 0 0 0 - 0 Local
FE80::5200:FF:FE01:1 5000.0001.0001 Gi0/0 REACH/H - 0 0 0 0 - 0 Local
R1#

R1#show ipv6 int
interface GigabitEthernet 0/0 is Up, ifindex: 1, vrf_id 0
address(es):
Mac Address: 50:00:00:01:00:01
INET6: 1:: , subnet is 1::/127
INET6: FE80::5200:FF:FE01:1 , subnet is FE80::/64 //本地链路地址,通过eui-64转换
Joined group address(es):
FF01::1 //FF00::/8为IPV6组播地址
FF02::1
FF02::2
FF02::1:FF00:0
FF02::1:FF01:1 //FF02:0:0:0:0:1:FF为被请求节点组播地址 104(16*6+8=104)位固定格式,解决该地址主要用于获取同一链路上邻居节点的链路层地址及实现重复地址检测
MTU is 1500 bytes
ICMP error messages limited to one every 100 milliseconds
ICMP redirects are enabled
ND DAD is enabled, number of DAD attempts: 1
ND reachable time is 30000 milliseconds
ND stale time is 3600 seconds
ND advertised reachable time is 0 milliseconds
ND retransmit interval is 1000 milliseconds
ND advertised retransmit interval is 0 milliseconds
ND router advertisements are sent every 600 seconds<480--720>
ND router advertisements live for 1800 seconds
interface Loopback 0 is Up, ifindex: 16385, vrf_id 0
address(es):
Mac Address: N/A
INET6: 2::2 [ NODAD ], subnet is 2::2/128
INET6: FE80::5200:FF:FE01:1 [ NODAD ], subnet is FE80::/64
Joined group address(es):
FF01::1
FF02::1
FF02::2
FF02::1:FF00:2
FF02::1:FF01:1
R1#
3.2 R2设备状态查看
R2#show ipv6 in b
GigabitEthernet 0/0 [up/up]
1::1
FE80::5200:FF:FE02:1
Loopback 0 [up/up]
FE80::5200:FF:FE02:1
3::3
R2#
R2#show ipv6 route
IPv6 routing table name - Default - 9 entries
Codes: C - Connected, L - Local, S - Static
R - RIP, O - OSPF, B - BGP, I - IS-IS, V - Overflow route
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
SU - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
IA - Inter area, EV - BGP EVPN, N - Nd to host
C 1::/127 via GigabitEthernet 0/0, directly connected
L 1::1/128 via GigabitEthernet 0/0, local host
S 2::2/128 [1/0] via 1::
(recursive via 1::, GigabitEthernet 0/0)
LC 3::3/128 via Loopback 0, local host
C FE80::/10 via ::1, Null0
C FE80::/64 via GigabitEthernet 0/0, directly connected
L FE80::5200:FF:FE02:1/128 via GigabitEthernet 0/0, local host
C FE80::/64 via Loopback 0, directly connected
L FE80::5200:FF:FE02:1/128 via Loopback 0, local host
R2#
R2#show ipv6 neighbors
IPv6 Address Linklayer Addr Interface
1:: 5000.0001.0001 GigabitEthernet 0/0
1::1 5000.0002.0001 GigabitEthernet 0/0
FE80::5200:FF:FE02:1 5000.0002.0001 GigabitEthernet 0/0
R2#
R2#show ipv6 neighbors detail
IPv6 Address Linklayer Addr Interface State Age(s) Ask Vid Inner vid Vni Port Gid Location
1:: 5000.0001.0001 Gi0/0 STALE/R 3464 0 0 0 0 - 0 Local
1::1 5000.0002.0001 Gi0/0 REACH/H - 0 0 0 0 - 0 Local
FE80::5200:FF:FE02:1 5000.0002.0001 Gi0/0 REACH/H - 0 0 0 0 - 0 Local
R2#

R2#
R2#show ipv6 interface
interface GigabitEthernet 0/0 is Up, ifindex: 1, vrf_id 0
address(es):
Mac Address: 50:00:00:02:00:01
INET6: 1::1 , subnet is 1::/127
INET6: FE80::5200:FF:FE02:1 , subnet is FE80::/64
Joined group address(es):
FF01::1
FF02::1
FF02::2
FF02::1:FF00:0
FF02::1:FF00:1
FF02::1:FF02:1
MTU is 1500 bytes
ICMP error messages limited to one every 100 milliseconds
ICMP redirects are enabled
ND DAD is enabled, number of DAD attempts: 1
ND reachable time is 30000 milliseconds
ND stale time is 3600 seconds
ND advertised reachable time is 0 milliseconds
ND retransmit interval is 1000 milliseconds
ND advertised retransmit interval is 0 milliseconds
ND router advertisements are sent every 600 seconds<480--720>
ND router advertisements live for 1800 seconds
interface Loopback 0 is Up, ifindex: 16385, vrf_id 0
address(es):
Mac Address: N/A
INET6: FE80::5200:FF:FE02:1 [ NODAD ], subnet is FE80::/64
INET6: 3::3 [ NODAD ], subnet is 3::3/128
Joined group address(es):
FF01::1
FF02::1
FF02::2
FF02::1:FF00:3
FF02::1:FF02:1
R2#
四 IPV6业务测试-OK
4.1 R1 IPV6业务测试
R1#ping ipv6 3::3 source 2::2
Sending 5, 100-byte ICMP Echoes to 3::3, timeout is 2 seconds:
< press Ctrl+C to break >
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/2 ms.
R1#
R1#traceroute ipv6 3::3 source 2::2
< press Ctrl+C to break >
Tracing the route to 3::3
1 3::3 <1 msec <1 msec <1 msec
R1#
4.2 R2 IPV6业务测试
R2#ping ipv6 2::2 source 3::3
Sending 5, 100-byte ICMP Echoes to 2::2, timeout is 2 seconds:
< press Ctrl+C to break >
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/2 ms.
R2#
R2#traceroute ipv6 2::2 source 3::3
< press Ctrl+C to break >
Tracing the route to 2::2
1 2::2 5 msec <1 msec <1 msec
R2#
五 IPV6命令查看
show ipv6 interface brief
show ipv6 route
show ipv6 neighbors
show ipv6 neighbors detail
show ipv6 int

537

被折叠的 条评论
为什么被折叠?



