bgp router-id
Use this command to manually configure a fixed router ID as a BGP router identifier. When this command is used to configure a fixed router ID, the current router identifier is overridden and the peers are reset.
Use the no parameter with this command to remove a manually configured fixed router ID.
Command Syntax
bgp router-id A.B.C.D
no bgp router-id
no bgp router-id A.B.C.D
Parameter
A.B.C.D
Router ID in an IPv4 address format
Default
Once the BGP router-id is elected, it may be re-elected in the following cases:
a. When an explicit BGP router-id is configured/un-configured
b. When the router's (global) router-id is set/unset (holds true when (a) is not applicable),
c. When the BGP process is cleared (holds true when both (a) & (b) are not applicable and the IP address(es) on the active interfaces are updated, which may result in a change in the router's router-id).
If no loopback interface is configured, the highest IP address is the BGP router-id.
When a loopback interface is configured, the BGP router-id is set to the IP address of the loopback interface.
Note: IP Infusion Inc. recommends that you always configure a router identifier to avoid unpredictable behavior if the address of a loopback interface changes.
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#router bgp 100
(config-router)#bgp router-id 10.1.2.7
(config)#router bgp 100
(config-router)#no bgp router-id 10.1.2.7
Last modified date: 10/16/2023