Displaying Address Table Entries - Cisco Catalyst 3750 Software Configuration Manual

Metro switch
Hide thumbs Also See for Catalyst 3750:
Table of Contents

Advertisement

Chapter 5
Administering the Switch
You add a static address to the address table by specifying the destination MAC unicast address and the
VLAN from which it is received. Packets received with this destination address are forwarded to the
interface specified with the interface-id option.
Beginning in privileged EXEC mode, follow these steps to add a static address:
Command
Step 1
configure terminal
Step 2
mac address-table static mac-addr
vlan vlan-id interface interface-id
Step 3
end
Step 4
show mac address-table static
Step 5
copy running-config startup-config
To remove static entries from the address table, use the no mac address-table static mac-addr vlan
vlan-id interface interface-id global configuration command.
This example shows how to add the static address c2f3.220a.12f4 to the MAC address table. When a
packet is received in VLAN 4 with this MAC address as its destination address, the packet is forwarded
to the specified interface:
Switch(config)# mac address-table static c2f3.220a.12f4 vlan 4 interface
gigabitethernet1/0/1

Displaying Address Table Entries

You can display the MAC address table by using one or more of the privileged EXEC commands
described in
Table 5-4
Commands for Displaying the MAC Address Table
Command
show mac address-table address
show mac address-table aging-time
show mac address-table count
show mac address-table dynamic
show mac address-table interface
show mac address-table multicast
show mac address-table notification
78-15870-01
Purpose
Enter global configuration mode.
Add a static address to the MAC address table.
For mac-addr, specify the destination MAC unicast address to add to
the address table. Packets with this destination address received in the
specified VLAN are forwarded to the specified interface.
For vlan-id, specify the VLAN for which the packet with the
specified MAC address is received. The range is 1 to 4094.
For interface-id, specify the interface to which the received packet is
forwarded. Valid interfaces include physical ports.
Return to privileged EXEC mode.
Verify your entries.
(Optional) Save your entries in the configuration file.
Table
5-4:
Description
Displays MAC address table information for the specified MAC address.
Displays the aging time in all VLANs or the specified VLAN.
Displays the number of addresses present in all VLANs or the specified VLAN.
Displays only dynamic MAC address table entries.
Displays the MAC address table information for the specified interface.
Displays the Layer 2 multicast entries for all VLANs or the specified VLAN.
Displays the MAC notification parameters and history table.
Catalyst 3750 Metro Switch Software Configuration Guide
Managing the MAC Address Table
5-25

Advertisement

Table of Contents
loading

Table of Contents