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

相关文章
相关标签/搜索