220
no mac-address-table (static|dynamic| discard) (address WORD|) (vlan
<1-4096>|) (interface (ethernet|port-channel|) IFNAME |)
Function:
Add or modify static address entries and filter address entries. The “
no
mac-address-table [static|discard|dynamic] [address <mac-addr>] [vlan <vlan-id>]
[interface [ethernet|portchannel] <interface-name>]
” command deletes the two
entries
Parameter:static
is the static entries;
discard
is filter entries, which is for discarding
frames from specific MAC address;
dynamic
is dynamic address entries;
<mac-addr>
MAC address to be added or deleted;
<interface-name>
name of the port transmitting
the MAC data packet;
<vlan-id>
is the vlan number.
Command Mode:
Global mode
Default:
When VLAN interface is configured and is up, the system will generate an static
address mapping entry of which the inherent MAC address corresponds to the VLAN
number
Usage Guide:
In certain special applications or when the switch is unable to dynamically
learn the MAC address, users can use this command to manually establish mapping
relation between the MAC address and port and VLAN.
no mac-address-table
command is for deleting all dynamic, static, filter MAC address
entries existing in the switch MAC address list, except for the mapping entries retained in
the system default
Example:
Port 1/1 belongs to VLAN200, and establishes address mapping with MAC
address 00-03-0f-f0-00-18.
Switch(Config)#mac-address-table static address 00-03-0f-f0-00-18 vlan 200 interface
ethernet 1/1.
7.3.2 show mac-address-table
Command:
show mac-address-table (discard|static|) (address WORD|) (vlan
<1-4096>|) (interface (ethernet|port-channel|) IFNAME |)
Function:
Show the current MAC table
Parameter:static
entry;
aging-time
address aging time;
discredit
filter entry;
<mac-addr>
entry’s MAC address;
<vlan-id>
entry’s VLAN number;
<interface-name>
entry’s interface name
Command mode:
Admin mode
Default: MAC address table is not displayed by default.
Usage guide:
This command can display various sorts of MAC address entries. Users
can also use
show mac-address-table
to display all the MAC address entries.
Example:
Display all the filter MAC address entries.