Run the command set protocol ospf default-information originate to originate an AS-External (type-5) LSA describing a default route into all external-routing capable areas. Optional parameter instance-id can be included to specify the OSPFv2 multi-instance ID. Optional keyword vrf specifies the name of the VRF for the OSPF instance. If the optional keyword always is given then the default route is always advertised, even when there is no default route present in the routing table.
Info |
---|
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. |
Run the command delete protocol ospf default-information originate to remove this configuration.
...
set protocols ospf [instance-id <instance-id>] [vrf <text>id> | vrf <vrf-name>] default-information originate [always]
delete protocols ospf [instance-id <instance-id> ] [vrf <text> | vrf <vrf-name>] default-information originate [always]
...
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 <vrf-name>name> | Optional. Specifies the name of the VRF for the OSPF instance. |
always | Optional keyword that specifies that the default route is always advertised regardless if its present in the routing table. |
...
Code Block |
---|
admin@XorPlus# set protocols ospf instance-id 1 vrf BLUE default-information originate always
admin@Xorplus# commit |
...