Accton Technology ES4626 Switch User Manual


 
127
Function: Add or modify static address entry , the “no mac-address-table” command
delete static address entries and dynamic address entries.
Parameter: static stands for static address entry; dynamic for dynamic address entry;
<mac-addr> for MAC address to add or delete; <interface-name> for port name to
forward the MAC frame; <vlan-id> for VLAN number.
Command mode: Global Mode
Default: When configuring VLAN interface, the system will generate a static address
mapping entry for a system inherent MAC address and the VLAN number.
Usage Guide: For some special purpose or if the switch can not learn MAC address
dynamically, the user can use this command to establish mapping relationship between
MAC addresses and ports/VLAN.
no mac-address-table” command will delete all existing dynamic, static and filter MAC
address entries, except system default reserved entries.
Example: Port 1/1 belongs to VLAN200, set a mapping to MAC address
00-03-0f-f0-00-18.
Switch(Config)#mac-address-table static 00-03-0f-f0-00-18 interface Ethernet 1/5 vlan
200
4.2.3 mac-address-table discard
Command: mac-address-table static <mac-addr> discard vlan <vlan-id >
no mac-address-table [<mac-addr>] discard [vlan <vlan-id>]
Function: Add or modify filter address entry , the “no mac-address-table blackhole
command delete filter address entries.
Parameter: blackhole stands for a filter entry, filter entries is configured to discard frames
of specified MAC addresses, so that traffic can be filtered. Both source addresses and
destination addresses can be filtered. <mac-addr> stands for MAC addresses to be
added or deleted, <vlan-id> for VLAN number.
Command mode: Global Mode
Usage Guide: no mac-address-table blackhole” command will delete all filter MAC
address entries in the switch MAC table.
Example: Set 00-03-0f-f0-00-18 to be a filter MAC address entry for VLAN200.
Switch(Config)# mac-address-table static 00-03-0f-f0-00-18 discard vlan 200