/
set protocols bgp neighbor shutdown

set protocols bgp neighbor shutdown


The set protocols bgp neighbor shutdown command disables the peer session, terminates any active session for the specified neighbor or peer group, and removes all associated routing information. This action can cause the sudden termination of many peering sessions.


The delete protocols  bgp neighbor shutdown command enables the peer session for the specified neighbor.


Command Syntax

set protocols bgp [vrf <vrf-name>{neighbor <ip>| peer-group <peer-group> | interface <interface>} shutdown

delete protocols bgp [vrf <vrf-name>{neighbor <ip>| peer-group <peer-group> | interface <interface>} shutdown


Parameter

Parameter

Description

vrf <vrf-name>

Optional. Specifies a VRF name. The value is a string. It’s a user-defined VRF set by the command set ip vrf <vrf-name> [description <string>].

neighbor <ip>Specifies the IP address of a peer.
peer-group <peer-group>Specifies a peer group.
interface <interface>Specifies an interface for BGP connection.


Usage Guidelines
Sessions are gracefully shut down when graceful-shutdown is enabled. Use the set protocols bgp graceful-shutdown command to enable graceful-shutdown. If graceful-shutdown is configured without delay or localpreference, the default values are used.


Example
• This example disables the peer session for the specified neighbor.

admin@XorPlus# set protocols bgp neighbor 2.2.2.2 shutdown
admin@XorPlus# commit


Copyright © 2025 Pica8 Inc. All Rights Reserved.