< Home

peer mac-limit

Function

The peer mac-limit command limits the number of MAC advertisement routes received from a peer.

The undo peer mac-limit command restores the default configuration.

By default, the number of MAC advertisement routes received from a peer is not limited.

Format

peer { group-name | ipv4-address } mac-limit number [ idle-forever | idle-timeout times ]

undo peer { group-name | ipv4-address } mac-limit

Parameters

Parameter Description Value
group-name Specifies the name of a peer group. The name is a string of 1 to 47 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
ipv4-address Specifies the IPv4 address of a peer. The value is in dotted decimal notation.
number Specifies the maximum number of MAC advertisement routes received from a peer. -
idle-forever Indicates that a terminated connection is not automatically re-established after the number of routes exceeds the maximum limit. -
idle-timeout times Specifies a timer for automatically re-establishing a terminated connection after the number of routes exceeds the maximum limit. No connection will be automatically re-established before the timer expires. The value is an integer that ranges from 1 to 1200, in minutes.

Views

BGP-EVPN address family view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

A BGP-EVPN instance may import many invalid MAC advertisement routes from peers. In this case, To prevent these routes from occupying a large proportion of MAC advertisement routes, run the peer mac-limit command to configure the maximum number of MAC advertisement routes allowed to be received from each peer.

Precautions

  • After this command is run, excessive routes in the BGP-EVPN address family view may be discarded.

  • When the number of MAC advertisement routes exceeds the maximum limit, run the undo peer mac-limit command. The device then receives routes from each peer and adds them to the EVPN routing table.

Example

# Configure the maximum number of MAC advertisement routes received by a device from peer 2.2.2.2 as 1000.

<HUAWEI> system-view
[HUAWEI] bgp 100
[HUAWEI-bgp] l2vpn-family evpn
[HUAWEI-bgp-af-evpn] peer 2.2.2.2 mac-limit 1000
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >