CCNP(BSCI)实验:OSPF的Show命令解析

网友投稿 264 2022-09-22


CCNP(BSCI)实验:OSPF的Show命令解析

R2(config)#int lo0R2(config-if)#ip ad 2.2.2.2 255.255.255.0R2(config-if)#int s2/1R2(config-if)#ip ad 12.1.1.2 255.255.255.0R2(config-if)#no shR2(config-if)#end

实验过程:第一步:在R1、R2上配置ospfR1(config)#router os 11R1(config-router)#net 1.1.1.1 255.255.255.0 a 0R1(config-router)#net 12.1.1.1 255.255.255.0 a 0//这里用反掩码,不过此版本可以将掩码改换为反掩码

R2(config)#router os 11R2(config-router)#net 2.2.2.2 255.255.255.0 area 0R2(config-router)#net 12.1.1.2 0.0.0.255 a 0第二步:查看协议R1#sh ip proRouting Protocol is "ospf 11" //ospf的进程号Outgoing update filter list for all interfaces is not setIncoming update filter list for all interfaces is not setRouter ID 1.1.1.1 //Router IDNumber of areas in this router is 1. 1 normal 0 stub 0 nssaMaximum path: 4Routing for Networks:1.1.1.0 0.0.0.255 area 012.1.1.0 0.0.0.255 area 0//通告的两个的ipRouting Information Sources:Gateway Distance Last UpdateDistance: (default is 110)第三步 :查看接口信息R1#sh ip os int s2/1Serial2/1 is up, line protocol is up //接口up,协议upInternet 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 重新发送5soob-resync timeout 40Hello due in 00:00:01//距下一个hello包以送时间还有01sIndex 2/2, flood queue length 0Next 0x0(0)/0x0(0)Last flood scan length is 1, maximum is 1Last flood scan time is 0 msec, maximum is 0 msecNeighbor Count is 1, Adjacent neighbor count is 1 Adjacent with neighbor 2.2.2.2Suppress hello for 0 neighbor(s)第三步:查看邻居的简要信息R1#sh ip os nei状态Neighbor ID Pri State Dead Time Address Interface2.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.2In the area 0 via interface Serial2/1 Neighbor priority is 0, State is FULL, 6 state changesDR is 0.0.0.0 BDR is 0.0.0.0//这里没有选举DR和BDR是因为这里的链路状态为点到点型Options is 0x52LLS Options is 0x1 (LR)Dead timer due in 00:00:37Neighbor is up for 00:03:02Index 1/1, retransmission queue length 0, number of retransmission 1First 0x0(0)/0x0(0) Next 0x0(0)/0x0(0)Last retransmission scan length is 1, maximum is 1Last retransmission scan time is 0 msec, maximum is 0 msecR1#第五步:查看邻居关系的建立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.2aid:0.0.0.0 chk:E694 aut:0 auk: from Serial2/1Nov 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 detachedNov 19 14:11:23.491: OSPF: rcv. v:2 t:1 l:48 rid:2.2.2.2aid:0.0.0.0 chk:E694 aut:0 auk: from Serial2/1Nov 19 14:11:23.555: OSPF: rcv. v:2 t:2 l:32 rid:2.2.2.2aid:0.0.0.0 chk:9095 aut:0 auk: from Serial2/1Nov 19 14:11:23.571: OSPF: rcv. v:2 t:2 l:52 rid:2.2.2.2aid:0.0.0.0 chk:8A28 aut:0 auk: from Serial2/1Nov 19 14:11:23.575: OSPF: rcv. v:2 t:2 l:32 rid:2.2.2.2aid:0.0.0.0 chk:9099 aut:0 auk: from Serial2/1Nov 19 14:11:23.599: OSPF: rcv. v:2 t:4 l:88 rid:2.2.2.2aid:0.0.0.0 chk:CCB2 aut:0 auk: from Serial2/1R1#Nov 19 14:11:23.603: %OSPF-5-ADJCHG: Process 11, Nbr 2.2.2.2 on Serial2/1 from LOADING to FULL, Loading DoneR1#Nov 19 14:11:25.947: OSPF: rcv. v:2 t:5 l:44 rid:2.2.2.2aid:0.0.0.0 chk:114A aut:0 auk: from Serial2/1R1#Nov 19 14:11:28.435: OSPF: rcv. v:2 t:4 l:88 rid:2.2.2.2aid:0.0.0.0 chk:EA8F aut:0 auk: from Serial2/1Nov 19 14:11:28.819: OSPF: rcv. v:2 t:4 l:88 rid:2.2.2.2aid:0.0.0.0 chk:EA8F aut:0 auk: from Serial2/1R1#Nov 19 14:11:32.435: OSPF: rcv. v:2 t:5 l:44 rid:2.2.2.2aid:0.0.0.0 chk:2157 aut:0 auk: from Serial2/1Nov 19 14:11:33.167: OSPF: rcv. v:2 t:1 l:48 rid:2.2.2.2aid:0.0.0.0 chk:E694 aut:0 auk: from Serial2/1R1#u allAll possible debugging has been turned offR1#第六步:用于维护邻居的hello包R1#Nov 19 15:13:33.171: OSPF: rcv. v:2 t:1 l:48 rid:2.2.2.2aid: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/1


版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:CCNP(BSCI)实验:OSPF综合实验(ccnp实验题)
下一篇:CCNP(BSCI)实验:EIGRP的默认路由(bgp能够检测路由环路)
相关文章

 发表评论

暂时没有评论,来抢沙发吧~