set protocols ospf default-information originate

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.


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.


Command Syntax

set protocols ospf [instance-id <instance-id> | vrf <vrf-name>] default-information originate [always]

delete protocols ospf [instance-id <instance-id> | vrf <vrf-name>] default-information originate [always]


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.

alwaysOptional keyword that specifies that the default route is always advertised regardless if its present in the routing table.

Example

  •  Configure the device to always originate an AS-External (type-5) LSA describing a default route into all external-routing capable areas.
admin@XorPlus# set protocols ospf instance-id 1 default-information originate always
admin@Xorplus# commit

Copyright © 2024 Pica8 Inc. All Rights Reserved.