184
E
ES4710BD 10 Slots L2/L3/L4 Chassis Switch
no mac-address-table [{static | dynamic} [address <
mac-addr>
] [vlan <
vlan-id>
]
[interface <
interface-name>
] ]
Function:
Adds or modifies static address entries, the “
no mac-address-table
” command deletes
static address entries and dynamic address entries.
Parameters:
static
stands for static address entry;
dynamic
for dynamic address entry;
<mac-addr>
for MAC address to be added or deleted;
<interface-name>
for port name to forward
the MAC frame;
<vlan-id>
for VLAN number.
Command mode:
Global Mode
Default:
When configuring a VLAN interface, the system will generate a static address mapping
entry for a system inherent MAC address and the VLAN number.
Usage Guide:
For special purposes or if the switch can not learn MAC address dynamically, the
user can use this command to establish mapping relationships between MAC addresses and
ports/VLAN.
“
no mac-address-table
” command will delete and filter all existing dynamic or static 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 address 00-03-0f-f0-00-18 vlan 200 interface ethernet 1/1
8.2.3 mac-address-table blackhole
Command: mac-address-table blackhole address <
mac-addr>
vlan <
vlan-id
>
no mac-address-table blackhole [address <
mac-addr>
] [vlan <
vlan-id>
]
Function:
Adds or modifies filter address entries, the “
no mac-address-table blackhole
” command
deletes filter address entries.
Parameters:
blackhole
stands for a filter entry, filter entries are 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:
Setting 00-03-0f-f0-00-18 to be a filter MAC address entry for VLAN200.
Switch(Config)#mac-address-table blackhole address 00-03-0f-f0-00-18 vlan 200
8.3 Typical Configuration Examples