peer memory-priority (BGP multi-instance view)

Function

The peer memory-priority command sets a priority that determines the disconnection order of a BGP peer relationship if memory overload occurs.

The undo peer memory-priority command restores the default configuration.

By default, a BGP peer relationship is disconnected based on the medium priority if memory overload occurs.

Format

peer peerIpv4Addr memory-priority priority

undo peer peerIpv4Addr memory-priority priority

undo peer peerIpv4Addr memory-priority

Parameters

Parameter Description Value
peerIpv4Addr

Specifies the IPv4 address of a peer.

It is in dotted decimal notation.

priority

Specifies a priority that determines the disconnection order of a BGP peer relationship if memory overload occurs. A lower priority indicates that the BGP peer relationships in the associated peer group are disconnected first.

The value is an enumerated type, which can be:

  • low
  • medium
  • high

Views

BGP multi-instance view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

If BGP consumes excessive memory resources and memory resources are exhausted, a board reset occurs. To prevent this issue, run the peer memory-priority command to set a priority that determines the disconnection order of a BGP peer relationship upon memory overload. Memory overload in this case means that the system memory usage exceeds the alarm threshold and BGP's memory usage is excessively high. If this occurs, the BGP peer relationships are disconnected in the order of priorities set for these peers to release memory. A lower priority indicates that the associated peer relationship will be disconnected first. It is recommended that the priority be set to high for an important BGP peer relationship to prevent the peer relationship from being disconnected immediately upon memory overload.

Precautions

If the peer memory-priority command has been run on the local device, the priority set for the peer still takes effect after the peer is added to a peer group regardless of the priority set for this group.

If the peer memory-priority command is not run on the local device, a peer uses the priority set for each member in a peer group after the peer is added to the peer group. The group-based priority setting is still effective for the peer after it is removed from the group.

Example

# Set the priority that determines the disconnection order of a BGP peer relationship if memory overload occurs in high.
<HUAWEI> system-view
[~HUAWEI] bgp 100 instance a
[*HUAWEI-bgp-instance-a] peer 10.1.1.1 as-number 100
[*HUAWEI-bgp-instance-a] peer 10.1.1.1 memory-priority high
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >