Ethernet Switch CLI Reference Guide
183
CHAPTER 42
MAC Filter Commands
Use these commands to filter traffic going through the Switch based on the MAC addresses
and VLAN group (ID).
 Use the running configuration commands to look at the current MAC filter
settings. See Chapter 64 on page 255.
 MAC filtering implementation differs across Switch models.
• Some models allow you to specify a filter rule and discard all packets with the specified
MAC address (source or destination) and VID.
• Other models allow you to choose whether you want to discard traffic originating from the
specified MAC address and VID (src), sent to the specified MAC address (dst) or both.
See Section 42.2 on page 184 and Section 42.3 on page 184 for examples.
42.1 Command Summary
The following section lists the commands for this feature.
Table 105 mac-filter Command Summary
COMMAND DESCRIPTION M P
mac-filter name <name> mac <mac-
addr> vlan <vlan-id>
Configures a static MAC address port filtering rule.
name: 1-32 alphanumeric characters
C13
no mac-filter mac <mac-addr>
vlan <vlan-id>
Deletes the specified MAC filter rule. C 13
mac-filter name <name> mac <mac-
addr> vlan <vlan-id> inactive
Disables a static MAC address port filtering rule.
name: 1-32 alphanumeric characters
C13
no mac-filter mac <mac-addr>
vlan <vlan-id> inactive
Enables the specified MAC-filter rule. C 13
mac-filter name <name> mac <mac-
addr> vlan <vlan-id> drop
<src|dst|both>
Specifies the source and or destination filter parameters. C 13