L2 MAC address and multicast forwarding database tables

Use these M4500 CLI commands to display and manage the MAC address forwarding table, including multicast entries, aging time, and clearing dynamic entries.

show mac-addr-table

This command displays the forwarding database entries. If the command is entered with no parameter, the entire table is displayed. The administrator can enter a MAC Address to display the table entry for the requested MAC address and all entries following the requested MAC address.

Default None
Format show mac-addr-table [{<macaddr> <vlan-id>}]
Mode Privileged EXEC

Example: The following example shows the CLI display output for the command show mac-addr-table.

CODE
(M4500-32C) #show mac-addr-table
VLAN ID  MAC Address         Interface              IfIndex  Status
-------  ------------------  ---------------------  -------  ------------
1         BC:A5:11:56:D3:57   vlan 1                 136      Management

show mac-addr-table count

This command displays the total forwarding database entries, the number of static and learnning mac address, and the max address available on the switch.

Default None
Format show mac-addr-table count
Mode Privileged EXEC

Example: The following example shows the CLI display output for the command show mac-addr-table count.

CODE
(M4500-32C) #show mac-addr-table count
Dynamic Address count.......................... 0
Static Address (User-defined) count............ 1
Total MAC Addresses in use..................... 1
Total MAC Addresses available.................. 98304

show mac-addr-table interface

This command displays the forwarding database entries. The user can search FDB table by using specific interface number.

Format show mac-addr-table interface {<slot/port> | port-channel <portchannel-id> | vlan <vlan-id>}
Mode Privileged EXEC

Example: The following example shows the CLI display output for the command show mac-addr-table vlan 1.

CODE
(M4500-32C) #show mac-addr-table interface vlan 1
MAC Address        VLAN ID            Status
-----------------  -----------------  -----------------
BC:A5:11:56:D3:57  1                  Management

show mac-address-table igmpsnooping

This command displays the IGMP Snooping entries in the Multicast Forwarding Database (MFDB) table.

Format show mac-address-table igmpsnooping
Mode Privileged EXEC

Example: The following example shows the CLI display output for the command show mac-address-table igmpsnooping.

CODE
(M4500-32C) (Config)#show mac-address-table igmpsnooping
VLAN ID  MAC Address     Type     Description       Interfaces
-----------------------  -------  ----------------  -------------------------
00:01:01:00:5E:01:01:01  Static   Network Assist    Fwd: 0/1,ch1
00:02:01:00:5E:AA:BB:CC  Static   Network Assist    Fwd: 0/2

show mac-address-table multicast

This command displays the MFDB information. If the command is entered with no parameter, the entire table is displayed. This is the same as entering the all parameter. The user can display the table entry for one MAC Address by specifying the MAC address as an optional parameter.

Format show mac-address-table multicast [<macaddr>]
Mode Privileged EXEC

Example: The following example shows the CLI display output for the command show mac-address-table multicast.

CODE
(M4500-32C) (Config)#show mac-address-table multicast
                                                                    Fwd
VLAN ID MAC Address       Source  Type    Description     Interface Interface
------- ----------------- ------- ------- --------------- --------- ---------
1       01:00:5E:01:01:01 IGMP    Static  Network Assist  Fwd:      Fwd:
                                                          0/1,      0/1,
                                                          ch1       ch1
2       01:00:5E:AA:BB:CC IGMP    Static  Network Assist  Fwd:      Fwd:
                                                          0/2       0/2

show mac-address-table status

This command displays the MFDB statistics.

Format show mac-address-table stats
Mode Privileged EXEC

Example: The following example shows the CLI display output for the command show mac-address-table stats.

CODE
(M4500-32C) #show mac-address-table stats
Max MFDB Table Entries......................... 1024
Most MFDB Entries Since Last Reset............. 0
Current Entries................................ 0

show mac-addr-table agetime

This command displays the forwarding database address aging timeout.

Format show mac-addr-table agetime
Mode Privileged EXEC

Example: The following example shows the CLI display output for the command show mac-addr-table agetime.

(M4500-32C) #show mac-addr-table agetime

Address Aging Timeout:300

mac-addr-table aging-time

This command configures the forwarding database address aging timeout in seconds.

Default 300s
Format mac-addr-table aging-time <10-1000000>
Mode Global Config

no mac-addr-table aging-time

Use this command to return the address aging timeout the default settings.

Format no mac-addr-table aging-time
Mode Global Config

clear mac-addr-table dynamic

This command clears dynamic MAC entries.

Default None
Format clear mac-addr-table dynamic
Mode Privileged Exec