
Configuring the Cisco Gigabit EtherSwitch EHWIC
How to Configure Gigabit EtherSwitch EHWICs
77
Configuring the Cisco Gigabit EtherSwitch EHWIC
OL-23155-01
Configuring Static Addresses
A static address has the following characteristics:
• It is manually entered in the address table and must be manually removed.
• It can be a unicast or multicast address.
• It does not age and is retained when the switch restarts.
Because all ports are associated with at least one VLAN, the switch acquires the VLAN ID for the
address from the ports that you select on the forwarding map. A static address in one VLAN must be a
static address in other VLANs. A packet with a static address that arrives on a VLAN where it has not
been statically entered is flooded to all ports and not learned.
Beginning in privileged EXEC mode, follow these steps to add a static address.
SUMMARY STEPS
1. configure terminal
2. mac-address-table static mac-address vlan vlan-id interface type slot/port
3. end
DETAILED STEPS
To remove a static addresses, use the mac-address-table static mac-address vlan vlan-id interface type
slot/port command in global configuration mode.
To remove all static addresses, use the clear mac-address-table static command in privileged EXEC
mode.
Command Purpose
Step 1
configure terminal
Example:
Router#configure terminal
Enters global configuration mode.
Step 2
mac-address-table static mac-address vlan vlan-id
interface type slot/port
Example:
Router(config)#mac-address-table static
000a.000b.000c vlan 1 interface
gigabitethernet 0/1/2
Enters the static MAC address, the interface, and the VLAN
ID of those ports.
Step 3
end
Example:
Router(config)#end
Returns to privileged EXEC mode.
Kommentare zu diesen Handbüchern