set protocols ospf area area-type
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>
Parameter
Parameter | Description |
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. |
stub | Keyword to specify a stub area. |
nssa | Keyword to specify a not-so-stubby-area. |
Example
- Configure area 1.1.1.1 in the default VRF as a stub area.
admin@XorPlus# set protocols ospf instance-id 1 area 1.1.1.1 area-type stub admin@Xorplus# commit
Copyright © 2024 Pica8 Inc. All Rights Reserved.