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. You can optionally specify a VRF name or the default VRF if <vrf-name> is not specified. Only one OSPF process is allowed per VRF.

The no form of this command removes the OSPF instance. Optionally applies to the VRF named or the default VRF if <vrf-name> is not specified.

Command context

config

Parameters

<INSTANCE-TAG>

Specifies an OSPF Process ID. Range: 1-63.

vrf <VRF-NAME>

Optional. Specifies the VRF name for the OSPF process. If no VRF is specified, the default VRF is implied.

Authority

Administrators

Examples

switch# configure terminal
switch(config)# router ospf 1
switch(config-ospf-1)#
switch(config)# router ospf 1 vrf vrf_red
switch# configure terminal
switch(config)# no router ospf 1