11.
Forwarding Database (FDB)
MN700004 Rev 01
106
Command Syntax
device-name
(config)#
mac-address-table
{
static
|
dynamic
|
secure
}
HH:HH:HH:HH:HH:HH
interface
UU/SS/PP
vlan
<
vlan-id
>
Argument Description
static
Add static entry.
dynamic
Add dynamic entry statically.
secure
Add secure entry for secured port (see Port Security).
HH:HH:HH:HH:HH:HH
48-bit hardware address
interface UU/SS/PP
The interface number
vlan <vlan-id>
The VLAN identifier in the range <1-4094>
Example
device-name
(config)#
mac-address-table static 00:0a:01:02:03:04 interface
1/1/1 vlan 2496
Deleting Entries
There are two types of commands to remove FDB entries:
•
clear
mac-address-table
commands – applied in Privileged (Enable) mode;
•
no mac-address-table
commands
– applied in Configuration mode.
The commands are implemented as follows:
clear mac-address-table
The
clear mac-address-table
command, in Privileged (Enable) mode, clears the MAC
addresses specified by the command arguments.
Command Syntax
device-name
#
clear mac-address-table
[
dynamic
|
filtered
|
secure
|
static
|
multicast
][
address
HH:HH:HH:HH:HH:HH
]
[
vlan
<
vlan-id
>] [
interface
UU/SS/PP
]
Argument Description
address
HH:HH:HH:HH:HH:HH
(Optional) The specified MAC address to be cleared, if it complies with
all other specified arguments.
interface UU/SS/PP
(Optional) MAC addresses on the specified interface are cleared, if they
comply with all other specified arguments.
vlan <vlan-id>
(Optional) MAC addresses for the specified VLAN are cleared, if they
comply with all other specified arguments. The VLAN identifier in the
range <1-4094>