Programmable Internetworking & Communication Operating System Docs ... Click Spaces -> Space Directory to see docs for all releases ...
Page tree
Skip to end of metadata
Go to start of metadata

Run the command set protocols ospf network area to configure OSPF instance for the IP subnet prefix with an area address per network. The optional parameter vrf can be used to specify OSFP instance for a particular VRF. If VRF is not defined then OSPF instance takes effect for the default VRF.

Run the command delete protocols ospf network area to delete this configuration.

Command Syntax

set protocols ospf [vrf <vrf-name>] network <ipv4/prefixlen> area {<ipv4|<area-id>}

delete protocols ospf [vrf <vrf-name>] network <ipv4/prefixlen> area {<ipv4>|<area-id>}




vrf <vrf-name>

Optional. Specifies the name of the VRF for the OSPF instance.

network <ipv4/prefixlen>Specifies the network prefix and prefix length in IPv4 format.
area {<ipv4>|<area-id>}Specify OSPF area, the value could be in IPv4 dotted decimal format or an integer ranging from 0 to 4294967295.

Usage Guidelines

The OSPF commands set protocols ospf interface area and set protocols ospf network area cannot be configured simultaneously. The user can enable OSPF for either an interface or netowrk, but not both. If one of the two commands has been configured on the device and the user tries to commit the different method of enabling OSPF will result in commit failed error message.

The user must delete the configuration method previously committed before trying to commit the different method and keep the following points in mind:

  • If set protocols ospf network area has been configured on the device first, you have to delete it before configuring command set protocols ospf interface area.
  • If set protocols ospf interface area has been configured on the device first, and if the configuration is in a specified VRF, you have to delete all OSPF configurations under the specified VRF before configuring the command set protocols ospf vrf network area. Or if these configurations are in the default VRF, you have to delete all OSPF configurations of all VRFs on the device by using command delete protocols ospf before configuring set protocols ospf network area.


  •  Enable OSPF for network in VRF BLUE and specify area
admin@XorPlus# set protocols ospf vrf BLUE network area
admin@Xorplus# commit
  • No labels