Академический Документы
Профессиональный Документы
Культура Документы
c o m
CH A P T E R
13
Configuring the Aging Time for the MAC Table, page 13-2
13-1
Chapter 13
Se n d f e e d b a ck t o n x 5 0 0 0 - d o c f e e d b a ck @ c i s c o . c o m
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:
Command
Purpose
Step 1
Step 2
switch(config-)# mac-address-table
static mac_address vlan vlan-id {drop |
interface {type slot/port} |
port-channel number} [auto-learn]
This example shows how to put a static entry in the MAC address table:
switch# configure terminal
switch(config)# mac-address-table static 12ab.47dd.ff89 vlan 3 interface ethernet 2/1
Purpose
switch(config-if)# no mac-address-table
static mac_address vlan vlan-id
You can use the mac-address-table static command to assign a static MAC address to a virtual interface.
Note
You can also configure MAC aging time in interface configuration mode or VLAN configuration mode.
13-2
OL-16597-01
Chapter 13
Se n d f e e d b a ck t o n x 5 0 0 0 - d o c f e e d b a ck @ c i s c o . c o m
To configure the aging time for all MAC addresses, perform this task:
Command
Purpose
Step 1
Step 2
switch(config)# mac-address-table
aging-time seconds [vlan vlan_id]
This example shows how to set the aging time for entries in the MAC address table to 600 seconds (10
minutes):
switch# configure terminal
switch(config)# mac-address-table aging-time 600
Purpose
This example shows how to clear the dynamic entries in the MAC address table:
switch# clear mac-address-table dynamic
Purpose
13-3
Chapter 13
Se n d f e e d b a ck t o n x 5 0 0 0 - d o c f e e d b a ck @ c i s c o . c o m
Total MAC Addresses: 2
13-4
OL-16597-01