2 commands for mac address table configuration, 1 mac-address-table, Ommands for – Accton Technology ES4626 User Manual
Page 209: Address table configuration

209
3. Unicast frame: When no VLAN is configured, if the destination MAC addresses are
in the switch MAC table, the switch will directly forward the frames to the associated
ports; when the destination MAC address in a unicast frame is not found in the MAC
table, the switch will broadcast the unicast frame. When VLANs are configured, the
switch will forward unicast frame within the same VLAN. If the destination MAC
address is found in the MAC table but belonging to different VLANs, the switch can
only broadcast the unicast frame in the VLAN it belongs to.
6.2 Commands for MAC address table configuration
6.2.1 mac-address-table
Command:mac-address-table static <mac-address> {interface <interface-name >|
discard} vlan <vlan-id>
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 address to be added or deleted;
the MAC data packet;
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.