NBMA模式:需要手工指定邻居
BMA模式:不需要手工指定邻居
 
环境描述:
4台路由器,其中R2用来模拟帧中继云;R1的S0/0连接R2的S0/0,R3的S0/0连接R2的S0/1,R4的S0/0连接R2的S0/2;
配置命令:
1、将R2变为帧中继交换机
en
conf t
hostname fr-sw
frame-relay swithing
interface s0/0
no ip address
clock rate 128000
encapsulation frame-relay
frame-relay lmi-type cisco
frame-relay intf-type dce
frame-relay route 103 interface s0/1 301
frame-relay route 104 interface s0/2 401
no shutdown
interface s0/1
no ip address
clock rate 128000
encapsulation frame-relay
frame-relay lmi-type cisco
frame-relay intf-type dce
frame-relay route 301 interface s0/1 103
no shutdown
interface s0/0
no ip address
clock rate 128000
encapsulation frame-relay
frame-relay lmi-type cisco
frame-relay intf-type dce
frame-relay route 104 interface s0/0 401  
no shutdown
end
sh frame-relay route
 
R1:
en
conf t
hostname R1
interface loopback 1
ip address 1.1.1.1 255.255.255.0
no sh
exit
interface s0/0
encapsulation frame-relay
no sh
ip address 192.168.1.1 255.255.255.0
no frame-relay inverse-arp
frame map ip 192.168.1.3 103 broadcast
frame map ip 192.168.1.4 104 broadcast
ip ospf network non-broadcast
ip ospf priority 10
exit
router ospf 1
neighbor 192.168.1.3
neighbor 192.168.1.4
network 1.1.1.0 0.0.0.255 area 0
network 192.168.1.0 0.0.0.255 area 0
exit
 
R3:
en
conf t
hostname R3
interface loopback 1
ip address 3.3.3.3 255.255.255.0
no sh
exit
interface s0/0
encapsulation frame-relay
no sh
ip address 192.168.1.3 255.255.255.0
no frame-relay inverse-arp
frame map ip 192.168.1.1 301 broadcast
ip ospf network non-broadcast
ip ospf priority 0
exit
router ospf 1
network 1.1.1.0 0.0.0.255 area 0
network 192.168.1.0 0.0.0.255 area 0
exit
 
R4:
en
conf t
hostname R4
interface loopback 1
ip address 4.4.4.4 255.255.255.0
no sh
exit
interface s0/0
encapsulation frame-relay
no sh
ip address 192.168.1.4 255.255.255.0
no frame-relay inverse-arp
frame map ip 192.168.1.1 401 broadcast
ip ospf network non-broadcast
ip ospf priority 0
exit
router ospf 1
network 1.1.1.0 0.0.0.255 area 0
network 192.168.1.0 0.0.0.255 area 0
exit