CLI Guide

Layer 3 Routing Commands 1739
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
Command Mode
Global Configuration mode.
User Guidelines
The command prompt changes when the router ospf command executes.
The VRF identified in the parameter must have been previously created or an
error is returned.
This command is only available on the N3000-ON/N3100 switches.
IPv4 OSPF is the only routing protocol currently implemented for VRFs.