bgp router-id

Syntax

bgp router-id <ROUTER-ID>

no bgp router-id <ROUTER-ID>

Description

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 on the VRFs.

The no form of this command removes the fixed router ID from the running configuration and restores the default router ID selection.

Command context

config-bgp

Parameters

<ROUTER-ID>

Specifies the router ID in IPv4 format (x.x.x.x), where x is a decimal number from 0 to 255.

If router-id is changed, then all the active BGP peer sessions go down and restart with the newly configured router-id.

Authority

Administrators or local user group members with execution rights for this command.

Usage

BGP determines the router ID as follows:

  1. The address configured with the command bgp router-id.

  2. The highest IP address on all the loopback interfaces.

  3. The highest IP address on 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)?