beautypg.com

2 command example, 3 command example: filter source, For examples – ZyXEL Communications ZyXEL Dimension ES-2024PWR User Manual

Page 144

background image

Chapter 36 MAC Filter Commands

Ethernet Switch CLI Reference Guide

144

36.2 Command Example

This example creates a MAC filter called “filter1” that drops packets coming from or going to
the MAC address 00:12:00:12:00:12 on VLAN 1.

36.3 Command Example: Filter Source

The next example is for Switches that support the filtering of frames based on the source or
destination MAC address only. This example creates a filter “sourcefilter” that drops packets
originating from the MAC address af:af:01:01:ff:02 on VLAN 2.

sysname(config)# mac-filter name filter1 mac 00:12:00:12:00:12 vlan 1

sysname(config)# mac-filter name sourcefilter mac af:af:01:01:ff:02 vlan 2
drop src