OcNOS-SP : Layer 3 Guide : Open Shortest Path First Command Reference : OSPFv2 Commands : ospf router-id
ospf router-id
Use this command to specify a router ID for the OSPF process.
Configure each router with a unique router ID. In an OSPF router process which has active neighbors, a new router ID is used at the next reload or when you start the OSPF manually.
Use the no parameter with this command to force OSPF to use the previous router ID.
Command Syntax
ospf router-id A.B.C.D
router-id A.B.C.D
 
no ospf router-id
no router-id (A.B.C.D|)
Parameters
A.B.C.D
Specify the router ID in IPv4 address format.
Default
No default value is specified
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
The following example shows a specified router ID 2.3.4.5.
#configure terminal
(config)#router ospf 100
(config-router)#ospf router-id 2.3.4.5
Last modified date: 10/16/2023