Command Reference OSPFv2 Commands
Use this command to set the router ID. Use the no form of this command to restore the default
setting.
Router ID in IP address form
The OSPF routing process will select the maximal interface IP address as the router ID by default.
If the loopback interface of an IP address is not configured, the OSPF routing process will select the
maximum IP address among all its physical interfaces as the router ID.
Routing process configuration mode
You can configure any IP address as the router ID. However, the router ID should be unique. Note
that once the router ID changes, the OSPF protocol will do a lot of processing. Therefore, it is not
recommended to change the router ID. The device can be changed only when no LSA is generated.
The following example modifies the router ID to 0.0.0.36.
Ruijie(config)# router ospf 20
Ruijie(config-router)# router-id0.0.0.36
Displays the routing protocol information.
Use this command to display the OSPF information.
show ip ospf [ process-id ]