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. |
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
The actual command output varies according to the device. The command output here is only an example.
<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
<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
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.
|
Alarm | Indicates whether an alarm is generated when the number of learned MAC addresses reaches the limit:
|