< Home

shutdown(BGP)

Function

The shutdown command terminates all sessions between a device and its BGP peers.

The undo shutdown command cancels the termination of all sessions between a device and its BGP peers.

By default, the function of terminating all sessions between a device and its BGP peers is disabled.

Format

shutdown

undo shutdown

Parameters

None

Views

BGP view

Default Level

2: Configuration level

Usage Guidelines

Running this command causes all BGP peers unable to establish sessions. Exercise caution when using this command.

Sessions between a device and its BGP peers need to be terminated to minimize the impact of BGP route flapping on the network during upgrade or maintenance. If a large number of BGP peers exist, you can run the shutdown command in the BGP view to terminate all sessions with BGP peers at a time, rather than run the peer ignore command repeatedly to terminate the session with each BGP peer.

Example

# Terminate all sessions between the device and its BGP peers.

<sysname> system-view
[sysname] bgp 100
[sysname-bgp] shutdown
Warning: All BGP peer sessions will be interrupted. Continue? [Y/N]:y
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >