bgp router-id
Syntax
bgp router-id <ROUTER-ID>
no bgp router-id <ROUTER-ID>
Description
This command configures a fixed router ID for the BGP Peer process running on the router. Any changes in BGP configuration are applied by restarting the current BGP sessions in the VRFs.
The
no
form of this command removes the fixed router ID from the running configuration and restores the default router ID selection as follows.
Command context
config-bgp
Parameters
<ROUTER-ID>
Specifies the router ID as an IP address. Any valid unicast IP address can be used (in the format A.B.C.D).
If router-id is changed, then all the active BGP peer sessions will go DOWN and will be restarted with the new configured router-id. A message is displayed, such as:
All current BGP sessions in VRF default will be restarted.
Authority
Administrators
Usage
BGP determines the router ID using the following priority:
Use the address configured by the
bgp router-id
command.Use the highest IP address among all the loopback interfaces.
Use the highest IP address of any interface.
Examples
switch(config-bgp)# bgp router-id 1.1.1.1 All current BGP sessions in VRF default will be restarted. Do you want to continue (y/n)?
switch(config-bgp)# no bgp router-id 1.1.1.1 All current BGP sessions in VRF default will be restarted. Do you want to continue (y/n)?