display mac-limit
Function
The display mac-limit command displays the rules that limit the number of learned MAC addresses.
Parameters
Parameter |
Description |
Value |
---|---|---|
interface-type interface-number |
Displays the MAC address limiting rule on a specified interface.
|
- |
vlan vlan-id |
Displays the MAC address limiting rules in a specified VLAN. |
The value is an integer that ranges from 1 to 4094. |
Usage Guidelines
Usage Scenario
To check whether MAC address limiting rules are configured correctly, run the display mac-limit command. If a rule is incorrect, run the mac-limit command to modify the rule.
Precautions
If the interface-type and interface-number are not specified, MAC address limiting rules on all interfaces are displayed.
If vlan vlan-id is not specified, MAC address limiting rules in all VLANs are displayed.
Example
# Display all the MAC address limiting rules.
<Huawei> display mac-limit
MAC limit is enabled
Total MAC limit rule count : 1
PORT VLAN/VSI SLOT Maximum Rate(ms) Action Alarm
----------------------------------------------------------------------------
GE0/0/1 - - 1 - discard disable
Item |
Description |
---|---|
Total MAC Limit rule count |
Number of configured MAC address limiting rules. |
PORT |
Name of an interface. |
VLAN/VSI |
ID of a VLAN or a VSI name. |
SLOT |
Slot ID of the board where a MAC address limiting rule is configured. |
Maximum |
Maximum number of MAC addresses that can be learned. To set the maximum number of MAC addresses, run the mac-limit command. |
Rate(ms) |
Indicates the interval at which MAC addresses are learned. |
Action |
Action performed on packets when the number of learned MAC addresses exceeds the maximum number.
|
Alarm |
Whether an alarm is generated when the number of learned MAC addresses exceeds the maximum.
|