Reference Guide
Assign router identier
For managing and troubleshooting purposes, you can assign a router ID for the OSPFv2 process. Use the router’s IP address as the router
ID.
• Assign the router ID for the OSPFv2 process in ROUTER-OSPF mode
router-id ip-address
Assign router ID
OS10(config)# router ospf 10
OS10(conf-router-ospf-10)# router-id 10.10.1.5
View OSPFv2 status
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
Stub areas
Type 5 LSAs are not ooded into stub areas. The ABR advertises a default route into the stub area to which it is attached. Stub area routers
use the default route to reach external destinations.
1 Enable OSPF routing and enter ROUTER-OSPF mode, from 1 to 65535.
router ospf instance number
2 Congure an area as a stub area in ROUTER-OSPF mode.
area area-id stub [no-summary]
• area-id—Enter the OSPF area ID as an IP address (A.B.C.D) or number, from 1 to 65535.
• no-summary—(Optional) Enter to prevent an ABR from sending summary LSA to the stub area.
Congure stub area
OS10(config)# router ospf 10
OS10(conf-router-ospf-10)# area 10.10.5.1 stub
View stub area conguration
OS10(conf-router-ospf-10)# do show ip ospf database
OSPF Router with ID (111.2.1.1) (Process ID 10)
Router (Area 0.0.0.0)
Link ID ADV Router Age Seq# Checksum Link count
111.2.1.1 111.2.1.1 1281 0x8000000d 0x9bf2 3
111.111.111.1 111.111.111.1 1430 0x8000021a 0x515a 1
111.111.111.2 111.111.111.2 1430 0x8000021a 0x5552 1
112.2.1.1 112.2.1.1 1282 0x8000000b 0x0485 3
112.112.112.1 112.112.112.1 1305 0x80000250 0xbab2 1
112.112.112.2 112.112.112.2 1305 0x80000250 0xbeaa 1
294
Layer 3