< Home

display mac-address dynamic

Function

The display mac-address dynamic command displays dynamic MAC address entries.

Format

display mac-address dynamic [ [ slot ] slot-id ] [ vlan vlan-id | interface-type interface-number ] * [ verbose ]

display mac-address dynamic [ [ slot ] slot-id ] [ vsi vsi-name [ peer ip-address ] ] [ verbose ]

Parameters

Parameter

Description

Value

slot slot-id

Displays dynamic MAC address entries on a specified card.

The value is an integer and must be the slot ID of a running card.

vlan vlan-id

Displays dynamic MAC address entries in a specified VLAN.

The value is an integer that ranges from 1 to 4094.

vsi vsi-name

Displays dynamic MAC address entries of a specified virtual switch instance (VSI). vsi-name specifies the name of a VSI.

NOTE:

Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731S-H, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730S-H, and S6730-H support this parameter.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

peer ip-address

Displays the dynamic MAC address entry mapped to a specified peer IPv4 address.

NOTE:

Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731S-H, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730S-H, and S6730-H support this parameter.

-

interface-type interface-number

Displays dynamic MAC address entries with a specified outbound interface.
  • interface-type specifies the type of the outbound interface.
  • interface-number specifies the number of the outbound interface.

-

verbose

Displays detailed information about dynamic MAC address entries.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

The MAC address table needs to be updated constantly because the network topology always changes. You can use this command to view learned MAC addresses in real time.

Follow-up Procedure

If the displayed dynamic MAC address entries are invalid, run the undo mac-address command to delete dynamic MAC address entries.

Precautions

If you run the display mac-address dynamic command without parameters, all dynamic MAC address entries are displayed.

If the MAC address table does not contain any dynamic MAC address entry, no information is displayed.

When the switch has a large number of dynamic MAC address entries, it is recommended that you specify parameters in the command to filter the output information. Otherwise, the following problems may occur due to excessive output information:
  • The displayed information is repeatedly refreshed, so you cannot find the required information.
  • The system traverses and retrieves information for a long time, and does not respond to any request.

Example

# Display all dynamic MAC address entries.

<HUAWEI> display mac-address dynamic
------------------------------------------------------------------------------- 
MAC Address          VLAN/VSI/BD                 Learned-From        Type       
-------------------------------------------------------------------------------
0022-0022-0033       100/-/-                     GE0/0/1           dynamic 
0000-0000-0001       200/-/-                     GE0/0/2           dynamic 

-------------------------------------------------------------------------------
Total items displayed = 2 

# Display all dynamic MAC address entries in VLAN 9.

<HUAWEI> display mac-address dynamic  vlan 9
------------------------------------------------------------------------------- 
MAC Address      VLAN/VSI/BD                       Learned-From        Type       
-------------------------------------------------------------------------------
0000-0007-0122   9/-/-                             GE0/0/1             dynamic    
0000-0007-0106   9/-/-                             GE0/0/1             dynamic    
0000-0007-0114   9/-/-                             GE0/0/1             dynamic    
                                                                                
------------------------------------------------------------------------------- 
Total items displayed = 3                                          

# Display detailed information about all dynamic MAC address entries in VLAN 9.

<HUAWEI> display mac-address dynamic vlan 9 verbose
------------------------------------------------------------------------------- 
MAC Address : 0000-0007-0117             VLAN: 9                                
Learned-From: GE0/0/1                    Type: dynamic                          
                                                                                
MAC Address : 0000-0007-0133             VLAN: 9                                
Learned-From: GE0/0/1                    Type: dynamic                          
                                                                                
MAC Address : 0000-0007-0121             VLAN: 9                                
Learned-From: GE0/0/1                    Type: dynamic                          
                                                                                       
------------------------------------------------------------------------------- 
Total items  displayed = 3                                          
Table 1 Description of the display mac-address dynamic command output

Item

Description

MAC Address

Destination MAC address in a dynamic MAC address entry.

VLAN/VSI/BD

ID of the VLAN, or name of the VSI, or ID of the BD that a MAC address belongs to.

Learned-From

Interface that learns a MAC address.

Type

Type of a MAC address entry.

dynamic: indicates a MAC address entry learned by the switch, which will be aged out when the aging time expires.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >