router-id
Use this command to set the router-id to the supplied IP address; the router uses this address to generate the LDP-ID.
OcNOS has three methods to choose the router-id of LDP. The first priority router-id is the configured router-id in router mode (local configured router-id). The second priority router-id is the configured router-id in configure mode (global configured router-id). The lowest priority router-id is chosen by OcNOS among interfaces (global computed router-id).
Use the no parameter with this command to revert to using the first IP address configured on the box as the router-id for LDP-ID generation purposes.
Command Syntax
router-id A.B.C.D
no router-id A.B.C.D
no router-id
Parameter
A.B.C.D
Indicates the LDP router ID value.
Default
By default, router id is disabled
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#configure router
(config)#router ldp
(config-router)#router-id 123.123.123.8
Last modified date: 10/17/2023