2013年(3)
分类: IT职场
2013-11-15 11:58:46
把一台Cisco路由器设备为帧中继交换机
1、 真验目的
经由过程本真验可以掌控
A. 了解帧中继交换机事情本理;
B. 了解PVC的不雅念;
C. 用路由器仿照帧中继交换机的设备。
2、 网络拓扑图:
>
3、 真验办法
本真验把路由器R2设备成帧中继交换机
(一) 开启帧中继交换机功能
R2(config)#frame-relay switching
(二) 设备接口启拆帧中继
R2(config)#inte***ce s0/0
R2(config-if)#clock rate 128000
R2(config-if)#encapsulation frame-relay //设备接口启拆帧中继
R2(config-if)#no shutdown
【提示】
设备接口启拆为帧中继,接口上启用的默许帧中继启拆为Cisco启拆。假设要连接到别的一台Cisco路由器,则操纵该选项;假设连接到非Cisco路由器,要操纵ietf参数。
R2(config)#inte***ce serial 0/1
R2(config-if)#clock rate 128000
R2(config-if)#encapsulation frame-relay
R2(config-if)#no shutdown
R2(config)#inte***ce serial 0/2
R2(config-if)#clock rate 128000
R2(config-if)#encapsulation frame-relay
R2(config-if)#no shutdown
(三) 设备帧中继LMI规范和接口规范
R2(config)#inte***ce s0/0
R2(config-if)#frame-relay lmi-type cisco //设备LMI规范
R2(config-if)#frame-relay intf-type dce //设备接口为帧中继的DCE
【手艺要点】
A、 号令“frame-relay lmi-type { cisco | ansi | q933a }”用来设备LMI的规范,默许时是Cisco规范;
B、 号令“frame-relay intf-type { dce |dte }”用来设备接口是帧中继的DCE借是DTE。要属意的是:帧中继接口DCE和物理接口端是DCE借是DTE无关,也就是讲即使接口是DTE端,也能够或许把它设备成帧中继是DCE。
R2(config)#inte***ce serial 0/1
R2(config-if)#frame-relay lmi-type cisco
R2(config-if)#frame-relay intf-type dce
R2(config)#inte***ce serial 0/2
R2(config-if)#frame-relay lmi-type cisco
R2(config-if)#frame-relay intf-type dce
(四) 设备路由器两个接口之间的PVC
R2(config)#inte***ce serial 0/0
R2(config-if)#frame-relay route 103 inte***ce s0/1 301
//定义接口S0/0和S0/1之间的PVC,竖立帧中继交换表
R2(config-if)#frame-relay route 104 inte***ce s0/2 401
//定义接口S0/0和S0/2之间的PVC,竖立帧中继交换表
R2(config)#inte***ce serial 0/1
R2(config-if)#frame-relay route 301 inte***ce serial 0/0 103
R2(config-if)#frame-relay route 304 inte***ce serial 0/2 403
R2(config)#inte***ce serial 0/2
R2(config-if)#frame-relay route 401 inte***ce serial 0/0 104
R2(config-if)#frame-relay route 403 inte***ce serial 0/1 304
4、 真验调试
A、 show frame-relay route
R2#sh frame-relay route
Input Intf Input Dlci Output Intf Output Dlci Status
Serial0/0 103 Serial0/1 301 inactive
Serial0/0 104 Serial0/2 401 inactive
Serial0/1 301 Serial0/0 103 inactive
Serial0/1 304 Serial0/2 403 inactive
Serial0/2 401 Serial0/0 104 inactive
Serial0/2 403 Serial0/1 304 inactive
R2#
以上输出解释了路由器R2上设备了3条PVC,形态都是举动的,个中
“Serial0/0 103 Serial0/1 301 inactive”的含义是路由器假设从S0/0接口支到DLCI=103的帧,要从S0/1接**换出往,并且DLCI被交换为301。
B、 show frame-relay pvc
该号令用于显示路由器上设备的扫数PVC的统计疑息。
R2#sh frame-relay pvc inte***ce s0/0
PVC Statistics for inte***ce Serial0/0 (Frame Relay DCE)
//该接口是帧中继的DCE
Active Inactive Deleted Static
Local 0 0 0 0
Switched 0 2 0 0
Unused 0 0 0 0
//输出解释该接口有2条处于举动形态的PVC
DLCI = 103, DLCI USAGE = SWITCHED, PVC STATUS = INACTIVE, INTERFACE = Serial0/0
//DLCI为103的PVC处于举动形态,本地接口是S0/0,DLCI用途是完成帧中继DLCI交换
input pkts 0 output pkts 0 in bytes 0
out bytes 0 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 0 out bcast bytes 0
30 second input rate 0 bits/sec, 0 packets/sec
30 second output rate 0 bits/sec, 0 packets/sec
switched pkts 0
Detailed packet drop counters:
no out intf 0 out intf down 0 no out PVC 0
in PVC down 0 out PVC down 0 pkt too big 0
shaping Q full 0 pkt above DE 0 policing drop 0
pvc create time 00:28:35, last time pvc status changed 00:28:35
//以上输出是DLCI为103的PVC的统计疑息
DLCI = 104, DLCI USAGE = SWITCHED, PVC STATUS = INACTIVE, INTERFACE = Serial0/0
input pkts 0 output pkts 0 in bytes 0
out bytes 0 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 0 out bcast bytes 0
30 second input rate 0 bits/sec, 0 packets/sec
30 second output rate 0 bits/sec, 0 packets/sec
switched pkts 0
Detailed packet drop counters:
no out intf 0 out intf down 0 no out PVC 0
in PVC down 0 out PVC down 0 pkt too big 0
shaping Q full 0 pkt above DE 0 policing drop 0
pvc create time 00:26:45, last time pvc status changed 00:26:45
//以上输出是DLCI为104的PVC的统计疑息
R2#
C、 show frame-relay lmi
该号令用来查看LMI的统计疑息。
R2#sh frame-relay lmi
LMI Statistics for inte***ce Serial0/0 (Frame Relay DCE) LMI TYPE = CISCO
//接口S0/0是帧中继的DCE,LMI规范为Cisco
Invalid Unnumbered info 0 Invalid Prot Disc 0
Invalid dummy Call Ref 0 Invalid Msg Type 0
Invalid Status Message 0 Invalid Lock Shift 0
Invalid Information ID 0 Invalid Report IE Len 0
Invalid Report Request 0 Invalid Keep IE Len 0
Num Status Enq. Rcvd 0 Num Status msgs Sent 0
//帧中继交换机支到的LMI形态查询动静的数目和从帧中继交换机背路由器发送的LMI形态疑息的数目
Num Update Status Sent 0 Num St Enq. Timeouts 232
//以上7行显示了接口S0/0的LMI的统计疑息
LMI Statistics for inte***ce Serial0/1 (Frame Relay DCE) LMI TYPE = CISCO
Invalid Unnumbered info 0 Invalid Prot Disc 0
Invalid dummy Call Ref 0 Invalid Msg Type 0
Invalid Status Message 0 Invalid Lock Shift 0
Invalid Information ID 0 Invalid Report IE Len 0
Invalid Report Request 0 Invalid Keep IE Len 0
Num Status Enq. Rcvd 0 Num Status msgs Sent 0
Num Update Status Sent 0 Num St Enq. Timeouts 185
//以上7行显示了接口S0/1的LMI的统计疑息
LMI Statistics for inte***ce Serial0/2 (Frame Relay DCE) LMI TYPE = CISCO
Invalid Unnumbered info 0 Invalid Prot Disc 0
Invalid dummy Call Ref 0 Invalid Msg Type 0
Invalid Status Message 0 Invalid Lock Shift 0
Invalid Information ID 0 {ww.hydrophis.c} Invalid Report IE Len 0
Invalid Report Request 0 Invalid Keep IE Len 0
Num Status Enq. Rcvd 0 Num Status msgs Sent 0
Num Update Status Sent 0 Num St Enq. Timeouts 181
//以上7行显示了接口S0/2的LMI的统计疑息
R2#