CCNP(BSCI)實驗:OSPF的Show命令解析

CCNP(BSCI)實驗:OSPF的Show命令解析
R一、R2上的配置
R1(config)#int lo0
R1(config-if)#ip add 1.1.1.1 255.255.255.0
R1(config-if)#int s2/1
R1(config-if)#ip add 12.1.1.1 255.255.255.0
R1(config-if)#no sh
R1(config-if)#網絡

R2(config)#int lo0
R2(config-if)#ip ad 2.2.2.2 255.255.255.0
R2(config-if)#int s2/1
R2(config-if)#ip ad 12.1.1.2 255.255.255.0
R2(config-if)#no sh
R2(config-if)#endide

實驗過程:
第一步:在R一、R2上配置ospf
R1(config)#router os 11
R1(config-router)#net 1.1.1.1 255.255.255.0 a 0
R1(config-router)#net 12.1.1.1 255.255.255.0 a 0
//這裏用反掩碼,不過此版本能夠將掩碼改換爲反掩碼this

R2(config)#router os 11
R2(config-router)#net 2.2.2.2 255.255.255.0 area 0
R2(config-router)#net 12.1.1.2 0.0.0.255 a 0
第二步:查看協議
R1#sh ip pro
Routing Protocol is "ospf 11"
//ospf的進程號
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Router ID 1.1.1.1
//Router ID
Number of areas in this router is 1. 1 normal 0 stub 0 nssa
Maximum path: 4
Routing for Networks:
1.1.1.0 0.0.0.255 area 0
12.1.1.0 0.0.0.255 area 0
//通告的兩個的ip
Routing Information Sources:
Gateway Distance Last Update
Distance: (default is 110)
第三步 :查看接口信息
R1#sh ip os int s2/1
Serial2/1 is up, line protocol is up //接口up,協議up
Internet Address 12.1.1.1/24, Area 0 //此接口的ip、掩碼和區域
Process ID 11, Router ID 1.1.1.1, Network Type POINT_TO_POINT, Cost: 64
//進程號, Router ID 網絡類型:點到點 開銷值
Transmit Delay is 1 sec, State POINT_TO_POINT, //傳送延遲
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
//時間間隔配置 hello包10s 死亡時間40s 等待40s 從新發送5s
oob-resync timeout 40
Hello due in 00:00:01
//距下一個hello包以送時間還有01s
Index 2/2, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 1
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 1, Adjacent neighbor count is 1
Adjacent with neighbor 2.2.2.2
Suppress hello for 0 neighbor(s)
第三步:查看鄰居的簡要信息
R1#sh ip os nei
狀態
Neighbor ID Pri State Dead Time Address Interface
2.2.2.2 0 FULL/ - 00:00:30 12.1.1.2 Serial2/1
鄰居的Router ID 優先級 死亡時間 對方接口IP 收到此信息的本地接口
第四步:查看鄰居的相關信息
R1#sh ip ospf nei detail
Neighbor 2.2.2.2, interface address 12.1.1.2
In the area 0 via interface Serial2/1
Neighbor priority is 0, State is FULL, 6 state changes
DR is 0.0.0.0 BDR is 0.0.0.0
//這裏沒有選舉DR和BDR是由於這裏的鏈路狀態爲點到點型
Options is 0x52
LLS Options is 0x1 (LR)
Dead timer due in 00:00:37
Neighbor is up for 00:03:02
Index 1/1, retransmission queue length 0, number of retransmission 1
First 0x0(0)/0x0(0) Next 0x0(0)/0x0(0)
Last retransmission scan length is 1, maximum is 1
Last retransmission scan time is 0 msec, maximum is 0 msec
R1#
第五步:查看鄰居關係的創建
R1#clear ip ospf process
Reset ALL OSPF processes? [no]: y
//咱們在這裏清除了鄰居關係,以後在看看鄰居關係的創建過程
R1#
Nov 19 14:11:23.183: OSPF: rcv. v:2 t:1 l:48 rid:2.2.2.2
aid:0.0.0.0 chk:E694 aut:0 auk: from Serial2/1
Nov 19 14:11:23.455: %OSPF-5-ADJCHG: Process 11, Nbr 2.2.2.2 on Serial2/1 from FULL to DOWN, Neighbor Down: Interface down or detached
Nov 19 14:11:23.491: OSPF: rcv. v:2 t:1 l:48 rid:2.2.2.2
aid:0.0.0.0 chk:E694 aut:0 auk: from Serial2/1
Nov 19 14:11:23.555: OSPF: rcv. v:2 t:2 l:32 rid:2.2.2.2
aid:0.0.0.0 chk:9095 aut:0 auk: from Serial2/1
Nov 19 14:11:23.571: OSPF: rcv. v:2 t:2 l:52 rid:2.2.2.2
aid:0.0.0.0 chk:8A28 aut:0 auk: from Serial2/1
Nov 19 14:11:23.575: OSPF: rcv. v:2 t:2 l:32 rid:2.2.2.2
aid:0.0.0.0 chk:9099 aut:0 auk: from Serial2/1
Nov 19 14:11:23.599: OSPF: rcv. v:2 t:4 l:88 rid:2.2.2.2
aid:0.0.0.0 chk:CCB2 aut:0 auk: from Serial2/1
R1#
Nov 19 14:11:23.603: %OSPF-5-ADJCHG: Process 11, Nbr 2.2.2.2 on Serial2/1 from LOADING to FULL, Loading Done
R1#
Nov 19 14:11:25.947: OSPF: rcv. v:2 t:5 l:44 rid:2.2.2.2
aid:0.0.0.0 chk:114A aut:0 auk: from Serial2/1
R1#
Nov 19 14:11:28.435: OSPF: rcv. v:2 t:4 l:88 rid:2.2.2.2
aid:0.0.0.0 chk:EA8F aut:0 auk: from Serial2/1
Nov 19 14:11:28.819: OSPF: rcv. v:2 t:4 l:88 rid:2.2.2.2
aid:0.0.0.0 chk:EA8F aut:0 auk: from Serial2/1
R1#
Nov 19 14:11:32.435: OSPF: rcv. v:2 t:5 l:44 rid:2.2.2.2
aid:0.0.0.0 chk:2157 aut:0 auk: from Serial2/1
Nov 19 14:11:33.167: OSPF: rcv. v:2 t:1 l:48 rid:2.2.2.2
aid:0.0.0.0 chk:E694 aut:0 auk: from Serial2/1
R1#u all
All possible debugging has been turned off
R1#
第六步:用於維護鄰居的hello包
R1#
Nov 19 15:13:33.171: OSPF: rcv. v:2 t:1 l:48 rid:2.2.2.2
aid:0.0.0.0 chk:E694 aut:0 auk: from Serial2/1
//v:版本號爲2,t:包的類型這裏爲hello包,l:長度爲48,rid:
//Aid:chk:校驗和,aut:認證爲空,auk:密鑰爲空
//from ser2/1:這些信息是來自本地接口s2/1debug

相關文章
相關標籤/搜索