display mac-address mac-move

Use display mac-address mac-move to display the MAC address move records after the device is started.

Syntax

In standalone mode:

display mac-address mac-move [ slot slot-number ]

In IRF mode:

display mac-address mac-move [ chassis chassis-number slot slot-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

slot slot-number: Specifies a card by its slot number. If you do not specify a card, the command displays MAC address move records for all cards. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify a card, the command displays MAC address move records for all cards. (In IRF mode.)

Usage guidelines

When a MAC address frequently moves 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 to be one record.

(In standalone mode.) A card can generate a maximum of 200 MAC address move records.

(In IRF mode.) Each card of an IRF member device can generate a maximum of 200 MAC move records.

Examples

# Display the MAC address move records for a slot.

<Sysname> display mac-address mac-move slot 1
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  ---

# Display the MAC address move records for all slots.

<Sysname> display mac-address mac-move
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 20
0000-0001-002c 1    XGE1/0/2       XGE1/0/1       2013-05-20 13:41:32 20
0000-0094-0001 1    XGE1/0/3       XGE1/0/4       2013-05-20 13:42:22 13
0000-0094-0001 1    XGE1/0/4       XGE1/0/3       2013-05-20 13:42:21 12
---  4 MAC address moving records found  ---

Table 3: Command output

Field

Description

VLAN

VLAN to which 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