set protocols ospf router-id

Run the command set protocols ospf router-id to configure OSPF router ID. The router ID should be unique within the OSPF domain and is in the IPv4 dotted decimal format. Optional parameter instance-id can be included to specify the OSPFv2 multi-instance ID. The optional parameter vrf can be used to specify OSFPv2 instance for a particular VRF. If VRF is not defined then OSPFv2 instance takes effect for 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.


Run the command delete protocols ospf route-id to delete this configuration.


Command Syntax

set protocols ospf [instance-id <instance-id> | vrf <vrf-name>] router-id <ipv4>

delete protocols ospf [instance-id <instance-id>| vrf <vrf-name>] router-id <ipv4>


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.

router-id <ipv4>Specify OSPF router ID. The value is in IPv4 dotted decimal format.

Example

  •  Configure OSPF router ID for OSPF instance ID 1.
admin@XorPlus# set protocols ospf instance-id 1 router-id 1.1.1.1
admin@Xorplus# commit

Copyright © 2024 Pica8 Inc. All Rights Reserved.