Usage Guidelines
Cisco 2600, 3600,
and 3700 Series Routers
The
show
mac-address-table command displays the MAC address table for the
switch. Specific views can be defined by using the optional keywords and
arguments. If more than one optional keyword is used, then all the conditions
must be true for that entry to be displayed.
Catalyst 4500
Series Switches
For the MAC
address table entries that are used by the routed ports, the routed port name,
rather than the internal VLAN number, is displayed in the �vlan� column.
Catalyst 6000
and 6500 Series Switches and Cisco 7600 Series Routers
If you do not
specify a module number, the output of the
show mac-address-table command displays information
about the supervisor engine. To display information about the MAC address table
of the DFCs, you must enter the module number or the
all keyword.
The
mac-addrvalue
is a 48-bit MAC address. The valid format is H.H.H.
The
interface number
argument designates the module and port number. Valid values depend on the
specified interface type and the chassis and module that are used. For example,
if you specify a Gigabit Ethernet interface and have a 48-port 10/100BASE-T
Ethernet module that is installed in a 13-slot chassis, valid values for the
module number are from 1 to 13 and valid values for the port number are from 1
to 48.
The optional
module number keyword-argument pair is supported only on
DFC modules. The
module numberkeyword-argument pair designate the module
number.
Valid values for
the
mac-group-address argument are from 1 to 9.
The optional
count keyword
displays the number of multicast entries.
The optional
multicast
keyword displays the multicast MAC addresses (groups) in a VLAN or displays all
statically installed or IGMP snooping-learned entries in the Layer 2 table.
The information
that is displayed in the show mac-address-table unicast-flood command output is
as follows:
Note |
The information
displayed on the destination MAC addresses is deleted as soon as the floods
stop after the port shuts down.
|
The dynamic
entries that are displayed in the Learn field are always set to Yes.
The
show mac-address-table limit command output displays the following
information:
The show
mac-address-table synchronize statistics command output displays the following
information:
-
Number of
messages processed at each time interval.
-
Number of
active entries sent for synchronization.
-
Number of
entries updated, created, ignored, or failed.
Examples
The following
example shows how to display the MAC address table entries that have a specific
protocol type (in this case,
"assigned"):
Switch# show mac-address-table protocol assigned
vlan mac address type protocol qos ports
-----+---------------+--------+---------+---+--------------------------------
200 0050.3e8d.6400 static assigned -- Switch
100 0050.3e8d.6400 static assigned -- Switch
5 0050.3e8d.6400 static assigned -- Switch
4092 0000.0000.0000 dynamic assigned -- Switch
1 0050.3e8d.6400 static assigned -- Switch
4 0050.3e8d.6400 static assigned -- Switch
4092 0050.f0ac.3058 static assigned -- Switch
4092 0050.f0ac.3059 dynamic assigned -- Switch
1 0010.7b3b.0978 dynamic assigned -- Fa5/9
The following
example shows the
"other" output
for the previous example:
Switch# show mac-address-table protocol other
Unicast Entries
vlan mac address type protocols port
-------+---------------+--------+---------------------+--------------------
1 0000.0000.0201 dynamic other FastEthernet6/15
1 0000.0000.0202 dynamic other FastEthernet6/15
1 0000.0000.0203 dynamic other FastEthernet6/15
1 0000.0000.0204 dynamic other FastEthernet6/15
1 0030.94fc.0dff static ip,ipx,assigned,other Switch
2 0000.0000.0101 dynamic other FastEthernet6/16
2 0000.0000.0102 dynamic other FastEthernet6/16
2 0000.0000.0103 dynamic other FastEthernet6/16
2 0000.0000.0104 dynamic other FastEthernet6/16
Fa6/1 0030.94fc.0dff static ip,ipx,assigned,other Switch
Fa6/2 0030.94fc.0dff static ip,ipx,assigned,other Switch
Multicast Entries
vlan mac address type ports
-------+---------------+-------+-------------------------------------------
1 ffff.ffff.ffff system Switch,Fa6/15
2 ffff.ffff.ffff system Fa6/16
1002 ffff.ffff.ffff system
1003 ffff.ffff.ffff system
1004 ffff.ffff.ffff system
1005 ffff.ffff.ffff system
Fa6/1 ffff.ffff.ffff system Switch,Fa6/1
Fa6/2 ffff.ffff.ffff system Switch,Fa6/2
Examples
The following is
sample output from theshow mac-address-tablecommand:
Switch# show mac-address-table
Dynamic Addresses Count: 9
Secure Addresses (User-defined) Count: 0
Static Addresses (User-defined) Count: 0
System Self Addresses Count: 41
Total MAC addresses: 50
Non-static Address Table:
Destination Address Address Type VLAN Destination Port
------------------- ------------ ---- --------------------
0010.0de0.e289 Dynamic 1 FastEthernet0/1
0010.7b00.1540 Dynamic 2 FastEthernet0/5
0010.7b00.1545 Dynamic 2 FastEthernet0/5
0060.5cf4.0076 Dynamic 1 FastEthernet0/1
0060.5cf4.0077 Dynamic 1 FastEthernet0/1
0060.5cf4.1315 Dynamic 1 FastEthernet0/1
0060.70cb.f301 Dynamic 1 FastEthernet0/1
00e0.1e42.9978 Dynamic 1 FastEthernet0/1
00e0.1e9f.3900 Dynamic 1 FastEthernet0/1
Note |
In a distributed
Encoded Address Recognition Logic (EARL) switch, the asterisk (*) indicates a
MAC address that is learned on a port that is associated with this EARL.
|
The following
example shows how to display the information about the MAC address table for a
specific MAC address with a Supervisor Engine 720:
Switch# show mac-address-table address 001.6441.60ca
Codes: * - primary entry
vlan mac address type learn qos ports
------+----------------+--------+-----+---+--------------------------
Supervisor:
* --- 0001.6441.60ca static No -- Router
The following
example shows how to display MAC address table information for a specific MAC
address with a Supervisor Engine 720:
Router# show mac-address-table address 0100.5e00.0128
Legend: * - primary entry
age - seconds since last seen
n/a - not available
vlan mac address type learn age ports
------+----------------+--------+-----+----------+--------------------------
Supervisor:
* 44 0100.5e00.0128 static Yes - Fa6/44,Router
* 1 0100.5e00.0128 static Yes - Router
Module 9:
* 44 0100.5e00.0128 static Yes - Fa6/44,Router
* 1 0100.5e00.0128 static Yes - Router
The following
example shows how to display the currently configured aging time for all VLANs:
Switch# show mac-address-table aging-time
Vlan Aging Time
---- ----------
*100 300
200 1000
The following
example shows how to display the entry count for a specific slot:
Switch# show mac-address-table count module 1
MAC Entries on slot 1 :
Dynamic Address Count: 4
Static Address (User-defined) Count: 25
Total MAC Addresses In Use: 29
Total MAC Addresses Available: 131072
The following
example shows how to display the information about the MAC address table for a
specific interface with a Supervisor Engine 720:
Switch# show mac-address-table interface fastethernet 6/45
Legend: * - primary entry
age - seconds since last seen
n/a - not available
vlan mac address type learn age ports
------+----------------+--------+-----+----------+--------------------------
* 45 00e0.f74c.842d dynamic Yes 5 Fa6/45
Note |
A leading
asterisk (*) indicates entries from a MAC address that was learned from a
packet coming from an outside device to a specific module.
|
The following
example shows how to display the limit information for a specific slot:
Switch# show mac-address-table limit vlan 1 module 1
vlan switch module action maximum Total entries flooding -------+--------+---------+-----------+--------+--------------+------------
1 1 7 warning 500 0 enabled
1 1 11 warning 500 0 enabled
1 1 12 warning 500 0 enabled
Router#show mac-address-table limit vlan 1 module 2
vlan switch module action maximum Total entries flooding -------+--------+---------+-----------+--------+--------------+------------
1 2 7 warning 500 0 enabled
1 2 9 warning 500 0 enabled
The following
example shows how to display the MAC-move notification status:
Switch# show mac-address-table notification mac-move
MAC Move Notification: Enabled
The following
example shows how to display the MAC move statistics:
Router# show mac-address-table notification mac-move counter
-----------------------------------------------------------------------------------
Vlan Mac Address From Mod/Port To Mod/Port Count
---- ----------------- ----------------------- ----------------------- ------------
1 00-01-02-03-04-01 2/3 3/1 10
20 00-01-05-03-02-01 5/3 5/1 20
The following
example shows how to display the CAM-table utilization-notification status:
Router# show mac-address-table notification threshold
Status limit Interval
-------------+-----------+-------------
enabled 1 120
The following
example shows how to display the MAC notification parameters and history table:
Switch# show mac-address-table notification change
MAC Notification Feature is Disabled on the switch
MAC Notification Flags For All Ethernet Interfaces :
----------------------------------------------------
Interface MAC Added Trap MAC Removed Trap
-------------------- -------------- ----------------
The following
example shows how to display the MAC notification parameters and history table
for a specific interface:
Switch# show mac-address-table notification change interface gigabitethernet5/2
MAC Notification Feature is Disabled on the switch
Interface MAC Added Trap MAC Removed Trap
-------------------- -------------- ----------------
GigabitEthernet5/2 Disabled Disabled
The following
example shows how to display unicast-flood information:
Switch# show mac-address-table unicast-flood
> > Unicast Flood Protection status: enabled
> >
> > Configuration:
> > vlan Kfps action timeout
> > ------+----------+-----------------+----------
> > 2 2 alert none
> >
> > Mac filters:
> > No. vlan source mac addr. installed
> > on time left (mm:ss)
> >
> >-----+------+-----------------+------------------------------+------------------
> >
> > Flood details:
> > Vlan source mac addr. destination mac addr.
> >
> >------+----------------+-------------------------------------------------
> > 2 0000.0000.cafe 0000.0000.bad0, 0000.0000.babe,
> > 0000.0000.bac0
> > 0000.0000.bac2, 0000.0000.bac4,
> > 0000.0000.bac6
> > 0000.0000.bac8
> > 2 0000.0000.caff 0000.0000.bad1, 0000.0000.babf,
> > 0000.0000.bac1
> > 0000.0000.bac3, 0000.0000.bac5,
> > 0000.0000.bac7
> > 0000.0000.bac9
The following
example shows how to display the information about the MAC-address table for a
specific VLAN:
Switch#show mac-address-table vlan 100
vlan mac address type protocol qos ports
-----+---------------+--------+---------+---+--------------------------------
100 0050.3e8d.6400 static assigned -- Router
100 0050.7312.0cff dynamic ip -- Fa5/9
100 0080.1c93.8040 dynamic ip -- Fa5/9
100 0050.3e8d.6400 static ipx -- Router
100 0050.3e8d.6400 static other -- Router
100 0100.0cdd.dddd static other -- Fa5/9,Router,Switch
100 00d0.5870.a4ff dynamic ip -- Fa5/9
100 00e0.4fac.b400 dynamic ip -- Fa5/9
100 0100.5e00.0001 static ip -- Fa5/9,Switch
100 0050.3e8d.6400 static ip -- Router
The following
example shows how to display the information about the MAC address table for
MLDv2 snooping:
Switch# show mac-address-table multicast mld-snooping
vlan mac address type learn qos ports
-----+---------------+--------+-----+---+--------------------------------
--- 3333.0000.0001 static Yes - Switch,Stby-Switch
--- 3333.0000.000d static Yes - Fa2/1,Fa4/1,Router,Switch
--- 3333.0000.0016 static Yes - Switch,Stby-Switch