display mac-address mac-move
Use display mac-address mac-move to display the MAC address move records after the device is started.
Syntax
display mac-address mac-move [ slot slot-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
slot slot-number: Specifies an IRF member device by its member ID. If you do not specify this option, the command displays MAC address move records on all member devices.
Usage guidelines
When MAC address moves for a MAC address always occur between the specified two interfaces, Layer 2 loops might occur in the network. To discover and locate loops, you can view the MAC address move records.
In the MAC address move records, records with the same MAC address, VLAN, source port, and current port are considered as to be one record.
An IRF member device can save a maximum of 20 MAC address move records. When the number of MAC address move records exceeds 20, the most recent record will override the oldest record based on the last MAC address move time.
Examples
# Display the MAC address move records on the IRF member device 2.
<Sysname> display mac-address mac-move slot 2 ------------------------MAC address moving information---------------- MAC address VLAN Current port Source port Last time Times 0000-0001-002c 1 XGE1/0/1 XGE1/0/2 2013-05-20 13:40:52 1 0000-0001-002c 1 XGE1/0/2 XGE1/0/1 2013-05-20 13:41:30 1 --- 2 MAC address moving records found ---
Table 17: Command output
Field | Description |
---|---|
MAC address | MAC address. |
VLAN | VLAN that the outgoing interface of the MAC address entry belongs. |
Current port | Interface to which the MAC address was moved. |
Source port | Interface from which the MAC address was moved. |
Last time | Last time when the MAC address was moved. |
Times | Number of MAC address moves after the device is started. For a MAC address record, the number of MAC address moves is increased by 1 when a new MAC address move has the same MAC address, VLAN, Current Port, and Source Port fields as the MAC address record. |
Related commands
mac-address notification mac-move