1、NBMA 选DR/BDR , 手工指邻居 30s
2、broadcast 选DR/BDR , 不需要手工指邻居 10s
3、P2MP 不选DR/BDR ,不需要手工指邻居 30s
4、P2P 不选DR/BDR ,不需要手工指邻居 10s
这是实验拓扑,下面是基础配置:
首先配置帧中继交换机
R1:
sys
sysname R1
int loop 0
ip add 1.1.1.1 24
int s0/0/1
ip add 192.168.123.1 24
q
R2:
sys
sysname R2
int loop 0
ip add 2.2.2.2 24
int s0/0/1
ip add 192.168.123.2 24
q
R3:
sys
sysname R3
int loop 0
ip add 3.3.3.3 24
int s0/0/1
ip add 192.168.123.3 24
q
为了在帧中继网络中支持组播及广播报文, 必须在配置帧中继映射时添加关键字 broadcast
R1:
int s0/0/1
link-protocol fr
und fr inarp
fr map ip 192.168.123.2 102 broadcast
fr map ip 192.168.123.3 103 broadcast
R2:
int s0/0/1
link-protocol fr
und fr inarp
fr map ip 192.168.123.1 201 broadcast
R3:
int s0/0/1
link-protocol fr
und fr inarp
fr map ip 192.168.123.1 301 broadcast
配置完成后,R1 ping R2 R3 测试连通性
配置OSPF 协议:
R1:
ospf router-id 1.1.1.1
area 0
network 1.1.1.1 0.0.0.0
network 192.168.123.1 0.0.0.0
R2:
ospf router-id 2.2.2.2
area 0
network 2.2.2.2 0.0.0.0
network 192.168.123.2 0.0.0.0
R3:
ospf router-id 3.3.3.3
area 0
network 3.3.3.3 0.0.0.0
network 192.168.123.3 0.0.0.0
==========
NBMA 模式:
帧中继接口在OSPF协议中的默认网络类型为NBMA,需要选择DR/BDR
现在OSPF 邻居是建立不起来的,配置OSPF 的NBMA模式,需要手工指邻居
R1:
ospf
peer 192.168.123.2
peer 192.168.123.3
R2:
ospf
peer 192.168.123.1
R3:
ospf
peer 192.168.123.1
查看路由表
现在的路由表,学习不全,学习不到R2 的环回口,R1 认为R3 是DR,所以只与R3传路由,R1 R2 之间出现了问题,要解决这个问题,就必须确保DR有且只有一个,R1 为总部设为DR ,R2 R3为分部设为DRother。
R1:
int s0/0/1
ospf dr-priority 9
R2:
int s0/0/1
ospf dr-priority 0
R3:
int s0/0/1
ospf dr-priority 0
P2P模式:
在P2P模式,R1 只能与一个邻居建立关系
R1:
int s0/0/1
ospf network-type p2p
R2:
int s0/0/1
ospf network-type p2p
broadcast 模式:
配置 OSPF 的广播模式 Broadcast
广播模式不需要指邻居,需要选DR/BDR
R1:
ospf
undo peer 192.168.123.2
undo peer 192.168.123.3
int s0/0/1
ospf network-type broadcast
R2:
ospf
undo peer 192.168.123.1
int s0/0/1
ospf network-type broadcast
R3:
ospf
undo peer 192.168.123.1
int s0/0/1
ospf network-type broadcast
配置完成后,邻居建立起来
P2MP 模式:
配置OSPF 的点到多点网络类型,P2MP 不需要指邻居,不需要DR/BDR
R1:
int s0/0/1
ospf network-type p2mp
R2:
int s0/0/1
ospf network-type p2mp
undo ospf dr-priority
undo fr map ip 192.168.123.3 201
R3:
int s0/0/1
ospf network-type p2mp
undo ospf dr-priority
undo fr map ip 192.168.123.2 301