OSPF之调试Debug信息分析
学习计算机网络,如果想要更加深层次的学习和掌握技能,就必须学会查看Debug信息,这个是目前唯一的可以看到路由协议走向的查询工具。开启Debug测试信息:
- R1#debug ip ospf adj 开始OSPF的邻居信息的debug
- OSPF adjacency events debugging is on
- R1#clear ip ospf process 重新启动OSPF的邻居计算
- Reset ALL OSPF processes? [no]: y
- R1#
- 01:12:04: OSPF: Interface Serial1/0 going Down 接口重置为down
- 01:12:04: OSPF: 1.1.1.1 address 199.99.1.1 on Serial1/0 is dead, state DOWN
- 01:12:04: OSPF: 2.2.2.2 address 199.99.1.2 on Serial1/0 is dead, state DOWN
- 01:12:04: %OSPF-5-ADJCHG: Process 100, Nbr 2.2.2.2 on Serial1/0 from FULL to DOWN, Neighbor Down: Interface down or detached
- R1#
- 01:12:04: OSPF: Interface Loopback0 going Down
- 01:12:04: OSPF: 1.1.1.1 address 1.1.1.1 on Loopback0 is dead, state DOWN
- 01:12:04: OSPF: Interface Serial1/0 going Up 接口开始UP
- 01:12:04: OSPF: Interface Loopback0 going Up
- 01:12:05: OSPF: Build router LSA for area 0, router ID 1.1.1.1, seq 0x80000001 本地路由ID的计算和进程序列号的计算
- R1#
- 01:12:08: OSPF: 2 Way Communication to 2.2.2.2 on Serial1/0, state 2WAY 路由OSPF计算的2WAY状态
- 01:12:08: OSPF: Send DBD to 2.2.2.2 on Serial1/0 seq 0x1968 opt 0x42 flag 0x7 len 32 发送自己的DBD数据库给邻居
- 01:12:08: OSPF: Rcv DBD from 2.2.2.2 on Serial1/0 seq 0x2234 opt 0x42 flag 0x7
- 收到对发的DBD数据库消息,包含了数据库的进程序列号,类型字段和标记
- len 32 mtu 1500 state EXSTART 进入起始状态
- 01:12:08: OSPF: NBR Negotiation Done. We are the SLAVE 跟邻居彼此选举出主和从属的关系,这个关系关系到谁更新谁。
- 01:12:08: OSPF: Send DBD to 2.2.2.2 on Serial1/0 seq 0x2234 opt 0x42 flag 0x2 len 52
- 01:12:08: OSPF: Rcv DBD from 2.2.2.2 on Serial1/0 seq 0x2235 opt 0x42 flag 0x3 len 72 mtu 1500 state EXCHANGE
- 01:12:08: OSPF: Send DBD to 2.2.2.2 on Serial1/0 seq 0x2235 opt 0x42 flag 0x0 len 32
- 01:12:08: OSPF: Database request to 2.2.2.2 数据请求
- 01:12:08: OSPF: sent LS REQ packet to 199.99.1.2, length 24
- 01:12:08: OSPF: Rcv DBD from 2.2.2.2 on Serial1/0 seq 0x2236 opt 0x42 flag 0x1 len 32 mtu 1500 state EXCHANGE 状态变更为交换状态
- 01:12:08: OSPF: Exchange Done with 2.2.2.2 on Serial1/0
- 01:12:08: OSPF: Send DBD to 2.2.2.2 on Serial1/0 seq 0x2236 opt 0x42 flag 0x0 len 32
- 01:12:08: OSPF: Synchroni 彼此完成同步
- R1#zed with 2.2.2.2 on Serial1/0, state FULL 完整状态
- 01:12:08: %OSPF-5-ADJCHG: Process 100, Nbr 2.2.2.2 on Serial1/0 from LOADING to FULL, Loading Done
- R1#
- 01:12:11: OSPF: Build router LSA for area 0, router ID 1.1.1.1, seq 0x80000002
OSPF的相关信息还有很多,我们将会继续向大家介绍,希望大家多多掌握。
【编辑推荐】