帧中继网络配置
帧中继网络配置
1、 实验目的:
通过本次的实验,我们可以掌握如下技能
1) 理解帧中继交换机的工作原理
2) 理解PVC的概念
3) 用路由器充当帧中继交换机的配置
2、 实验拓扑图:
3、 实验步骤:
(1) 我们使用R2来模拟帧中继交换机,我们在此对R2配置成帧中继交换机,具体步骤如下:
a) 开启帧中继交换功能。
R2(config)#frame-relay switching
R2(config)#
b) 配置接口封装。
R2(config)#interface serial 0/1
R2(config-if)#no shutdown
R2(config-if)#clock rate 128000
R2(config-if)#encapsulation frame-relay
R2(config)#interface serial 0/2
R2(config-if)#no shutdown
R2(config-if)#clock rate 128000
R2(config-if)#en
R2(config-if)#encapsulation frame-relay
R2(config)#interface serial 0/3
R2(config-if)#no shutdown
R2(config-if)#clock rate 128000
R2(config-if)#encapsulation frame-relay
c) 配置LMI类型
R2(config)#interface serial 0/1
R2(config-if)#frame-relay lmi-type cisco
R2(config-if)#frame-relay intf-type dce
R2(config-if)#exit
R2(config)#interface serial 0/2
R2(config-if)#frame-relay lmi-type cisco
R2(config-if)#frame-relay intf-type dce
R2(config-if)#exit
R2(config)#interface serial 0/3
R2(config-if)#frame-relay lmi-type cis
R2(config-if)#frame-relay lmi-type cisco
R2(config-if)#frame-relay intf-type
R2(config-if)#frame-relay intf-type dce
R2(config-if)#
d) 配置帧中继交换表
R2(config)#interface s
R2(config)#interface serial 0/1
R2(config-if)#frame-relay route 103 interface serial 0/2 301
R2(config-if)#frame-relay route 104 interface serial 0/3 401
R2(config-if)#exit
R2(config)#interface serial 0/2
R2(config-if)#frame-relay route 301 interface serial 0/1 103
R2(config-if)#exit
R2(config)#interface serial 0/3
R2(config-if)#frame-relay route 401 interface serial 0/1 104
R2(config-if)#
(2) 查看一下帧中继交换机的配置情况
R2#show frame-relay route
Input Intf Input Dlci Output Intf Output Dlci Status
Serial0/1 103 Serial0/2 301 inactive
Serial0/1 104 Serial0/3 401 inactive
Serial0/2 301 Serial0/1 103 inactive
Serial0/3 401 Serial0/1 104 inactive
R2#
我们可以查看帧中继交换表
R2#show frame-relay pvc
PVC Statistics for interface Serial0/1 (Frame Relay DCE)
Active Inactive Deleted Static
Local 0 0 0 0
Switched 0 2 0 0
Unused 0 0 0 0
DLCI = 103, DLCI USAGE = SWITCHED, PVC STATUS = INACTIVE, INTERFACE = Serial0/1
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
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:03:14, last time pvc status changed 00:03:09
--More—
(3)配置完帧中继交换机后我们可以来配置其他的路由器,使其他们之间可以通信。配置情况如下:
Router(config)#hostname R1
R1(config)#interface serial 0/1
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#encapsulation frame-relay
R1(config-if)#frame-relay lmi-type cisco
R1(config-if)#
R3(config)#interface serial 0/2
R3(config-if)#ip ad
R3(config-if)#ip address 192.168.1.2 255.255.255.0
R3(config-if)#no sh
R3(config-if)#no shutdown
R3(config-if)#encapsulation frame-relay
R3(config-if)#frame-relay lmi-type cisco
R3(config-if)#
Router(config)#hos
Router(config)#hostname R4
R4(config)#interface serial 0/3
R4(config-if)#ip ad
R4(config-if)#ip address 192.168.1.3 255.255.255.0
R4(config-if)#no shutdown
R4(config-if)#encapsulation frame-relay
R4(config-if)#frame-relay lmi-type cisco
R4(config-if)#
最后测试配置情况
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 = 100/144/192 ms
R3#
R4#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 = 124/164/216 ms
R4#
出现了!!!!!表明已经可以通信了!!
OK 实验到此结束了!!!!!!!!!!!!
转载于:https://blog.51cto.com/lorna8023/241090