帧中继配置:
interface Serial1/1
encapsulation frame-relay
封装帧中继
clock rate 64000
frame-relay lmi-type q933a
设定本地接口类型为 q933a
frame-relay intf-type dce
设置接口为 DCE端,必须配置始终速率
frame-relay route 200 interface Serial1/2 201
设置有200接口来的信息都转发至 s1/2 的201接口
frame-relay route 300 interface Serial1/3 301
设置有300接口来的信息都转发至 s1/3 的301接口
interface Serial1/2
no ip address
encapsulation frame-relay
serial restart-delay 0
clock rate 64000
frame-relay lmi-type q933a
frame-relay intf-type dce
frame-relay route 201 interface Serial1/1 200
interface Serial1/3
no ip address
encapsulation frame-relay
clock rate 64000
frame-relay lmi-type q933a
frame-relay intf-type dce
frame-relay route 301 interface Serial1/1 300
r1配置:
interface Loopback0
ip address 1.1.1.1 255.0.0.0
interface Serial1/1
ip address 192.168.1.1 255.255.255.0
encapsulation frame-relay
ip ospf priority 100
设置本接口的优先级为100,为了让此接口选举为DR
frame-relay map ip 192.168.1.2 200 broadcast
设置到 192.168.1.2 的信息 由本地接口200 发出
frame-relay map ip 192.168.1.3 300 broadcast
设置到 192.168.1.3 的信息 由本地接口300 发出
frame-relay lmi-type q933a
router ospf 100
network 1.0.0.0 0.255.255.255 area 0
network 192.168.1.0 0.0.0.255 area 0
neighbor 192.168.1.2
neighbor 192.168.1.3
因为不能发送广播,所有运行OSPF协议需要手工设定邻居,192.168.1.2,192.168.1.3
r2配置:
interface Loopback0
ip address 2.2.2.2 255.0.0.0
interface Serial1/2
ip address 192.168.1.2 255.255.255.0
encapsulation frame-relay
ip ospf priority 0
设置本接口的优先级为0,为了让此接口不参与选举DR,BDR
frame-relay map ip 192.168.1.1 201 broadcast
frame-relay map ip 192.168.1.3 201 broadcast
frame-relay lmi-type q933a
router ospf 100
network 2.0.0.0 0.255.255.255 area 0
network 192.168.1.0 0.0.0.255 area 0
neighbor 192.168.1.1
r3配置:
interface Loopback0
ip address 3.3.3.3 255.0.0.0
interface Serial1/3
ip address 192.168.1.3 255.255.255.0
encapsulation frame-relay
ip ospf priority 50
设置本接口的优先级为50,为了让此接口选举为BDR
interface Serial1/3
ip address 192.168.1.3 255.255.255.0
encapsulation frame-relay
ip ospf priority 50
frame-relay map ip 192.168.1.1 301 broadcast
frame-relay map ip 192.168.1.2 301 broadcast
frame-relay lmi-type q933a
router ospf 100
network 3.0.0.0 0.255.255.255 area 0
network 192.168.1.0 0.0.0.255 area 0
neighbor 192.168.1.1
有错误欢迎请指正,谢谢!