一个点到多点网络被看作若干具有一个或多个邻居的点到点网络。当一个接口被配置给点到多点网络,就不需要DR/BDR,不需要定义邻居,这大大简化了给NBMA网络配置OSPF
这个实验将会验证给点到多点型网络的帧中继配置OSPF。路由器A、B、C将会用一个交叉电缆串行地连接到一个cisco路由器上(帧交换),它将作为帧中继交换。
使用端口命令ip ospf network point-to-multipoint可以给所有路由器设置网络类型。既不需设置优先级,也不需要定义邻居,因为网络中没有DR/BDR
//router a
int lo0
ip addr 1.1.1.1 255.255.255.0
int s0/0
ip addr 192.1.1.1 255.255.255.0
encap frame-relay ietf
ip ospf network point-to-multipoint
frame-relay map ip 192.1.1.2 100 broadcast
frame-relay map ip 192.1.1.3 100 broadcast
frame-relay lmi-type ansi
router ospf 64
netw 192.1.1.0 0.0.0.255 area 0
netw 1.1.1.1 0.0.0.0 area 0
//router b
int lo0
ip addr 2.2.2.2 255.255.255.0
int s0/0
ip addr 192.1.1.2 255.255.255.0
encap frame-relay ietf
ip ospf network point-to-multipoint
frame-relay map ip 192.1.1.1 100 broadcast
frame-relay map ip 192.1.1.3 200 broadcast
frame-relay lmi-type ansi
router ospf 64
netw 192.1.1.1 0.0.0.255 area 0
netw 2.2.2.2 0.0.0.0 area 0
//router c
int lo0
ip addr 3.3.3.3 255.255.255.0
int s1/0
ip addr 192.1.1.3 255.255.255.0
encap frame-relay ietf
ip ospf network point-to-multipoint
frame-relay lmi-type ansi
frame-relay map ip 192.1.1.1 200 broad
frame-relay map ip 192.1.1.2 200 broad
router ospf 64
netw 192.1.1.0 0.0.0.255 area 0
netw 3.3.3.3 0.0.0.0 area 0
//监视和测试配置
routera# sh ip ospf int s0/0
network type point-to-multipoint no priority
routera# show ip ospf neighbor
FULL/
注意路由器A与路由器B 2.2.2.2是完全邻接,但并没有DR概念。这条链路被看作点到点的链路,然而,不同之处在于所有路由器都被看作处在同一个子网中。
加载中,请稍候......