The router-id command configures a Router ID for the switch.
The undo router-id command deletes the Router ID configured for the switch.
By default, no BGP Router ID is configured, and the global Router ID configured through the router id command is used.
router-id { ipv4-address | vpn-instance auto-select }
undo router-id [ vpn-instance auto-select ]
Parameter | Description | Value |
---|---|---|
ipv4-address |
Specifies a Router ID. |
It is in dotted decimal notation. |
vpn-instance auto-select |
Configures automatic Router ID selection for all BGP-VPN instance IPv4 or IPv6 address families. If a Router ID is manually specified for a BGP-VPN instance IPv4 or IPv6 address family, the manually specified Router ID takes precedence over the automatically selected Router ID. |
- |
Usage Scenario
The router-id command is used to configure a Router ID for the switch. Each Router ID uniquely identifies one BGP switch in an AS.
By configuring automatic Router ID selection for a BGP-VPN instance IPv4 address family, you can differentiate the configured Router ID of the BGP-VPN instance IPv4 address family from the BGP Router ID. For more information about the Router ID of a BGP-VPN instance IPv4 address family, see the router-id (BGP-VPN Instance IPv4 Address Family View) command.
Prerequisites
The bgp command is run to enable BGP.
Precautions
Changing or deleting a configured Router ID in the BGP view resets a BGP session. If a BGP session has been established in a BGP-VPN instance IPv4 address family, deleting the configured Router ID resets the BGP session. Exercise caution when changing or deleting a Router ID.
By default, the switch that is not configured with any interface uses the Router ID of 0.0.0.0 assigned by routing management.