Administrator Guide

Layer 3 Routing Commands 1765
Syntax
router-id
router-id
router-id
— A 32-bit interface (in IPv4 address format) that uniquely
identifies the router ID.
Default Configuration
There is no default router ID.
Command Mode
Router OSPF Configuration mode.
User Guidelines
The router-id must be set in order for OSPF to become operationally enabled.
It is recommended that the router ID be set to the IP address of a loopback
interface to ensure that the router remains up internally.
Example
The following example defines the router ID as 5.5.5.5.
console(config)#router ospf
console(config-router)#router-id 5.5.5.5
router ospf
Use the router ospf command in Global Configuration mode to enter Router
OSPF mode and globally enable OSPF. Using the no form of the command
disables OSPF and removes the OSPF interface and global configuration.
Syntax
router ospf [vrf
vrf-name
]
no router ospf
vrf-name
—The name of the VRF if which OSPF is to be enabled. If no
VRF is specified, OSPF is enabled for the global routing instance.
Default Configuration
OSPF routing is disabled by default
2CSNXXX_SWUM204.book Page 1765 Monday, January 25, 2016 1:25 PM