The router ID should be configured first for the switch when users configure OSPF. The router ID is a string similar to the IP address, and should be unique in the OSPF domain. Users should not change the router ID after completing the configuration.


Command Syntax
set protocols ospf4 vrf <vrf-namerouter-id <router-id>


Parameter

• <vrf-nameOptional. Specifies a VRF name. The value is a string. It’s a user-defined VRF set by the command set ip vrf <vrf-name> [description <string>].

Note that: The configuration is in the default VRF if not explicitly bound to any VRF.

<router-id>A unique 32-bit identifier within this AS.


Example
• This example configure router ID for the switch.

admin@XorPlus# set protocols ospf4 router-id 1.1.1.1
admin@XorPlus# commit