display mac-limit

Function

The display mac-limit command displays MAC address learning limit rules.

Format

display mac-limit

display mac-limit vlan vlan-id1

display mac-limit { interface-name | interface-number interface-type } [ vlan vlan-id2 ]

display mac-limit bridge-domain bd-id

Parameters

Parameter Description Value
vlan vlan-id1

Displays the MAC address learning rule in the specified VLAN.

The value is an integer ranging from 1 to 4094.

interface-name

Specifies the interface name.

-

interface-number

Specifies the interface type.

-

interface-type

Specifies the interface number.

-

vlan-id2

Displays the MAC address learning rule in the specified VLAN.

The value is an integer ranging from 1 to 4094.

bridge-domain bd-id

Specifies the ID of a bridge domain.

The value is an integer ranging from 1 to 16777215.

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
mac read

Usage Guidelines

Usage Scenario

To view the MAC address learning limit rules configured, you can use the display mac-limit command. The command output helps check whether configurations are correct.

Precautions

The global MAC address learning limit rule created by running the mac-limit rule-name command in the system view will not be displayed when the display mac-limit command is run

Example

The actual command output varies according to the device. The command output here is only an example.

# Display the MAC address learning limit rule on GE 0/1/19.
<HUAWEI> display mac-limit gigabitethernet 0/1/19
GigabitEthernet0/1/19 MAC limit:
  Maximum MAC count 1000, used count 0 rate 500(ms)
  Action: discard, Alarm: disable
# Display MAC address learning limit rules.
<HUAWEI> display mac-limit
MAC limit is enabled
Total MAC limit rule count : 1

PORT                        VLAN/BD/VSI      SLOT Maximum Rate(ms) Action  Alarm
----------------------------------------------------------------------------
GigabitEthernet0/1/19.1      -                -    100     -        forward enable
Table 1 Description of the display mac-limit command output
Item Description
MAC Limit is enabled

Indicates that MAC address learning limit is enabled.

Maximum

Indicates the maximum number of MAC addresses that can be learned.

Maximum MAC count 1000, used count 0

Indicates the maximum number of MAC addresses that can be learned and the number of MAC addresses that have been learned.

Total MAC Limit rule count

Indicates the total number of MAC address learning limit rules.

PORT

Indicates the port on which the MAC address learning limit rule is configured.

VLAN/BD/VSI

Indicates the VLAN ID, BD name, VSI name to which the interface belongs.

SLOT

Indicates the slot to which the interface belongs.

Rate(ms)

Indicates the interval at which MAC addresses are learned.

Action

Indicates the action taken on the packets after the maximum number is reached.

  • discard: indicates that the packet with the destination MAC address not contained in the MAC address table is discarded.
  • forward: indicates that the packet with the destination MAC address not contained in the MAC address table is forwarded.
Alarm

Indicates whether an alarm is generated when the number of learned MAC addresses reaches the limit:

  • enable: indicates that an alarm is generated.
  • disable: indicates that no alarm is generated.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >