API Guide

2. OSPF INSTANCE 模式下设置 OSPF 限制计时器。
timers spf [start-time [hold-time [max-wait]]]
start-time 在拓扑更改后执行 SPF 计算之前配置初始延迟 1 600000 毫秒默认值未 1000
hold-time 当更改新拓扑时在执行 SPF 计算之前配置额外的延迟 1 600000 毫秒默认值为 10000
max-wait 配置可延迟 SPF 计算的最大保留时间 1 600000 毫秒默认值为 10000
启用 SPF 限制 (OSPFv2)
OS10(config)# router ospf 100
OS10(config-router-ospf-100)# timers spf 1200 2300 3400
启用 SPF 限制 (OSPFv3)
OS10(config)# router ospfv3 10
OS10(config-router-ospf-10)# timers spf 2000 3000 4000
查看 OSPFv2 SPF 限制
OS10(config-router-ospf-100)# do show ip ospf
Routing Process ospf 100 with ID 12.1.1.1
Supports only single TOS (TOS0) routes
It is Flooding according to RFC 2328
SPF schedule delay 1200 msecs, Hold time between two SPFs 2300 msecs
Convergence Level 0
Min LSA origination 0 msec, Min LSA arrival 1000 msec
Min LSA hold time 5000 msec, Max LSA wait time 5000 msec
Number of area in this router is 1, normal 1 stub 0 nssa 0
Area (0.0.0.1)
Number of interface in this area is 1
SPF algorithm executed 1 times
查看 OSPFv3 SPF 限制
OS10(config-router-ospfv3-100)# timers spf 1345 2324 9234
OS10(config-router-ospfv3-100)# do show ipv6 ospf
Routing Process ospfv3 100 with ID 129.240.244.107
SPF schedule delay 1345 msecs, Hold time between two SPFs 2324 msecs
Min LSA origination 5000 msec, Min LSA arrival 1000 msec
Min LSA hold time 0 msec, Max LSA wait time 0 msec
Number of area in this router is 1, normal 1 stub 0 nssa
Area (0.0.0.1)
Number of interface in this area is 1
SPF algorithm executed 2 times
Identifier
GUID-2D9CDDD0-8ACD-4F51-9C24-4893EC8EE78B
Version 2
Status Translation approved
OSPFv2
OSPFv2 支持 IPv4 地址系列。OSPFv2 路由器最初交换 hello 消息以设置邻居路由器的邻区。此 hello 过程将在 AS 的路由器之间
建立邻接。AS 区域中的每个路由器都不需要建立邻接。如果同一子网上的两个路由器在此过程中同意成为邻居则它们会以 LSA
形式开始交换网络拓扑信息。
OSPFv2 广播上的邻居和非广播多访问 (NBMA) 网络链路通过其接口地址进行标识而其他类型的链路上的邻居通过路由器
标识符 (RID) 来标识。
3 637