OSPF 优先级 选取DR BDR

路由器r3显示了OSPF路由表和邻居状态,包括活动和不活动区域的详细信息。在OSPF进程中,邻居状态经历了从Down到Full的变化,涉及到多个路由器ID和接口。在某时刻,由于接口参数不匹配导致邻居状态变为Down,但随后恢复正常。此外,还记录了路由信息,如目的地址、协议、优先级、成本和下一跳接口。
摘要由CSDN通过智能技术生成

题目要求

部分代码

Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : OSPF
         Destinations : 3        Routes : 3        

OSPF routing table status : <Active>
         Destinations : 3        Routes : 3

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        1.1.1.1/32  OSPF    10   1           D   123.1.1.1       GigabitEthernet
0/0/0
        2.2.2.2/32  OSPF    10   1           D   123.1.1.2       GigabitEthernet
0/0/0
        4.4.4.4/32  OSPF    10   1           D   34.1.1.2        GigabitEthernet
0/0/1

OSPF routing table status : <Inactive>
         Destinations : 0        Routes : 0

[r3]disp    
[r3]display osp    
[r3]display ospf p    
[r3]display ospf peer b    
[r3]display ospf peer brief 

     OSPF Process 1 with Router ID 123.1.1.3
          Peer Statistic Information
 ----------------------------------------------------------------------------
 Area Id          Interface                        Neighbor id      State    
 0.0.0.0          GigabitEthernet0/0/0             123.1.1.1        Full        
 0.0.0.0          GigabitEthernet0/0/0             123.1.1.2        Full        
 0.0.0.1          GigabitEthernet0/0/1             34.1.1.2         Full        
 ----------------------------------------------------------------------------
[r3]disp    
[r3]display os    
[r3]display ospf p    
[r3]display ospf peer 

     OSPF Process 1 with Router ID 123.1.1.3
         Neighbors 

 Area 0.0.0.0 interface 123.1.1.3(GigabitEthernet0/0/0)'s neighbors
 Router ID: 123.1.1.1        Address: 123.1.1.1       
   State: Full  Mode:Nbr is  Slave  Priority: 1
   DR: 123.1.1.1  BDR: 123.1.1.2  MTU: 0    
   Dead timer due in 30  sec 
   Retrans timer interval: 0 
   Neighbor is up for 00:25:26     
   Authentication Sequence: [ 0 ] 

 Router ID: 123.1.1.2        Address: 123.1.1.2       
   State: Full  Mode:Nbr is  Slave  Priority: 1
   DR: 123.1.1.1  BDR: 123.1.1.2  MTU: 0    
   Dead timer due in 40  sec 
   Retrans timer interval: 6 
   Neighbor is up for 00:25:31     
   Authentication Sequence: [ 0 ] 

         Neighbors 

 Area 0.0.0.1 interface 34.1.1.1(GigabitEthernet0/0/1)'s neighbors
 Router ID: 34.1.1.2         Address: 34.1.1.2        
   State: Full  Mode:Nbr is  Slave  Priority: 1
   DR: 34.1.1.1  BDR: 34.1.1.2  MTU: 0    
   Dead timer due in 35  sec 
   Retrans timer interval: 5 
   Neighbor is up for 00:21:34     
   Authentication Sequence: [ 0 ] 

[r3]
Jul  9 2021 18:01:15-08:00 r3 %%01OSPF/3/NBR_DOWN_REASON(l)[0]:Neighbor state le
aves full or changed to Down. (ProcessId=256, NeighborRouterId=2.1.1.123, Neighb
orAreaId=0, NeighborInterface=GigabitEthernet0/0/0,NeighborDownImmediate reason=
Neighbor Down Due to 1-Wayhello Received, NeighborDownPrimeReason=1-Wayhello Rec
eived, NeighborChangeTime=2021-07-09 18:01:15-08:00) 
[r3]
Jul  9 2021 18:01:15-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[1]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.1.123, Neighbor
Event=1-Way, NeighborPreviousState=Full, NeighborCurrentState=Init) 
[r3]
Jul  9 2021 18:01:19-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[2]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.1.123, Neighbor
Event=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=ExStart) 
[r3]
Jul  9 2021 18:01:19-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[3]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.1.123, Neighbor
Event=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Excha
nge) 
[r3]
Jul  9 2021 18:01:19-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.1.123, Neighbor
Event=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loading

[r3]
Jul  9 2021 18:01:19-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[5]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.1.123, Neighbor
Event=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 
[r3]dis    
[r3]interf    
[r3]interface g    
[r3]interface GigabitEthernet 0/0/0
[r3-GigabitEthernet0/0/0]ospf dr    
[r3-GigabitEthernet0/0/0]ospf dr-priority 0
Jul  9 2021 18:01:51-08:00 r3 %%01OSPF/3/NBR_CHG_DOWN(l)[6]:Neighbor event:neigh
bor state changed to Down. (ProcessId=256, NeighborAddress=1.1.1.123, NeighborEv
ent=KillNbr, NeighborPreviousState=Full, NeighborCurrentState=Down) 
[r3-GigabitEthernet0/0/0]
[r3-GigabitEthernet0/0/0]
Jul  9 2021 18:01:51-08:00 r3 %%01OSPF/3/NBR_DOWN_REASON(l)[7]:Neighbor state le
aves full or changed to Down. (ProcessId=256, NeighborRouterId=1.1.1.123, Neighb
orAreaId=0, NeighborInterface=GigabitEthernet0/0/0,NeighborDownImmediate reason=
Neighbor Down Due to Kill Neighbor, NeighborDownPrimeReason=Interface Parameter 
Mismatch, NeighborChangeTime=2021-07-09 18:01:51-08:00) 
[r3-GigabitEthernet0/0/0]
Jul  9 2021 18:01:51-08:00 r3 %%01OSPF/3/NBR_CHG_DOWN(l)[8]:Neighbor event:neigh
bor state changed to Down. (ProcessId=256, NeighborAddress=2.1.1.123, NeighborEv
ent=KillNbr, NeighborPreviousState=Full, NeighborCurrentState=Down) 
[r3-GigabitEthernet0/0/0]
Jul  9 2021 18:01:51-08:00 r3 %%01OSPF/3/NBR_DOWN_REASON(l)[9]:Neighbor state le
aves full or changed to Down. (ProcessId=256, NeighborRouterId=2.1.1.123, Neighb
orAreaId=0, NeighborInterface=GigabitEthernet0/0/0,NeighborDownImmediate reason=
Neighbor Down Due to Kill Neighbor, NeighborDownPrimeReason=Interface Parameter 
Mismatch, NeighborChangeTime=2021-07-09 18:01:51-08:00) 
[r3-GigabitEthernet0/0/0]
Jul  9 2021 18:01:53-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[10]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.1.123, Neighbo
rEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[r3-GigabitEthernet0/0/0]
Jul  9 2021 18:01:53-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[11]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.1.123, Neighbo
rEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way) 
[r3-GigabitEthernet0/0/0]
Jul  9 2021 18:01:53-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[12]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.1.123, Neighbo
rEvent=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart) 
[r3-GigabitEthernet0/0/0]
Jul  9 2021 18:01:53-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[13]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.1.123, Neighbo
rEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exch
ange) 
[r3-GigabitEthernet0/0/0]
Jul  9 2021 18:01:53-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[14]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.1.123, Neighbo
rEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loadin
g) 
[r3-GigabitEthernet0/0/0]
Jul  9 2021 18:01:53-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[15]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.1.123, Neighbo
rEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 
[r3-GigabitEthernet0/0/0]q
[r3]
Jul  9 2021 18:01:58-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[16]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.1.123, Neighbo
rEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[r3]
Jul  9 2021 18:01:58-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[17]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.1.123, Neighbo
rEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way) 
[r3]
Jul  9 2021 18:01:58-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[18]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.1.123, Neighbo
rEvent=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=2Way) 
[r3]dis    
[r3]display osp    
[r3]display ospf p    
[r3]display ospf peer 

     OSPF Process 1 with Router ID 123.1.1.3
         Neighbors 

 Area 0.0.0.0 interface 123.1.1.3(GigabitEthernet0/0/0)'s neighbors
 Router ID: 123.1.1.1        Address: 123.1.1.1       
   State: Full  Mode:Nbr is  Slave  Priority: 1
   DR: 123.1.1.1  BDR: None   MTU: 0    
   Dead timer due in 34  sec 
   Retrans timer interval: 0 
   Neighbor is up for 00:00:12     
   Authentication Sequence: [ 0 ] 

 Router ID: 123.1.1.2        Address: 123.1.1.2       
   State: 2-Way  Mode:Nbr is  Master  Priority: 0
   DR: 123.1.1.1  BDR: None   MTU: 0    
   Dead timer due in 36  sec 
   Retrans timer interval: 0 
   Neighbor is up for 00:00:00     
   Authentication Sequence: [ 0 ] 

         Neighbors 

 Area 0.0.0.1 interface 34.1.1.1(GigabitEthernet0/0/1)'s neighbors
 Router ID: 34.1.1.2         Address: 34.1.1.2        
   State: Full  Mode:Nbr is  Slave  Priority: 1
   DR: 34.1.1.1  BDR: 34.1.1.2  MTU: 0    
   Dead timer due in 39  sec 
   Retrans timer interval: 5 
   Neighbor is up for 00:23:39     
   Authentication Sequence: [ 0 ] 

[r3]
Jul  9 2021 18:02:57-08:00 r3 %%01OSPF/3/NBR_DOWN_REASON(l)[19]:Neighbor state l
eaves full or changed to Down. (ProcessId=256, NeighborRouterId=2.1.1.34, Neighb
orAreaId=16777216, NeighborInterface=GigabitEthernet0/0/1,NeighborDownImmediate 
reason=Neighbor Down Due to 1-Wayhello Received, NeighborDownPrimeReason=1-Wayhe
llo Received, NeighborChangeTime=2021-07-09 18:02:57-08:00) 
[r3]
Jul  9 2021 18:02:57-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[20]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.1.34, Neighbor
Event=1-Way, NeighborPreviousState=Full, NeighborCurrentState=Init) 
[r3]
Jul  9 2021 18:02:59-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[21]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.1.34, Neighbor
Event=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=ExStart) 
[r3]
Jul  9 2021 18:02:59-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[22]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.1.34, Neighbor
Event=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Excha
nge) 
[r3]
Jul  9 2021 18:02:59-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[23]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.1.34, Neighbor
Event=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loading

[r3]
Jul  9 2021 18:02:59-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[24]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.1.34, Neighbor
Event=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 
 

截图

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值