扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
roueter1(config)#ipv6 unicast-routing
roueter1(config)#interface e0/0
roueter1(config-if)#ipv6 address 2001:250:803:11::1/64
roueter1(config-if)#no shut
router2(config)#ipv6 unicast-routing
router2(config)#interface e0/0
router2(config-if)#ipv6 address 2001:250:803:11::2/64
router2(config-if)#no shut
router4(config)#ipv6 unicast-routing
router4(config)#interface e0/1
router4(config-if)#ipv6 address 2001:250:803:12::1/64
router4(config-if)#no shut
router5(config)#ipv6 unicast-routing
router5(config)#interface e0/1
router5(config-if)#ipv6 address 2001:250:803:12::2/64
router5(config-if)#no shut
然后配置静态路由,没几条很简单,和ipv4的思想几乎一样。
注意:在配的时候我们可以把R3忽略,就当R2、R4之间没有路由器,
这样配起来会很顺啊!
router5(config)#ipv6 route 2001:250:803:1::/64 2001:250:803:12::1
router5(config)#ipv6 route 2001:250:803:11::/64 2001:250:803:12::1
router2(config)#ipv6 route 2001:250:803:12::/64 2001:250:803:1::2
roueter1(config)#ipv6 route 2001:250:803:1::/64 2001:250:803:11::2
roueter1(config)#ipv6 route 2001:250:803:12::/64 2001:250:803:11::2
router4(config)#ipv6 route 2001:250:803:11::/64 2001:250:803:1::1
好了,验证一下吧
R1 ping R5
router1#ping 2001:250:803:12::2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001:250:803:12::2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 48/110/216 ms
R1 ping R4的TUNNEL1
router1#ping 2001:250:803:1::2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001:250:803:1::2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 36/86/216 ms
通了
router5#show ipv6 route
IPv6 Routing Table - 6 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
U - Per-user Static route
I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
S 2001:250:803:1::/64 [1/0]
via 2001:250:803:12::1
S 2001:250:803:11::/64 [1/0]
via 2001:250:803:12::1
C 2001:250:803:12::/64 [0/0]
via ::, Ethernet0/1
L 2001:250:803:12::2/128 [0/0]
via ::, Ethernet0/1
L FE80::/10 [0/0]
via ::, Null0
L FF00::/8 [0/0]
via ::, Null0
router4#show ipv6 route
IPv6 Routing Table - 7 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
U - Per-user Static route
I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
C 2001:250:803:1::/64 [0/0]
via ::, Tunnel1
L 2001:250:803:1::2/128 [0/0]
via ::, Tunnel1
S 2001:250:803:11::/64 [1/0]
via 2001:250:803:1::1
C 2001:250:803:12::/64 [0/0]
via ::, Ethernet0/1
L 2001:250:803:12::1/128 [0/0]
via ::, Ethernet0/1
L FE80::/10 [0/0]
via ::, Null0
L FF00::/8 [0/0]
via ::, Null0
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。
现场直击|2021世界人工智能大会
直击5G创新地带,就在2021MWC上海
5G已至 转型当时——服务提供商如何把握转型的绝佳时机
寻找自己的Flag
华为开发者大会2020(Cloud)- 科技行者