1. 程式人生 > >13-高級路由:OSPF DR BDR實驗

13-高級路由:OSPF DR BDR實驗

sta other bdr face conf ddr prior sha ethernet

一、實驗拓撲:
技術分享圖片
二、命令部署:

三、驗證:
R3#show ip ospf neighbor 查看DR、BDR
R1#clear ip ospf process 清除OSPF進程

R1(config)#int f0/0
R1(config-if)#ip ospf priority 10 修改優先級

註意:增加R6,如果把200.1.1.6通告進入area 0,那麽R6就是新的DR;
如果通告進area 1,那麽R6是200.1.1.0的DR,R5是200.1.1.0的BDR;
這樣結果,R5既是DR又是BDR,只不過在不同的網段。

1、驗證:重啟後/清除進程後
R1#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface

2.2.2.2 1 2WAY/DROTHER 00:00:32 100.1.1.2 FastEthernet0/0
3.3.3.3 1 2WAY/DROTHER 00:00:32 100.1.1.3 FastEthernet0/0
4.4.4.4 1 FULL/BDR 00:00:34 100.1.1.4 FastEthernet0/0
5.5.5.5 1 FULL/DR 00:00:35 100.1.1.5 FastEthernet0/0
2、驗證:R1增加優先級重啟後
R2#show ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface
1.1.1.1 10 FULL/DR 00:00:36 100.1.1.1 FastEthernet0/0
3.3.3.3 1 2WAY/DROTHER 00:00:36 100.1.1.3 FastEthernet0/0
4.4.4.4 1 2WAY/DROTHER 00:00:36 100.1.1.4 FastEthernet0/0
5.5.5.5 1 FULL/BDR

R1(config)#int f0/0
R1(config-if)#shutdown
R2#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
3.3.3.3 1 2WAY/DROTHER 00:00:30 100.1.1.3 FastEthernet0/0
4.4.4.4 1 FULL/BDR 00:00:34 100.1.1.4 FastEthernet0/0
5.5.5.5 1 FULL/DR 00:00:34 100.1.1.5 FastEthernet0/0
3、R3、R4把優先級改為0後
R4(config)#int f0/0
R4(config-if)#ip ospf priority 0
R3(config)#int f0/0
R3(config-if)#ip ospf priority 0

R2#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
3.3.3.3 0 FULL/DROTHER 00:00:34 100.1.1.3 FastEthernet0/0
4.4.4.4 0 FULL/DROTHER 00:00:35 100.1.1.4 FastEthernet0/0
5.5.5.5 1 FULL/DR
4、增加R6後:
R2#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
3.3.3.3 0 FULL/DROTHER 00:00:38 100.1.1.3 FastEthernet0/0
4.4.4.4 0 FULL/DROTHER 00:00:38 100.1.1.4 FastEthernet0/0
5.5.5.5 1 FULL/DR 00:00:39 100.1.1.5 FastEthernet0/0

R6#show ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface
5.5.5.5 1 FULL/BDR 00:00:34 200.1.1.5 FastEthernet0/0

技術分享圖片

13-高級路由:OSPF DR BDR實驗