debug ip ospf adj
2008-02-23 04:54:56来源:互联网 阅读 ()
拓扑:
R1,R2,R3,R4连到交换机上,RID分别是:1.1.1.1 ,2.2.2.2, 3.3.3.3 ,4.4.4.4
R1:10.11.11.11/8 R2:10.2.2.2/8 R3:10.3.3.3/8 R4:10.4.4.4/8
起用顺序,先启动R2,R3,过程如下,R2.R3之间选举了DR/BDR,并交换LSA形成FULL关系:
r2#debug ip ospf adj
OSPF adjacency events debugging is on
r2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
r2(config)#router ospf 1
r2(config-router)#net 10.0.0.0 0.255.255.255 a 0
r2(config-router)#
00:06:11: OSPF: Interface Ethernet0/1 going Up
00:06:11: OSPF: Build router LSA for area 0, router ID 2.2.2.2, seq 0x80000001
00:06:17: OSPF: 2 Way Communication to 3.3.3.3 on Ethernet0/1, state 2WAY
建立2way
00:06:17: OSPF: Backup seen Event before WAIT timer on Ethernet0/1
00:06:17: OSPF: DR/BDR election on Ethernet0/1
00:06:17: OSPF: Elect BDR 2.2.2.2
00:06:17: OSPF: Elect DR 3.3.3.3
00:06:17: OSPF: Elect BDR 2.2.2.2
00:06:17: OSPF: Elect DR 3.3.3.3
00:06:17: DR: 3.3.3.3 (Id) BDR: 2.2.2.2 (Id)
DR/BDR选举
00:06:17: OSPF: Send DBD to 3.3.3.3 on Ethernet0/1 seq 0xF17 opt 0x42 flag 0x7 len 32
发送一个序号为f17,初始位=1,More位=0,MS主从位=1,认为自己是主
00:06:21: OSPF: Rcv DBD from 3.3.3.3 on Ethernet0/1 seq 0x8EF opt 0x42 flag 0x7 len 32 mtu 1500 state EXSTART
00:06:21: OSPF: NBR Negotiation Done. We are the SLAVE
对方返回一个DBD,序号8ef,初始位=1,M=1,MS=1,对方认为自己是主.这个路由器同意了,认为自己是从.预启动状态.
00:06:21: OSPF: Send DBD to 3.3.3.3 on Ethernet0/1 seq 0x8EF opt 0x42 flag 0x2 len 52
接着这个从路由器发送第一个携带正式DBD的报文,注意序号是用的和预启动中同一个序号.
00:06:21: OSPF: Rcv DBD from 3.3.3.3 on Ethernet0/1 seq 0x8F0 opt 0x42 flag 0x3 len 52 mtu 1500 state EXCHANGE
接收到主陆游器上发来的DBD报文,这个序号是上一个序号 1.此时是交换状态
00:06:21: OSPF: Send DBD to 3.3.3.3 on Ethernet0/1 seq 0x8F0 opt 0x42 flag 0x0 len 32
从陆游器发回一个确认,注意序号是和接到的DBD序号相同
00:06:21: OSPF: Database request to 3.3.3.3
00:06:21: OSPF: sent LS REQ packet to 10.3.3.3, length 12
00:06:21: OSPF: Rcv DBD from 3.3.3.3 on Ethernet0/1 seq 0x8F1 opt 0x42 flag 0x1 len 32 mtu 1500 state EXCHANGE
00:06:21: OSPF: Exchange Done with 3.3.3.3 on Ethernet0/1
00:06:21: OSPF: Send DBD to 3.3.3.3 on Ethernet0/1 seq 0x8F1 opt 0x42 flag 0x0 len 32
这是一个loading与exchange的混合过程,主路由器发送一个DBD,从路由器用一个相同序号进行确认.同时进行DBDrequest和update.
过程结束的标志是,主陆游器发送More=0的DBD,然后从陆游器确认这个M=0的DBD后,认为exchange完成.如果此时的连路状态请求列表中还有条目,则开始进入loading状态开始请求这些LSA,直到请求列表变空.
00:06:21: OSPF: Synchronized with 3.3.3.3 on Ethernet0/1, state FULL
00:06:21: %OSPF-5-ADJCHG: Process 1, Nbr 3.3.3.3 on Ethernet0/1 from LOADING to FULL, Loading Done
00:06:21: OSPF: Build router LSA for area 0, router ID 2.2.2.2, seq 0x80000002
00:06:27: OSPF: Neighbor change Event on interface Ethernet0/1
00:06:27: OSPF: DR/BDR election on Ethernet0/1
00:06:27: OSPF: Elect BDR 2.2.2.2
00:06:27: OSPF: Elect DR 3.3.3.3
00:06:27: DR: 3.3.3.3 (Id) BDR: 2.2.2.2 (Id)
接着,起用R1,此时R1应该分别与R2.R3交换LSA,并构成FULL:
R2:
r2#
00:29:31: OSPF: Rcv DBD from 1.1.1.1 on Ethernet0/1 seq 0x1DFD opt 0x42 flag 0x7 len 32 mtu 1500 state INIT
00:29:31: OSPF: 2 Way Communication to 1.1.1.1 on Ethernet0/1, state 2WAY
00:29:31: OSPF: Neighbor change Event on interface Ethernet0/1
00:29:31: OSPF: DR/BDR election on Ethernet0/1
00:29:31: OSPF: Elect BDR 2.2.2.2
00:29:31: OSPF: Elect DR 3.3.3.3
00:29:31: DR: 3.3.3.3 (Id) BDR: 2.2.2.2 (Id)
00:29:31: OSPF: Send DBD to 1.1.1.1 on Ethernet0/1 seq 0x1B60 opt 0x42 flag 0x7 len 32
00:29:31: OSPF: First DBD and we are not SLAVE
00:29:31: OSPF: Rcv DBD from 1.1.1.1 on Ethernet0/1 seq 0x1B60 opt 0x42 flag 0x2 len 52 mtu 1500 state EXSTART
00:29:31: OSPF: NBR Negotiation Done. We are the MASTER
00:29:31: OSPF: Send DBD to 1.1.1.1 on Ethernet0/1 seq 0x1B61 opt 0x42 flag 0x3 len 92
00:29:31: OSPF: Database request to 1.1.1.1
00:29:31: OSPF: sent LS REQ packet to 10.11.11.11, length 12
00:29:31: OSPF: Rcv DBD from 1.1.1.1 on Ethernet0/1 seq 0x1B61 opt 0x42 flag 0x0 len 32 mtu 1500 state EXCHANGE
00:29:31: OSPF: Send DBD to 1.1.1.1 on Ethernet0/1 seq 0x1B62 opt 0x42 flag 0x1 len 32
00:29:31: OSPF: Rcv DBD from 1.1.1.1 on Ethernet0/1 seq 0x1B62 opt 0x42 flag 0x0 len 32 mtu 1500 state EXCHANGE
00:29:31: OSPF: Exchange Done with 1.1.1.1 on Ethernet0/1
00:29:31: OSPF: Synchronized with 1.1.1.1 on Ethernet0/1, state FULL
00:29:31: %OSPF-5-ADJCHG: Process 1, Nbr 1.1.1.1 on Ethernet0/1 from LOADING to FULL, Loading Done
标签:
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有
上一篇:加速cisco交换机初始化过程
下一篇:VLAN间访问控制
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash