首页 热点资讯 义务教育 高等教育 出国留学 考研考公

cisco路由器怎么配置ipv6

发布网友 发布时间:2022-04-26 14:17

我来回答

1个回答

热心网友 时间:2022-06-29 00:46

步骤如下啊
R1的配置:
Router>en
Router#en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#no ip do lo
Router(config)#line con 0
Router(config-line)#no exec-t
Router(config-line)#logg s
Router(config-line)#ho R1

R1(config)#ipv6 unicast-routing
R1(config-if)#ipv6 address 2006:bbbb::1/
R1(config-if)#inter lo1
R1(config-if)#ipv6 address 2007:cccc::1/
R1(config-if)#inter s2/1
R1(config-if)#ipv6 address 2008:dddd::1/
R1(config-if)#no shut

*Jul 18 20:01:19.879: %LINK-3-UPDOWN: Interface Serial2/1, changed state to up
*Jul 18 20:01:20.887: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/1, changed state to up
*Jul 18 20:01:48.771: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/1, changed state to down
R1(config-if)#exi
*Jul 18 20:04:48.771: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/1, changed state to up
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#ipv6 rout
R1(config)#ipv6 route 2007:aaaa::2/ s2/1 //静态路由
R1(config)#end

R1#show ipv6 rou
IPv6 Routing Table - 9 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 2006:BBBB::/ [0/0]
via ::, Loopback0
L 2006:BBBB::1/128 [0/0]
via ::, Loopback0
S 2007:AAAA::/ [1/0]
via ::, Serial2/1 静态路由
C 2007:CCCC::/ [0/0]
via ::, Loopback1
L 2007:CCCC::1/128 [0/0]
via ::, Loopback1
C 2008:DDDD::/ [0/0]
via ::, Serial2/1
L 2008:DDDD::1/128 [0/0]
via ::, Serial2/1
L FE80::/10 [0/0]
via ::, Null0
L FF00::/8 [0/0]
via ::, Null0

R1#ping ipv6 2007:AAAA::2 //通了 哈哈哈哈

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2007:AAAA::2, timeout is 2 seconds:
!!!!!

R2的配置:

Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#no ip do lo
Router(config)#line con 0
Router(config-line)#no exec-t
Router(config-line)#logg s
Router(config-line)#ho R2

R2(config-if)#inter lo1

R2(config-if)#ipv6 address 2005:dddd::1/
R2(config-if)#inter lo0
R2(config-if)#ipv6 address 2007:aaaa::2/
R2(config-if)#inter s2/1
R2(config-if)#ipv6 address 2008:dddd::2/
R2(config-if)#no shut
R2(config-if)#exi
R2(config)#ipv6 route ::/0 s2/1 //默认路由
R2#show ipv6 rout
IPv6 Routing Table - 9 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 ::/0 [1/0]
via ::, Serial2/1 默认路由
C 2005:DDDD::/ [0/0]
via ::, Loopback1
L 2005:DDDD::1/128 [0/0]
via ::, Loopback1
C 2007:AAAA::/ [0/0]
via ::, Loopback0
L 2007:AAAA::2/128 [0/0]
via ::, Loopback0
C 2008:DDDD::/ [0/0]
via ::, Serial2/1
L 2008:DDDD::2/128 [0/0]
via ::, Serial2/1
L FE80::/10 [0/0]
via ::, Null0
L FF00::/8 [0/0]
via ::, Null0

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com