< Home

display mac-limit

Function

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

Format

display mac-limit [ interface-type interface-number ]

Parameters

Parameter Description Value

interface-type interface-number

Specifies the type and number of an interface.

This parameter is case-insensitive.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

After MAC address learning limit rules are successfully configured, you can run the display mac-limit command to view the configuration.

If the device is configured with a large number of MAC address learning limit rules, you are advised to specify parameters in the display mac-limit command; otherwise, excessive output information may cause the following problems:
  • The output information is repeatedly refreshed, and thus required information cannot be obtained.
  • The system fails to respond to other requests because it is busy searching information.
When running the display mac-limit command, note the following points:
  • If no optional parameter is specified, all MAC address learning limit rules are displayed.
  • If interface-type interface-number is specified in the command, the MAC address learning limit rules of the specified interface are displayed.

Example

# Display the MAC address learning rules.

<sysname> display mac-limit
MAC limit is enabled                                                            
Total MAC limit rule count : 1                                                  
                                                                                
PORT                 VLAN/VSI         SLOT Maximum Rate(ms) Action  Alarm       
----------------------------------------------------------------------------    
GigabitEthernet 0/0/1              -                -    1000    65535    discard enable
Table 1 Description of the display mac-limit command output

Item

Description

MAC Limit is enabled

The MAC address learning limit function is enabled.

Total MAC Limit rule count

Total number of MAC address learning rules.

PORT

Interface name.

VLAN/VSI

VLAN ID or the VSI name.

SLOT

Slot ID of the board.

Maximum

Maximum number of MAC addresses that can be learnt.

Rate(ms)

Speed of MAC address learning.

Action

Action taken on the packets after the limit is reached:
  • discard
  • forward

Alarm

Whether the alarm function is enabled for limit crossing:
  • enable
  • disable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >