1.如上图所示,中间一台路由器模拟帧中继交换机,首先要开启它的帧中继交换交换功能
2.在R1/R3/R4上正确配置IP地址,并查看各接口处于开启状态
3.在F-R-SW的 S0/0口上做两条映射表,在F-R-SW的S0/1和S0/2上各做一条映射表
4.R1/R2/R3的路由器上都运行RIPV2,要求R1/R2/R3三台路由器上的回环口能够互相通信。
配置步骤:
Router(config)#hos F-R-SW
F-R-SW (config)#frame-relay switching
F-R-SW (config)#int s0/0
F-R-S W(config-if)#encapsulation frame-relay
F-R-SW (config-if)#frame-relay intf-type dce
F-R-SW (config-if)#frame-relay route 103 int s0/1 301
F-R-S W(config-if)#frame-relay route 104 int s0/2 401
F-R-SW (config-if)#no shut
F-R-SW (config)#int s0/1
F-R-SW (config-if)#encapsulation frame-relay
F-R-SW (config-if)#frame-relay intf-type dce
F-R-SW (config-if)#frame-relay lmi-type cisco
F-R-SW (config-if)#frame-relay route 301 int s0/0 103
F-R-SW (config-if)#clock rate 64000
F-R-SW (config-if)#no shut
F-R-SW (config)#int s0/2
F-R-SW (config-if)#encapsulation frame-relay
F-R-SW (config-if)#frame-relay intf-type dce
F-R-SW (config-if)#frame-relay lmi-type cisco
F-R-SW (config-if)#frame-relay route 401 int s0/0 104
F-R-SW (config-if)#clock rate 64000
F-R-SW (config-if)#no shut
Router(config)#hos r1
r1(config)#int s0/0
r1(config-if)#encapsulation frame-relay
r1(config-if)#ip add 192.168.1.1 255.255.255.0
r1(config-if)#frame-relay map ip 192.168.1.3 103 br
r1(config-if)#frame-relay map ip 192.168.1.4 104 br
r1(config-if)#no shut
r1(config)#int lo0
r1(config-if)#ip add 1.1.1 .1 255.255.255.0
r1(config-if)#router rip
r1(config-if)# version 2
r1(config-router)#net 192.168.1.0
r1(config-router)#net 1.1.1 .0
Router(config)#host r3
r3(config)#int s0/1
r3(config-if)#encapsulation frame-relay
r3(config-if)#ip add 192.168.1.3 255.255.255.0
r3(config-if)#frame-relay map ip 192.168.1.1 301 br
r3(config-if)#frame-relay map ip 192.168.1.4 301 br
r3(config-if)#no shut
r3(config)#int lo0
r3(config-if)#ip add 3.3.3 .3 255.255.255.0
r3(config-if)#router rip
r3(config-if)# version 2
r3(config-router)#net 192.168.1.0
r3(config-router)#net 3.3.3 .0