CCNA配置试验之八帧中继—点到点子接口(point-to-point)
3707 点击·0 回帖
![]() | ![]() | |
![]() | 帧中继概述: ? 是由国际电信联盟通信标准化组和美国国家标准化协会制定的一种标准。 ? 它定义在公共数据网络上发送数据的过程。 ? 它是一种面向连接的数据链路技术,为提供高性能和高效率数据传输进行了技术简化,它靠高层协议进行差错校正,并充分利用了当今光纤和数字网络技术。 帧中继的作用: ? 帧使用DLCI进行标识,它工作在第二层;帧中继的优点在于它的低开销。 ? 帧中继在带宽方面没有限制,它可以提供较高的带宽。 ? 典型速率56K-2M/s内 选择 Frame Relay 拓扑结构: ? 全网结构:提供最大限度的相互容错能力;物理连接费用最为昂贵。 ? 部分网格结构:对重要结点采取多链路互连方式,有一定的互备份能力。 ? 星型结构:最常用的帧中继拓扑结构,由中心节点来提供主要服务与应用,工程费最省 帧中继的前景: ? 一种高性能,高效率的数据链路技术。 ? 它工作在OSI参考模型的物理层和数据链路层,但依赖TCP上层协议来进行纠错控制。 ? 提供帧中继接口的网络可以是一个ISP服务商;也可能是一个企业的专有企业网络。 ? 目前,它是世界上最为流行的WAN协议之一,它是优秀的思科专家必备的技术之一。 子接口的配置: ? 点到点子接口 – 子接口看作是专线 – 每一个点到点连接的子接口要求有自己的子网 – 适用于星型拓扑结构 ? 多点子接口(和其父物理接口一样的性质) – 一个单独的子接口用来建立多条PVC,这些PVC连接到远端路由器的多点子接口或物理接口 – 所有加入的接口都处于同一的子网中 – 适用于 partial-mesh 和 full-mesh 拓扑结构中 帧中继术语: ? DTE:客户端设备(CPE),数据终端设备 ? DCE:数据通信设备或数据电路端接设备 ? 虚电路(VC):通过为每一对DTE设备分配一个连接标识符,实现多个逻辑数据会话在同一条物理链路上进行多路复用。 ? 数字连接识别号(DLCI):用以识别在DTE和FR之间的逻辑虚拟电路。 ? 本地管理接口(LMI):是在DTE设备和FR之间的一种信令标准,它负责管理链路连接和保持设备间的状态。 今天我们研究点到点子接口(point-to-point) ![]() 试验拓扑说明:R1的物理接口不添加IP。R1的子接口S0/0.1的ip为192.168.1.1,S0/0.2的ip为192.168.2.1。R2的ip为192.168.1.2。R3的ip为192.168.2.2 网络掩码都为255.255.255.0。 R1上S0/0.1的DLCI号为102,S0/0.2的DLCI号为103. R2上S0/0的DLCI号为201 R3上S0/0的DLCI号为301 试验要求:在路由器间完成帧中继——点到点子接口的配置,并在路由器间配置rip协议,最终使路由器间全网全通。 Let’s go…… R1 Router>en Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#host r1 r1(config)#int s0/0 r1(config-if)#no ip addr r1(config-if)#no shut r1(config-if)#encapsulation frame-relay 在物理接口下封装frame-relay r1(config-if)#no frame-relay inverse-arp 关闭帧中继的反向ARP功能 r1(config-if)#exit r1(config)#int s0/0.1 point-to-point 配置点到点的frame-relay r1(config-subif)#ip addr 192.168.1.1 255.255.255.0 r1(config-subif)#no shut r1(config-subif)#frame-relay interface-dlci 102 r1(config-fr-dlci)#exit r1(config-subif)#int s0/0.2 point-to-point r1(config-subif)#ip addr 192.168.2.1 255.255.255.0 r1(config-subif)#no shut r1(config-subif)#frame-relay interface-dlci 103 r1(config-fr-dlci)#exit r1(config-subif)#router rip 配置rip协议 r1(config-router)#network 192.168.1.0 r1(config-router)#network 192.168.2.0 R2 Router>en Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#host r2 r2(config)#int s0/0 r2(config-if)#ip addr 192.168.1.2 255.255.255.0 r2(config-if)#no shut r2(config-if)#encapsulation frame-relay 封装frame-relay r2(config-if)#no frame-relay inverse-arp 关闭frame-relay的反向ARP功能 r2(config-if)#frame-relay map ip 192.168.1.1 201 broadcast 映射ip地址与帧中继地址 r2(config-if)#exit r2(config)#router rip 配置rip协议 r2(config-router)#network 192.168.1.0 R3 Router>en Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#host r3 r3(config)#int s0/0 r3(config-if)#ip addr 192.168.2.2 255.255.255.0 r3(config-if)#no shut r3(config-if)#encapsulation frame-relay 封装frame-relay r3(config-if)#no frame-relay inverse-arp 关闭frame-relay的反向arp功能 r3(config-if)#frame-relay map ip 192.168.2.1 301 broadcast 映射ip地址与帧中继地址 r3(config-if)#exit r3(config)#router rip 配置rip协议 r3(config-router)#network 192.168.2.0 验证: r1#ping 192.168.1.2 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 44/156/364 ms r1#ping 192.168.2.2 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.2.2, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 156/292/404 ms r2#ping 192.168.1.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 88/386/544 ms r2#ping 192.168.2.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.2.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 180/432/636 ms r2#ping 192.168.2.2 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.2.2, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 48/430/580 ms r3#ping 192.168.1.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 456/519/592 ms r3#ping 192.168.2.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.2.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 152/434/584 ms r3#ping 192.168.1.2 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 112/309/456 ms 通过验证,全网全通。 在R1上show interface S0/0查看端口信息 r1#show interface s0/0 Serial0/0 is up, line protocol is up Hardware is M4T MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation FRAME-RELAY, crc 16, loopback not set Keepalive set (10 sec) Restart-Delay is 0 secs LMI enq sent 12, LMI stat recvd 13, LMI upd recvd 0, DTE LMI up LMI enq recvd 0, LMI stat sent 0, LMI upd sent 0 LMI DLCI 0 LMI type is ANSI Annex D frame relay DTE FR SVC disabled, LAPF state down Broadcast queue 0/64, broadcasts sent/dropped 15/0, interface broadcasts 11 Last input 00:00:02, output 00:00:03, output hang never Last clearing of "show interface" counters 00:02:03 Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0 Queueing strategy: weighted fair Output queue: 0/1000/64/0 (size/max total/threshold/drops) Conversations 0/1/256 (active/max active/max total) Reserved Conversations 0/0 (allocated/max allocated)ilobits/sec 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec 20 packets input, 704 bytes, 0 no buffer --More— 在R1上show frame pvc 查看经过路由器的所有PVC的状态 r1#show frame pvc PVC Statistics for interface Serial0/0 (Frame Relay DTE) Active Inactive Deleted Static Local 2 0 0 0 Switched 0 0 0 0 Unused 0 0 0 0 DLCI = 102, DLCI USAGE = LOCAL, PVC STATUS = ACTIVE, INTERFACE = Serial0/0.1 input pkts 10 output pkts 18 in bytes 740 out bytes 2273 dropped pkts 0 in pkts dropped 0 out pkts dropped 0 out bytes dropped 0 in FECN pkts 0 in BECN pkts 0 out FECN pkts 0 out BECN pkts 0 in DE pkts 0 out DE pkts 0 out bcast pkts 17 out bcast bytes 2217 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec pvc create time 00:04:47, last time pvc status changed 00:04:47 --More-- Frame Relay调试命令 ? Show frame pvc ? 显示经过路由器的所有PVC的状态 ? Show frame lmi ? 显示本地管理接口,LMI为VC提供状态管理和广播; ? Show frame map ? 查看当前映射项和DLCI映射表的相关信息。 ? Show interface ? 提供了相关路由器上的所有接口的信息,up ,up ? 注意:DCE端的时钟频率,带宽,等等设置 ? DTE端的线路的DLCI号与帧中继的静态映射。 | |
![]() | ![]() |