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.
Parameter | Description | Value |
---|---|---|
peerIpv6Addr |
Specifies the IPv6 address of a peer. |
The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
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:
|
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.<HUAWEI> system-view [~HUAWEI] ip vpn-instance vpn1 [*HUAWEI-vpn-instance-vpn1] ipv6-family [*HUAWEI-vpn-instance-vpn1-af-ipv6] route-distinguisher 100:1 [*HUAWEI-vpn-instance-vpn1-af-ipv6] quit [*HUAWEI-vpn-instance-vpn1] quit [*HUAWEI] bgp 100 [*HUAWEI-bgp] ipv6-family vpn-instance vpn1 [*HUAWEI-bgp-6-vpn1] peer 2001:DB8:1::1 as-number 100 [*HUAWEI-bgp-6-vpn1] peer 2001:DB8:1::1 memory-priority high