< Home

shutdown (BGP)

Function

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

The undo shutdown command restores the default setting.

By default, the function of closing 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 the shutdown command closes all sessions between a device and its peers. Exercise caution when using this command.

During system upgrade or maintenance, the sessions between a device and its BGP peers need to be closed to minimize the impact of BGP route flapping on the network. If a large number of BGP peers exist, the shutdown command can be run in the BGP view to close all sessions with BGP peers. This frees you from running the peer ignore command repeatedly to close the sessions one by one.

Example

# Close all sessions between a device and its BGP peers.

<HUAWEI> system-view
[HUAWEI] bgp 100
[HUAWEI-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 >