Ethernet Switch CLI Reference Guide
187
C
H A P T E R
4 2
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
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
for examples.
42.1 Command Summary
The following section lists the commands for this feature.
Table 106
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
C
13
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
C
13
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