The router-id command configures a Router ID for the Router. Each Router ID uniquely identifies one Device in an AS.
The undo router-id command deletes the Router ID configured for the Device.
By default, no BGP Router ID is configured, and the Router ID configured for the route management module through the router id command is used.
Usage Scenario
The router-id command is used to configure a Router ID for the Device. Each Router ID uniquely identifies one BGP Device in an AS.
By configuring automatic Router ID selection for BGP-VPN instance, you can differentiate the configured Router ID of BGP-VPN instance from the BGP Router ID. For more information about the Router ID of a BGP-VPN instance , see the router-id (BGP-VPN Instance IPv4 Address Family View) command.Configuration Impact
If a BGP session has been established in a BGP VPN instance IPv4/IPv6 address family, changing or deleting the configured router ID resets the BGP session. So, confirm the action before you use the router-id command.
If router-id is configured in both the BGP VPN instance IPv4 address family view and BGP VPN instance view, it will be displayed in both views. Deleting the configuration from one view will also delete the configuration from the other view.Precautions
By default, the device that is not configured with any interface IP address uses the router ID of 0.0.0.0 selected by the routing management (RM) module.
If the router-id command is not configured in the BGP multi-instance view, the router ID of the RM module is used by default. When the IP address of the interface selected as the router ID is deleted or modified, the reselecting process is triggered. In addition, the reset command is required for the modification to take effect. When a BGP instance uses the router ID of the RM module by default and all public IP addresses are deleted, running the reset command changes the BGP router ID to 0.0.0.0. As a result, the BGP peer relationship cannot be established.