router ospf
Syntax
router ospf <INSTANCE-TAG> [vrf <VRF-NAME>]
no router ospf <INSTANCE-TAG> [vrf <VRF-NAME>]
Description
Creates the OSPF process (if not created already) and enters the OSPF router instance context. Only one OSPF process is allowed per VRF.
The
no
form of this command removes the OSPF instance.
Command context
config
Parameters
<INSTANCE-TAG>
Specifies an OSPF Process ID. Range: 1 to 63.
vrf <VRF-NAME>
Specifies a VRF name for the OSPF process. Default: default.
Authority
Administrators or local user group members with execution rights for this command.
Examples
switch(config)# router ospf 1 switch(config-ospf-1)#
switch(config)# router ospf 1 vrf vrf_red
switch(config)# no router ospf 1