如下图,配置ipv6地址,使得PC1能ping通PC2
#配置ipv6地址
[AR1]ipv6 //开启全局ipv6地址
[AR1]int g0/0/1
[AR1-GigabitEthernet0/0/1]ipv6 enable //使能ipv6接口地址
[AR1-GigabitEthernet0/0/1]ipv6 address 2001:10:10:10::1 64
[AR1-GigabitEthernet0/0/1]ping ipv6 2001:10:10:10::10
PING 2001:10:10:10::10 : 56 data bytes, press CTRL_C to break
Reply from 2001:10:10:10::10
bytes=56 Sequence=1 hop limit=255 time = 140 ms
Reply from 2001:10:10:10::10
bytes=56 Sequence=2 hop limit=255 time = 50 ms
Reply from 2001:10:10:10::10
bytes=56 Sequence=3 hop limit=255 time = 50 ms
Reply from 2001:10:10:10::10
bytes=56 Sequence=4 hop limit=255 time = 60 ms
Reply from 2001:10:10:10::10
bytes=56 Sequence=5 hop limit=255 time = 50 ms
--- 2001:10:10:10::10 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 50/70/140 ms
[AR1-GigabitEthernet0/0/1]int g0/0/0
[AR1-GigabitEthernet0/0/0]ipv6 enable
[AR1-GigabitEthernet0/0/0]ipv6 address 2001:12:12:12::1 64
[AR2]ipv6
[AR2]int g0/0/0
[AR2-GigabitEthernet0/0/0]ipv6 enable
[AR2-GigabitEthernet0/0/0]ipv6 address 2001:12:12:12::2 64
[AR2-GigabitEthernet0/0/0]int g0/0/1
[AR2-GigabitEthernet0/0/1]ipv6 enable
[AR2-GigabitEthernet0/0/1]ipv6 address 2001:23:23:23::2 64
[AR3]ipv6
[AR3]int g0/0/0
[AR3-GigabitEthernet0/0/0]ipv6 enable
[AR3-GigabitEthernet0/0/0]ipv6 address 2001:23:23:23::3 64
[AR3-GigabitEthernet0/0/0]int g0/0/1
[AR3-GigabitEthernet0/0/1]ipv6 en
[AR3-GigabitEthernet0/0/1]ipv6 address 2001:192:168:10::1 64
#配置路由
[AR1]ipv6 route-static 2001:192:168:10:: 64 2001:12:12:12::2
[AR2]ipv6 route-static 2001:192:168:10:: 64 2001:23:23:23::3
[AR3]ipv6 route-static 2001:10:10:10:: 64 2001:23:23:23::2
[AR2]ipv6 route-static :: 0 2001:12:12:12::1 //配置默认路由