1-2
display mac-address
Syntax
display mac-address
[
mac
-
address
[
vlan
vlan-id
] | [ [
dynamic
|
static
|
blackhole
] [
interface
interface-type interface-number
] [
vlan
vlan-id
] [
count
] ] [
unit unit-id
]
View
Any view
Parameters
mac
-
address
: Displays MAC address entries in a specified MAC address, in the format of H-H-H.
static
: Displays static MAC address entries. Similar to blackhole MAC address entries, these entries do
not age but you can add or remove them.
dynamic
: Displays dynamic MAC address entries. Aging time is set for these entries.
blackhole
: Displays blackhole MAC address entries. These entries do not age but you can add or
remove them. Packets whose destination MAC addresses or source MAC addresses match destination
blackhole MAC address entries are dropped.
interface
-
type interface-number
: Displays MAC address learning status of the specified interface.
interface
-
type interface
-
number
specifies an interface by its type and number.
vlan-id
: Displays MAC address entries of the specified VLAN, where
vlan-id
is in the range 1 to 4094.
count
: Displays the number of MAC address entries specified by related parameters in the command.
When this keyword is used, the command displays only the number of specified MAC address entries,
rather than related information about these MAC address entries.
statistics
: Displays statistics of the MAC address entries maintained by the switch.
unit unit-id
: Displays information about the MAC address forwarding table of the specified unit in the
fabric.
Description
Use the
display mac-address
command to display information about MAC address entries in the MAC
address table, including: MAC address, VLAN and port corresponding to the MAC address, the type
(static or dynamic) of a MAC address entry, whether a MAC address is within the aging time and so on.
If you specify a unit ID with
unit
unit-id
, the information about the MAC address entries on the specified
device in the fabric will be displayed.
Examples
# Display information about MAC address 000f-e20f-0101.
<Sysname> display mac-address 000f-e20f-0101
Unit 1
MAC ADDR VLAN ID STATE PORT INDEX AGING TIME(s)
000f-e20f-0101 1 Learned GigabitEthernet1/0/1 AGING
# Display the MAC address entries for the port GigabitEthernet 1/0/4.
<Sysname> display mac-address interface GigabitEthernet 1/0/4
Unit 1
MAC ADDR VLAN ID STATE PORT INDEX AGING TIME(s)
Summary of Contents for 5500-EI PWR
Page 43: ...2 6...
Page 76: ...1 17...
Page 228: ...ii stp transmit limit 1 44 vlan mapping modulo 1 45 vlan vpn tunnel 1 46...
Page 477: ...5 24 Sysname vlan 2 Sysname vlan2 service type multicast...
Page 503: ...2 3 System View return to User View with Ctrl Z Sysname dot1x url http 192 168 19 23...
Page 519: ...iii...
Page 597: ...2 2 security policy server 192 168 0 1 user name format without domain...
Page 648: ...1 9 Examples Clear static ARP entries Sysname reset arp static...
Page 663: ...4 3 Sysname resilient arp interface vlan interface 2...
Page 767: ...1 28 From 12 00 Jan 1 2008 to 12 00 Jun 1 2008...
Page 1111: ...ii xmodem get 3 18...
Page 1314: ...A 44 Z...