API Guide

分配路由器 ID
OS10(config)# router ospf 10
OS10(conf-router-ospf-10)# router-id 10.10.1.5
查看 OSPFv2 状态
OS10# show ip ospf 10
Routing Process ospf 10 with ID 10.10.1.5
Supports only single TOS (TOS0) routes
It is an Autonomous System Boundary Router
It is Flooding according to RFC 2328
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.0)
Number of interface in this area is 3
SPF algorithm executed 38 times
Area ranges are
Identifier GUID-8734EC1E-189E-4763-A061-BA92DD143840
Version 8
Status Translation approved
存根区域
类型 5 LSA 不会泛洪至存根区域。ABR 将默认路由通告到它所连接的存根区域。存根区域路由器使用默认路由到达外部目标。
1. 启用 OSPF 路由并进入 ROUTER-OSPF 模式 1 65535
router ospf instance number
2. ROUTER-OSPF 模式下将区域配置为存根区域。
area area-id stub [no-summary]
area-id OSPF 区域 ID 输入为 A.B.C.D 格式或数字 1 65535 IP 地址。
no-summary 可选输入以防止 ABR 将摘要 LSA 发送至存根区域。
配置存根区域
OS10(config)# router ospf 10
OS10(conf-router-ospf-10)# area 10.10.5.1 stub
查看存根区域配置
OS10# show ip ospf
Routing Process ospf 10 with ID 130.6.196.14
Supports only single TOS (TOS0) routes
It is Flooding according to RFC 2328
SPF schedule delay 1000 msecs, Hold time between two SPFs 10000 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 0 stub 1 nssa 0
Area (10.10.5.1)
Number of interface in this area is 0
SPF algorithm executed 1 times
Area ranges are
OS10# show running-configuration ospf
!
router ospf 10
area 10.10.5.1 stub
640 3