Programmable Internetworking & Communication Operating System Docs ... Click Spaces -> Space Directory to see docs for all releases ...
Page tree

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.

Run the command set protocols ospf area area-type to define an OSPF area type. Two types of areas can be specified here. To create a stub area, choose the key word stub, or choose nssa, to create OSPF not-so-stubby-area. Optional parameter vrf can be used to specify a VRF, if no VRF is specified the command takes effect on the default VRF.

Optional parameter instance-id can be included to specify the OSPFv2 multi-instance ID in the default VRF.


Multiple instances of OSPF are only allowed in the default VRF. A maximum of 8 instance can be configured in the default VRF. In non-default VRFs, only single instance OSPF can be configured.

The command delete protocols ospf area stub can be used to remove this configuration.

Command Syntax

set protocols ospf [instance-id <instance-id> | vrf<vrf-name>] area {<ipv4>|<area-id>} area-type <stub|nssa> 

delete protocols ospf [instance-id <instance-id> | vrf <vrf-name>] area {<ipv4>|<area-id>} area-type <stub|nssa>




instance-id <instance-id>Optional, specifies the OSPF instance ID. The value is an integer that ranges from 1 to 8.

vrf <vrf-name>

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

area {<ipv4>|<area-id>}Specify OSPF area, the value could be in IPv4 dotted decimal format or an integer ranging from 0 to 4294967295.
stubKeyword to specify a stub area.
nssaKeyword to specify a not-so-stubby-area.


  •  Configure area in the default VRF as a stub area.
Code Block
admin@XorPlus# set protocols ospf instance-id 1 area area-type stub
admin@Xorplus# commit