理解ospf中DR与BDR的选举

由ljn8483 作
理解ospfDRBDR的选举
目录
提要
正文
实验
TOPO 如下
基本配置如下
测试
提要:
    l          ospf 网络中不同的广播域 DR BDR 选择情况
 
正文:
l        什么要选择 DR?
在构建相关路由器之间的邻居关系时,会创建很多不必要的 LSA
他们会以 n n 次方猛增。
l        怎样选举 DR/BDR?                                          老问题不在赘述。参看卷一 P288
l        什么时候发生同为 DR BDR                                                                                                                                                     
本实验即可演示。
TOPO 如下
基本配置如下
l        R 1
l        R 2
l        R3
 
R1 完整配置
interface Loopback0
 ip address 1.1.1 .1 255.255.255.0
!
interface Ethernet0/0
 ip address 13.1.1 .1 255.255.255.0
!
interface Serial1/0
 ip address 12.1.1 .1 255.255.255.0
 ip ospf network broadcast
 serial restart-delay 0
!
interface Serial2/0
 no ip address
 shutdown
 serial restart-delay 0
!
router ospf 10
 log-adjacency-changes
 network 1.1.1 .0 0.0.0.255 area 0
 network 12.1.1 .0 0.0.0.255 area 0
 network 13.1.1 .0 0.0.0.255 area 0
 
R2 完整配置
interface Loopback0
 ip address 2.2.2 .2 255.255.255.0
!
interface Ethernet0/0
 no ip address
 shutdown
!
interface Serial1/0
 ip address 23.1.1 .2 255.255.255.0
 ip ospf network broadcast
 serial restart-delay 0
!
interface Serial2/0
 ip address 12.1.1 .2 255.255.255.0
 ip ospf network broadcast
 serial restart-delay 0
!
router ospf 10
 log-adjacency-changes
 network 12.1.1 .0 0.0.0.255 area 0
 network 23.1.1 .0 0.0.0.255 area 0
 
R3 完整配置
interface Loopback0
 ip address 3.3.3 .3 255.255.255.0
!
interface Ethernet0/0
 ip address 13.1.1 .3 255.255.255.0
!
interface Serial1/0
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/0
 ip address 23.1.1 .3 255.255.255.0
 ip ospf network broadcast
 serial restart-delay 0
!
router ospf 10
 log-adjacency-changes
 network 13.1.1 .0 0.0.0.255 area 0
 network 23.1.1 .0 0.0.0.255 area 0
 
 
测试: r1#sh ip os nei
 
Neighbor ID     Pri   State           Dead Time   Address         Interface
2.2.2 .2           1   FULL/BDR        00:00:38    12.1.1 .2        Serial1/0
3.3.3 .3           1   FULL/BDR          00:00:35    13.1.1 .3        Ethernet0/0
 
r2#sh ip os nei
 
Neighbor ID     Pri   State           Dead Time   Address         Interface
3.3.3 .3           1   FULL/DR         00:00:38    23.1.1 .3        Serial1/0
1.1.1 .1           1   FULL/DR          00:00:34    12.1.1 .1        Serial2/0
 
r3#sh ip os nei
 
Neighbor ID     Pri   State           Dead Time   Address         Interface
2.2.2 .2           1   FULL/BDR        00:00:34    23.1.1 .2        Serial2/0
1.1.1 .1           1   FULL/DR         00:00:31    13.1.1 .1        Ethernet0/0
默认串行链路为点到点的不选举 DR/BDR ,我们使用 ip ospf network broadcast 命令,让其变为广播链路。在两个广播域边界就会产生既是 DR 又为 BDR 的情况,注意 R1 因为先起机所以永为 DR 并不可抢夺。
  
更多精华帖 请见 [url]www.one-tom.com/bbs[/url]
网站首页 : [url]www.one-tom.com[/url]

你可能感兴趣的:(职场,休闲)