BGP Configuration Guide for Cisco 8000 Series Routers, Cisco IOS XR Releases

PDF

Disable a BGP neighbor

Want to summarize with AI?

Log in

Overview

Administratively shuts down a BGP neighbor session without removing its configuration for temporary maintenance or troubleshooting.

Administratively shut down a BGP neighbor session without removing its configuration.

Context: Use this procedure to temporarily disable a peer, for maintenance or troubleshooting.

Before you begin

None

Procedure

1.

Run the configure command to enter global configuration mode.

Example:

Router#configure
2.

Enter BGP configuration mode with your AS number and specify the neighbor.

Example:

Router(config)# router bgp 100
Router(config-bgp)# neighbor 172.16.40.24
3.

Run the shutdown command to shut down the neighbor and save the configuration.

Example:

Router(config-bgp-nbr)# shutdown
Router(config-bgp-nbr)# commit

Disables all active sessions for the specified neighbor, leaving the session disabled and still in the configuration.