Users Guide
show mac address-table
Displays information about the MAC address table.
Syntax
show mac address-table [address mac-address | aging-time | [count [vlan
vlan-id] | dynamic | interface {ethernet node/slot/port[:subport] | port-
channel number}]| static [address mac-address] | vlan vlan-id
Parameters
● address mac-address — (Optional) Displays MAC address table information.
● aging-time — (Optional) Displays MAC address table aging-time information.
● count — (Optional) Displays the number of dynamic and static MAC address entries.
● dynamic — (Optional) Displays dynamic MAC address table entries only.
● interface — Set the interface type:
○ ethernet node/slot/port[:subport] — Displays MAC address table information for a
physical interface.
○ port-channel channel-number — Displays MAC address table information for a port-
channel interface, from 1 to 128.
● static — (Optional) Displays static MAC address table entries only.
● vlan vlan-id — (Optional) Displays VLAN information only, from 1 to 4093.
Default Not configured
Command Mode EXEC
Usage
Information
The network device maintains static MAC address entries saved in the startup configuration file, and
reboots and deletes dynamic entries.
Example
OS10# show mac address-table
pv <vlan-id> – private vlan where the mac is originally learnt
VlanId Mac Address Type Interface
10 00:00:00:00:00:01 dynamic ethernet1/1/11 pv
100
10 00:00:00:00:00:02 dynamic ethernet1/1/12
10 00:00:00:00:00:05 dynamic port-channel1000 pv
100
10 00:00:00:00:00:06 dynamic port-channel1000
10 00:00:00:00:00:09 dynamic port-channel100 pv
100
10 00:00:00:00:00:10 dynamic port-channel10
10 00:00:00:00:00:14 dynamic port-channel101
Example
(Address)
OS10# show mac address-table address 90:b1:1c:f4:a6:8f
VlanId Mac Address Type Interface
1 90:b1:1c:f4:a6:8f dynamic ethernet1/1/3
Example (Aging
Time)
OS10# show mac address-table aging-time
Global Mac-address-table aging time : 1800
Example (Count)
OS10# show mac address-table count
MAC Entries for all vlans :
Dynamic Address Count : 5
Static Address (User-defined) Count : 0
Total MAC Addresses in Use: 5
Example
(Dynamic)
OS10# show mac address-table dynamic
VlanId Mac Address Type Interface
1 90:b1:1c:f4:a6:8f dynamic ethernet1/1/3
Example
(Ethernet)
OS10# show mac address-table interface ethernet 1/1/3
VlanId Mac Address Type Interface
1 66:38:3a:62:31:3a dynamic ethernet1/1/3
594 Layer 2