一、拓扑
二、地址表
Device | Interface | IP Address |
R1 | S 1/2 | 192.168.20.3 |
R3 | S 1/1 | 192.168.20.5 |
R5 | S 1/0 | 192.168.20.6 |
三、配置过程
- 帧中继配置
(1)FR帧中继交换机配置
R2#conf t
R2(config)#frame-relay switching // 把该路由器当成帧中继交换机
R2(config)#interface s1/2
R2(config-if)#no shutdown
R2(config-if)#clock rate 128000
R2(config-if)#encapsulation frame-relay // 接口封装帧中继
R2(config)#int s1/1
R2(config-if)#no shutdown
R2(config-if)#clock rate 128000
R2(config-if)#encapsulation frame-relay
R2(config-if)#no shutdown
R2(config-if)#clock rate 128000
R2(config-if)#encapsulation frame-relay
R2(config)#int s1/0
R2(config-if)#no shutdown
R2(config-if)#clock rate 128000
R2(config-if)#encapsulation frame-relay
R2(config-if)#no shutdown
R2(config-if)#clock rate 128000
R4(config-if)#encapsulation frame-relay
(2)配置LMI类型
R2(config-if)#int s1/2
R2(config-if)#frame-relay lmi-type cisco
R2(config-if)#frame-relay intf-type dce
R2(config-if)#int s1/1
R2(config-if)#frame-relay lmi-type cisco
R2(config-if)#frame-relay intf-type dce
R2(config-if)#int s1/0
R2(config-if)#frame-relay lmi-type cisco
R2(config-if)#frame-relay intf-type dce
(3)配置帧中继交换表
R2(config-if)#int s1/2
R2(config-if)#frame-relay route 103 interface s1/1 301
R2(config-if)#frame-relay route 104 intterface s1/0 401
R2(config)#int serial 1/1
R2(config-if)#frame-relay route 301 interface serial 1/2 103
R2(config-if)#int s1/0
R2(config-if)#frame-relay route 401 interface serial 1/2 104
R2(config-if)#end
(4)查看(show frame-relay route)
检查帧中继交换机是否正常
(5)配置动态映射
R1(config)#interface s1/2
R1(config-if)#ip address 192.168.20.3 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#encapsulation frame-relay
R1(config-if)#frame-relay lmi-type cisco
R3(config)#interface s1/1
R3(config-if)#ip address 192.168.20.5 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#encapsulation frame-relay
R4(config)#int s1/0
R4(config-if)#ip address 192.168.20.6 255.255.255.0
R4(config-if)#no shutdown
R4(config-if)#encapsulation frame-relay
(6)Ping通测试
R1ping R3和R4
就此,帧中继配置完成。