当前位置:首页>微思动态 > >详情
全国热线电话 400-881-4699

在线留言

思科路由器IPv6地址和路由配置

发布作者:微思网络   发布时间:2025-11-04   浏览量:0
图片


图片

实验目的

1、掌握IPv6地址的配置方法
2、掌握IPv6静态路由的配置方法
3、掌握IPv6默认路由的配置方法
图片

实验拓扑

图片

实验需求

1、根据实验拓扑图,完成设备的基本配置;
2、在R2上配置IPv6静态路由,使得R2能够访问R1Loopback0
3、在R1上配置IPv6默认路由,使得R1能够访问R2Loopback0

实验步骤


步骤1:设备的基本配置
配置R1:
Router>enable
Router#configure terminal
Router(config)#hostname 
R1R1(config)#no ip domain-lookup
R1(config)#line console 0
R1(config-line)#exec-timeout 0 0
R1(config-line)#logging synchronous
R1(config-line)#exit
R1(config)#interface loopback 0
R1(config-if)#ipv6 address 2001:9267:1:1::1/64
R1(config-if)#exit
R1(config)#interface ethernet0/0
R1(config-if)#ipv6 address 2001:9267:12::1/64
R1(config-if)#no shutdownR1(config-if)#end
R1#


配置R2:
Router>enable
Router#configure terminal
Router(config)#hostname R2
R2(config)#no ip domain-lookup
R2(config)#line console 0
R2(config-line)#exec-timeout 0 0
R2(config-line)#logging synchronous
R2(config-line)#exit
R2(config)#interface loopback 0
R2(config-if)#ipv6 address 2001:9267:2:2::2/64
R2(config-if)#exitR2(config)#interface ethernet0/0
R2(config-if)#ipv6 address 2001:9267:12::2/64
R2(config-if)#no shutdownR2(config-if)#end
R2#


步骤2:配置IPv6静态路由
配置R1
R1(config)#ipv6 route ::/0 2001:9267:12::2
R1(config)#end
R1#


配置R2:
R2(config)#ipv6 route 2001:9267:1:1::/64 2001:9267:12::1
R2(config)#end
R2#


步骤3:检查IPv6静态路由
检查R1:
R1#showipv6 route
IPv6Routing Table - default - 6 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
B- BGP, HA - Home Agent, MR - Mobile Router, R - RIP
H- NHRP, I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea
IS- ISIS summary, D - EIGRP, EX - EIGRP external, NM - NEMO
ND- ND Default, NDp - ND Prefix, DCE - Destination, NDr - Redirect
RL- RPL, O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1
OE2- OSPF ext 2, ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
la- LISP alt, lr - LISP site-registrations, ld - LISP dyn-eid
lA- LISP away, a - Application
S   ::/0 [1/0]
via2001:9267:12::2
C2001:9267:1:1::/64 [0/0]
viaLoopback0, directly connected
L2001:9267:1:1::1/128 [0/0]
viaLoopback0, receive
C2001:9267:12::/64 [0/0]
viaEthernet0/0, directly connected
L2001:9267:12::1/128 [0/0]
viaEthernet0/0, receive
LFF00::/8 [0/0]
viaNull0, receive


检查R2:
R2#showipv6 route
IPv6Routing Table - default - 6 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
B- BGP, HA - Home Agent, MR - Mobile Router, R - RIP
H- NHRP, I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea
IS- ISIS summary, D - EIGRP, EX - EIGRP external, NM - NEMO
ND- ND Default, NDp - ND Prefix, DCE - Destination, NDr - Redirect
RL- RPL, O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1
OE2- OSPF ext 2, ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
la- LISP alt, lr - LISP site-registrations, ld - LISP dyn-eid
lA- LISP away, a - ApplicationS2001:9267:1:1::/64 [1/0]
via2001:9267:12::1
C2001:9267:2:2::/64 [0/0]
viaLoopback0, directly connected
L2001:9267:2:2::2/128 [0/0]
viaLoopback0, receive
C2001:9267:12::/64 [0/0]
viaEthernet0/0, directly connected
L2001:9267:12::2/128 [0/0]
viaEthernet0/0, receive
LFF00::/8 [0/0]
viaNull0, receive


步骤3:测试IPv6网络的连通性
测试R1
R1#ping 2001:9267:2:2::2 source loopback 0
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001:9267:2:2::2, timeout is 2 seconds:
Packet sent with a source address of2001:9267:1:1::1
!!!!!
Success rate is100percent (5/5), round-trip min/avg/max = 1/1/1 ms



图片

微思网络

成立于2002年,已有培训经验23年!

图片

微思认证培训资质

  • 图片

  • 图片

微思实验设备

图片


投资超过2000万元建立实验室和体验中心,为学员提供一流的现场及远程实验环境。





返回顶部