/
set protocols ospf router-id

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. 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 protocols ospf route-id to delete this configuration.


Command Syntax

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

delete protocols 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

Related content

Copyright © 2025 Pica8 Inc. All Rights Reserved.