CCNP考试题目经常出现下面的情况:对于多个路由器组成的星型网络,要求使用帧中继的子接口进行配置和DLCI协议封装,实现各路由的互通,针对这种情况,下面通过实验给出命令和步骤。 针对需要配置帧中继时A对B和C分别作了一个DLCI协议的封装,那样显然有些麻烦,但是如果遇到非全网的情况这样就不能解决问题了。也就是下面要提到的星型拓扑网络。 Router>en A(config)#int s0.2 Incomplete Command. A(config)#int s0.2 point-to-point //指定子接口类型 A(config-subif)#ip addr 202.110.101.1 255.255.255.0 A(config-subif)#frame-relay interface-dlci 103 //配置DLCI值 A(config-subif)#bandwidth 64 //指定传输速率 A(config-subif)#exit A(config)#router eigrp 100 //提示:eigrp和帧中继的兼容性较好,所以这里采用eigrp协议。 A(config-router)#net 192.168.10.1 A(config-router)#net 202.110.100.0 A(config-router)#net 202.110.101.0 %LINK-3-UPDOWN: Interface Serial0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to up 21:49:39: %FR-5-DLCICHANGE: Interface Serial0.1 - DLCI 102 state changed to ACTIVE 21:49:39: %FR-5-DLCICHANGE: Interface Serial0.2 - DLCI 103 state changed to ACTIVE A(config-router)# 由于子接口只需要再A上面做,故A上面操作成功决定了这个试验的成败。 在B上做: Router> Router>en Router#config t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#host B B(config)#int e0 B(config-if)#ip addr 192.168.20.1 255.255.255.0 B(config-if)#no shut %LINK-3-UPDOWN: Interface Ethernet0, changed state to up B(config-if)#int s0 B(config-if)#ip addr 202.110.100.2 255.255.255.0 B(config-if)#encap frame-relay B(config-if)#frame-relay interface-dlci 201 B(config-if)#bandwidth 64 B(config-if)#no shut %LINK-3-UPDOWN: Interface Serial0, changed state to up B(config-if)#exit B(config)#router eigrp 100 B(config-router)#net 192.168.20.0 B(config-router)#net 202.110.100.0 B(config-router)# 在C上做: Router>en Router#config t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#host C C(config)#int e0 C(config-if)#ip addr 192.168.30.1 255.255.255.0 C(config-if)#no shut %LINK-3-UPDOWN: Interface Ethernet0, changed state to up C(config-if)#int s0 C(config-if)#ip addr 202.110.101.2 255.255.255.0 C(config-if)#encap frame-relay C(config-if)#frame-relay interface-dlci 301 C(config-if)#bandwidth 64 C(config-if)#no shut %LINK-3-UPDOWN: Interface Serial0, changed state to up C(config-if)#exit C(config)#router eigrp 100 C(config-router)#net 192.168.30.0 C(config-router)#net 202.110.101.0 C(config-router)# A上的路由测试: A# A# A#show ip ro Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default U - per-user static route Gateway of last resort is not set C 192.168.10.0 is directly connected, Ethernet0 C 202.110.100.0 is directly connected, 202.110.100.1 C 202.110.101.0 is directly connected, 202.110.101.1 D 192.168.20.0 [90/3061760] via 202.110.100.2, 00:10:36, Serial0.1 D 192.168.30.0 [90/3061760] via 202.110.101.2, 00:08:41, Serial0.2 B上的路由测试: B# B#show ip ro Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default U - per-user static route Gateway of last resort is not set C 192.168.20.0 is directly connected, Ethernet0 C 202.110.100.0 is directly connected, Serial0 D 192.168.10.0 [90/3061760] via 202.110.100.1, 00:02:22, Serial0 D 202.110.101.0 [90/3061760] via 202.110.100.1, 00:02:22, Serial0 D 192.168.30.0 [90/4267520] via 202.110.100.1, 00:00:32, Serial0 C上的路由测试: C# C#show ip ro Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default U - per-user static route Gateway of last resort is not set C 192.168.30.0 is directly connected, Ethernet0 C 202.110.101.0 is directly connected, Serial0 D 192.168.20.0 [90/4267520] via 202.110.101.1, 00:00:40, Serial0 D 192.168.10.0 [90/3061760] via 202.110.101.1, 00:00:40, Serial0 D 202.110.100.0 [90/3061760] via 202.110.101.1, 00:00:40, Serial0 在A上查看路由映射: A# A#show frame-relay map Serial0.1 (up): point-to-point dlci, dlci 102(0x66,0x1860), broadcast status defined, active Serial0.2 (up): point-to-point dlci, dlci 103(0x66,0x1860), broadcast status defined, active 在A上查看虚链路: A# A#show frame-relay pvc PVC Statistics for interface Serial0 (Frame Relay DTE) DLCI = 102, DLCI USAGE = LOCAL, PVC STATUS = ACTIVE, INTERFACE = Serial0.1 input pkts 34 output pkts 56 in bytes 5130 out bytes 13538 dropped pkts 29 in FECN pkts 72 in BECN pkts 117 out FECN pkts 43 out BECN pkts 30 in DE pkts 6 out DE pkts 78 out bcast pkts 98 out bcast bytes 12050 pvc create time 00:32:04, last time pvc status changed 00:32:05 PVC Statistics for interface Serial0 (Frame Relay DTE) DLCI = 103, DLCI USAGE = LOCAL, PVC STATUS = ACTIVE, INTERFACE = Serial0.2 input pkts 96 output pkts 107 in bytes 8719 out bytes 6717 dropped pkts 74 in FECN pkts 24 in BECN pkts 54 out FECN pkts 52 out BECN pkts 89 in DE pkts 97 out DE pkts 103 out bcast pkts 84 out bcast bytes 2434 pvc create time 00:32:04, last time pvc status changed 00:32:05 |
不良信息举报Q:2000617|Archiver|ROS软路由论坛 ROSABC.com 网络方案网络工程交流
GMT+8, 2025-4-30 22:40 , Processed in 0.131520 second(s), 16 queries .
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.