show mac-address-table

To display all static / dynamic unicast or multicast MAC entries created in the MAC address table, use the command show mac-address-table in Privileged EXEC Mode. These entries contain VLAN ID, unicast / multicast MAC address, unicast backbone MAC address of peer backbone edge bridge, member ports, the type of entry (i.e. static, learn, etc.), and total number of entries displayed.

show mac-address-table

show mac-address-table
{ [address }
{ <aa:aa:aa:aa:aa:aa>] }
{ }
{ [aging-time } { [switch } { <context_name>] }
{ [count } { [vlan } { <vlan-range>] } { [switch } { <context_name>] }
{ [dynamic } { multicast } { [vlan } { <vlan-range>] } { [address } { <aa:aa:aa:aa:aa:aa>] } { {Extreme-Ethernet } { <interface-id> } { | gigabitethernet } { <interface-id>} } { | switch } { <context_name>] }
{ [dynamic } { unicast } { [vlan } { <vlan-range>] } { [address } { <aa:aa:aa:aa:aa:aa>] } { {Extreme-Ethernet } { <interface-id> } { | gigabitethernet } { <interface-id>} } { | switch } { <context_name>] }
{ hardware }
{ [static } { multicast } { [vlan } { <vlan-range>] } { [address } { <aa:aa:aa:aa:aa:aa>] } { {Extreme-Ethernet } { <interface-id> } { | gigabitethernet } { <interface-id>} } { | switch } { <context_name>] }
{ [static } { unicast } { [vlan } { <vlan-range>] } { [address } { <aa:aa:aa:aa:aa:aa>] } { {Extreme-Ethernet } { <interface-id> } { | gigabitethernet } { <interface-id>} } { | switch } { <context_name>] }
{ [vlan } { <vlan-range>] } { [{interface } { {Extreme-Ethernet } { <interface-id> } { | gigabitethernet } { <interface-id>} } { | switch } { <context_name>] }

Parameters

Parameter Type Description
address   Enter to display all static / dynamic unicast and multicast MAC entries created in the MAC address table for the specified unicast / multicast MAC address.
<aa:aa:aa:aa:aa:aa>   Enter a MAC address.
aging-time   Enter to display the maximum age of a Mac address table entry.
switch   Enter to specify switch name.
<context_name>   Enter to specify context name.
count   Enter to display the number of MAC addresses present on all VLANs or on a specified VLAN
vlan   Enter to display all static / dynamic unicast and multicast MAC entries created in the MAC address table for the specified VLANs alone.
<vlan-range>   Enter a VLAN range value that denotes the VLAN ID range for which the entries need to be displayed. This value ranges from 1 to 4094. For example, the value is provided as 4000-4010 to display the entries for VLAN IDs from 4000 to 4010.
switch   Enter to specify switch name.
<context_name>   Enter to specify context name.
dynamic   Enter to display all dynamically learnt entries from the MAC address table.
multicast   Enter to display all dynamically learnt multicast entries. These entries contain VLAN ID for which multicast MAC address entry is learnt, multicast MAC address, ports through which the entry is learnt, the status of entry (that is permanent, static and so on), the unicast backbone MAC address of peer backbone edge bridge, and total number of entries displayed.
vlan   Enter to display all dynamically learnt multicast entries from the MAC address table for the specified VLANs alone
<vlan-range>   Enter a value for vlan range that denotes the VLAN ID range for which the entries need to be displayed. This value ranges from 1 to 4094. For example, the value is provided as 4000-4010 to display the entries for VLAN IDs from 4000 to 4010.
address   Enter to display all dynamically learnt multicast entries from the MAC address table for the specified unicast MAC address.
<aa:aa:aa:aa:aa:aa>   Enter a MAC address.
interface   Enter to specify the type of interface.
Extreme-Ethernet   Enter to configure the Extreme-Ethernet type of interface to be displayed. Extreme Ethernet is a version of Ethernet that supports data transfer up to 10 Gigabits per second and only full duplex links
<interface-id>   Enter to configure a specific slot number / port number to be displayed. The format is <0>/<1-28> without spaces between Slot Number/Port Number. For example, 0/1.
Gigabitethernet   Enter to configure gigabitetethernet type of interface to be displayed. Gigabitethernet is a version of LAN standard architecture that supports data transfer up to 1 Gigabit per second.
<interface-id>   Enter to configure a specific slot number / port number to be displayed. The format is <0>/<1-28> without spaces between Slot Number/Port Number. For example, 0/1.
switch   Enter to specify switch name.
<context_name>   Enter to specify context name.
dynamic   Enter to display all dynamically learnt entries from the MAC address table.
unicast   Enter to display all dynamically learnt unicast entries. These entries contain VLAN ID for which unicast MAC address entry is learnt, unicast MAC address, ports through which the entry is learnt, the status of entry (that is permanent, static and so on), the unicast backbone MAC address of peer backbone edge bridge, and total number of entries displayed.
vlan   Enter to display all dynamically learnt unicast entries from the MAC address table for the specified VLANs alone
<vlan-range>   Enter a value for vlan range that denotes the VLAN ID range for which the entries need to be displayed. This value ranges from 1 to 4094. For example, the value is provided as 4000-4010 to display the entries for VLAN IDs from 4000 to 4010.
address   Enter to display all dynamically learnt unicast entries from the MAC address table for the specified unicast MAC address.
<aa:aa:aa:aa:aa:aa>   Enter a MAC address.
interface   Enter to specify the type of interface.
Extreme-Ethernet   Enter to configure the Extreme-Ethernet type of interface to be displayed. Extreme Ethernet is a version of Ethernet that supports data transfer up to 10 Gigabits per second and only full duplex links
<interface-id>   Enter to configure a specific slot number / port number to be displayed. The format is <0>/<1-28> without spaces between Slot Number/Port Number. For example, 0/1.
Gigabitethernet   Enter to configure gigabitetethernet type of interface to be displayed. Gigabitethernet is a version of LAN standard architecture that supports data transfer up to 1 Gigabit per second.
<interface-id>   Enter to configure a specific slot number / port number to be displayed. The format is <0>/<1-28> without spaces between Slot Number/Port Number. For example, 0/1.
switch   Enter to specify switch name.
<context_name>   Enter to specify context name.
static   Enter to display static multicast MAC address entries created in the FDB table.
hardware   Enter to display all MAC addresses programmed in hardware.
multicast   Enter to display all static multicast MAC address entries created in the FDB table. These entries contain VLAN ID for which multicast MAC address entry is learnt, multicast MAC address, ports through which the entry is learnt, the status of entry (that is permanent, static and so on), the unicast backbone MAC address of peer backbone edge bridge, and total number of entries displayed.
vlan   Enter to display all static multicast MAC address entries created in the FDB table for the specified VLANs alone
<vlan-range>   Enter a value for vlan range that denotes the VLAN ID range for which the entries need to be displayed. This value ranges from 1 to 4094. For example, the value is provided as 4000-4010 to display the entries for VLAN IDs from 4000 to 4010.
address   Enter to display all static unicast MAC address entries created in the FDB table for the specified unicast MAC address.
<aa:aa:aa:aa:aa:aa>   Enter a MAC address.
interface   Enter to specify the type of interface.
Extreme-Ethernet   Enter to configure the Extreme-Ethernet type of interface to be displayed. Extreme Ethernet is a version of Ethernet that supports data transfer up to 10 Gigabits per second and only full duplex links
<interface-id>   Enter to configure a specific slot number / port number to be displayed. The format is <0>/<1-28> without spaces between Slot Number/Port Number. For example, 0/1.
Gigabitethernet   Enter to configure gigabitetethernet type of interface to be displayed. Gigabitethernet is a version of LAN standard architecture that supports data transfer up to 1 Gigabit per second.
<interface-id>   Enter to configure a specific slot number / port number to be displayed. The format is <0>/<1-28> without spaces between Slot Number/Port Number. For example, 0/1.
switch   Enter to specify switch name.
<context_name>   Enter to specify context name.
static   Enter to display static unicast MAC address entries created in the FDB table.
unicast   Enter to display all static unicast MAC address entries created in the FDB table. These entries contain VLAN ID for which unicast MAC address entry is learnt, unicast MAC address, ports through which the entry is learnt, the status of entry (that is permanent, static and so on), the unicast backbone MAC address of peer backbone edge bridge, and total number of entries displayed.
vlan   Enter to display all static unicast MAC address entries created in the FDB table for the specified VLANs alone
<vlan-range>   Enter a value for vlan range that denotes the VLAN ID range for which the entries need to be displayed. This value ranges from 1 to 4094. For example, the value is provided as 4000-4010 to display the entries for VLAN IDs from 4000 to 4010.
address   Enter to display all static unicast MAC address entries created in the FDB table for the specified unicast MAC address.
<aa:aa:aa:aa:aa:aa>   Enter a MAC address.
interface   Enter to specify the type of interface.
Extreme-Ethernet   Enter to configure the Extreme-Ethernet type of interface to be displayed. Extreme Ethernet is a version of Ethernet that supports data transfer up to 10 Gigabits per second and only full duplex links
<interface-id>   Enter to configure a specific slot number / port number to be displayed. The format is <0>/<1-28> without spaces between Slot Number/Port Number. For example, 0/1.
Gigabitethernet   Enter to configure gigabitetethernet type of interface to be displayed. Gigabitethernet is a version of LAN standard architecture that supports data transfer up to 1 Gigabit per second.
<interface-id>   Enter to configure a specific slot number / port number to be displayed. The format is <0>/<1-28> without spaces between Slot Number/Port Number. For example, 0/1.
switch   Enter to specify switch name.
<context_name>   Enter to specify context name.

Mode

Privileged EXEC Mode

Prerequisites

This command can be executed in the switch, only if the VLAN switching feature is started and enabled in the switch.

Examples

iS5Comm# show mac-address-table

Vlan    Mac Address         Type     ConnectionId       Ports
----    -----------         ----     -----------        -----
1       54:e1:ad:07:0d:87   Learnt                       Gi0/9

Total Mac Addresses displayed: 1

iS5Comm# show mac-address-table aging-time

Mac Address Aging Time: 300

iS5Comm# show mac-address-table count

Mac Entries for Vlan 1:
--------------------------
Dynamic Unicast Address Count    : 0
Dynamic Multicast Address Count  : 0
Static Unicast Address Count     : 0
Static Multicast Address Count   : 0
----------------------------------------

iS5Comm# show mac-address-table hardware

MAC addresses programmed in hardware
-------------------------------------------------------
Index   |  MAC addr             |  VLAN |  Interface
-------------------------------------------------------
2592    |  54:e1:ad:07:0d:87    |  1    |       0/9
-------------------------------------------------------
6092    |  e8:e8:75:90:0b:01    |  1    |       0/0
-------------------------------------------------------
16384   |  e8:e8:75:90:0b:01    |  1    |       0/0
-------------------------------------------------------

iS5Comm# show mac-address static multicast

Static Multicast Table----------------------
Total Mac Addresses displayed: 0

iS5Comm# show mac-address static unicast

Vlan  Mac Address        RecvPort Status        Connection ID         Ports
----  -----------        -------- ------        ------------         -----
Total Mac Addresses displayed: 0