Run the command set protocol 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. 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.
Run the command delete protocol ospf route-id to delete this configuration.
Command Syntax
set protocol ospf [vrf <vrf-name>] router-id <ipv4>
delete protocol ospf [vrf <vrf-name>] router-id <ipv4>
Parameter
Parameter | Description |
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.
admin@XorPlus# set protocols ospf vrf BLUE router-id 1.1.1.1 admin@Xorplus# commit