64
no
mac-address-table
aging-time
dynamic entry remains in the
MAC address table after the
entry is used or updated.
Range: 0-300 seconds; 0 to
disable aging)
Use the no form of this
command to use the default
aging-time interval. The aging
time applies to all VLANs.
time must be 20~620 and in
steps of 20 seconds
150
(Disable)
switch(config)#
mac-address-table aging-time
0
(Default)
switch(config)#
no mac-address-table
aging-time
mac-address-table
static hwaddr
[MAC] vlan
[VLAN-ID]
or
no
mac-address-table
static hwaddr
[MAC] vlan
[VLAN-ID]
Interface
configuration
mode
Configure MAC address table
of interface (static)
Remove an entry of MAC
address table of interface
(static)
witch (config)#interface
gigaethernet 1
switch(config-if)#mac-address-t
able static hwaddr
000012345678 vlan 1
or
witch (config)#interface
gigaethernet 1
switch(config-if)#no
mac-address-table static
hwaddr 000012345678 vlan 1
mac-address-table
filter hwaddr
[MAC] vlan
[VLAN-ID]
or
no
mac-address-table
filter hwaddr
[MAC] vlan
[VLAN-ID]
Global
configuration
mode
Configure MAC address
table(filter)
Remove an entry of MAC
address table (filter)
switch(config)#mac-address-ta
ble filter hwaddr 000012348678
vlan 1
or
switch(config)#no
mac-address-table filter
hwaddr 000012348678 vlan 1
show
mac-address-table
[static|filter|all]
or
show
mac-address-table
static
or
show
Privileged
EXEC mode
Show static MAC address table
Show filter MAC address table.
Show all MAC address table
switch#show
mac-address-table static
or
switch#show
mac-address-table filter
or