- Index
- Preface
- Product Overview
-
- Configuring Ethernet Interfaces
- Configuring VLANs
- Configuring Private VLANs
- Configuring Rapid PVST+
- Configuring Multiple Spanning Tree
- Configuring STP Extensions
- Configuring Port Channels
- Configuring Access and Trunk Interfaces
- Configuring the MAC Address Table
- Configuring IGMP Snooping
- Configuring Traffic Storm Control
-
- Configuring Fibre Channel Interfaces
- Configuring Domain Parameters
- Configuring N-Port Virtualization
- Configuring VSAN Trunking
- Configuring SAN PortChannels
- Configuring and Managing VSANs
- Configuring and Managing Zones
- Distributing Device Alias Services
- Configuring Fibre Channel Routing Services and Protocols
- Managing FLOGI, Name Server, FDMI, and RSCN Databases
- Discovering SCSI Targets
- Advanced Features and Concepts
- Configuring FC-SP and DHCHAP
- Configuring Port Security
- Configuring Fabric Binding
- Configuring Fabric Configuration Servers
- Configuring Port Tracking
Configuring the MAC Address Table
All Ethernet switching ports maintain media access control (MAC) address tables.
Information About MAC Addresses
To switch frames between LAN ports efficiently, the switch maintains an address table. When the switch receives a frame, it associates the media access control (MAC) address of the sending network device with the LAN port on which it was received.
The switch dynamically builds the address table by using the MAC source address of the frames received. When the switch receives a frame for a MAC destination address not listed in its address table, it floods the frame to all LAN ports of the same VLAN except the port that received the frame. When the destination station replies, the switch adds its relevant MAC source address and port ID to the address table. The switch then forwards subsequent frames to a single LAN port without flooding all LAN ports.
You can also enter a MAC address, which is termed a static MAC address, into the table. These static MAC entries are retained across a reboot of the switch.
In addition, you can enter a multicast address as a statically configured MAC address. A multicast address can accept more than one interface as its destination.
The address table can store a number of unicast and multicast address entries without flooding any frames (for details, see the “Configuration Limits” section. The switch uses an aging mechanism, defined by a configurable aging timer, so if an address remains inactive for a specified number of seconds, it is removed from the address table.
Configuring MAC Addresses
This section includes the following topics:
- Configuring a Static MAC Address
- Configuring the Aging Time for the MAC Table
- Clearing Dynamic Addresses from the MAC Table
Configuring a Static MAC Address
You can configure MAC addresses for the switch. These addresses are static MAC addresses.
Note You can also configure a static MAC address in interface configuration mode or VLAN configuration mode.
To configure a static MAC address, perform this task:
This example shows how to put a static entry in the MAC address table:
To delete a static MAC address, perform this task:
|
|
---|---|
switch(config-if)# no mac-address-table static mac_address vlan vlan-id |
To delete the static entry from the MAC address table, enter the no form of the command. |
You can use the mac-address-table static command to assign a static MAC address to a virtual interface.
Configuring the Aging Time for the MAC Table
You can configure the amount of time that an entry (the packet source MAC address and port that packet ingresses) remain in the MAC table.
Note You can also configure MAC aging time in interface configuration mode or VLAN configuration mode.
To configure the aging time for all MAC addresses, perform this task:
This example shows how to set the aging time for entries in the MAC address table to 600 seconds (10 minutes):
Clearing Dynamic Addresses from the MAC Table
You can clear all dynamic entries in the MAC address table.
To clear the MAC address table, perform this task:
This example shows how to clear the dynamic entries in the MAC address table:
Verifying the MAC Address Configuration
To display MAC address configuration information, perform one of these tasks:
|
|
---|---|
Displays the MAC address aging time for all VLANS defined in the switch. |
|
This example shows how to display the MAC address table:
This example shows how to display the current aging time: