bgp memory-usage exception-threshold discard new-route

Function

The bgp memory-usage exception-threshold discard new-route command enables BGP to discard routes received from all peers if the memory usage of a device is abnormal.

The undo bgp memory-usage exception-threshold discard new-route command disables BGP from discarding routes received from peers if the memory usage of a device is abnormal.

By default, BGP does not discard routes received from peers if the memory usage of a device is abnormal.

Format

bgp memory-usage exception-threshold discard new-route

undo bgp memory-usage exception-threshold discard new-route

Parameters

None

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

By default, BGP does not discard routes received from peers if the memory usage of a device is abnormal. Instead, BGP continuously accepts routes. As a result, the memory usage of the device keeps increasing or even is exhausted, causing the process or board to reset. To address this problem, run the bgp memory-usage exception-threshold discard new-route command to enable BGP to discard routes received from all peers if the memory usage of the device is abnormal.

Example

# Enable BGP to discard routes received from all peers if the memory usage of a device is abnormal.
<HUAWEI> system-view
[~HUAWEI] bgp memory-usage exception-threshold discard new-route
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >