Configuring non-multicast traffic mirroring on S series switches

Traffic mirroring can be configured to filter out multicast traffic and only mirror unicast traffic. Assume that GE1/0/1 is a mirrored port on an S series switch (except the S1700), and GE2/0/1 is an observing port. To mirror only incoming non-multicast packets (received packets) on GE1/0/1, perform the following configurations:
[HUAWEI] observe-port 1 interface gigabitethernet 2/0/1 //Create an observing port.
[HUAWEI] traffic classifier Unicast //Configure a traffic classifier to match only unicast packets. Only unicast packets (that is, the eighth bit of the first byte in the MAC addresses is 0) are allowed to pass through. The eighth bit of the first byte in MAC addresses of multicast packets is 1.
[HUAWEI-classifier-Unicast] if-match destination-mac 0000-0000-0000 0100-0000-0000
[HUAWEI-classifier-Unicast] quit
[HUAWEI] traffic behavior Unicast //Configure traffic mirroring as the traffic behavior.
[HUAWEI-behavior-Unicast] mirroring to observe-port 1
[HUAWEI-behavior-Unicast] quit
[HUAWEI] traffic policy Unicast //Configure a traffic policy, and bind the traffic classifier and traffic behavior to the traffic policy.
[HUAWEI-trafficpolicy-Unicast] classifier Unicast behavior Unicast
[HUAWEI-trafficpolicy-Unicast] quit
[HUAWEI] interface gigabitethernet 1/0/1
[HUAWEI-GigabitEthernet1/0/1] traffic-policy p1 inbound //Apply the traffic policy to the inbound direction of GE1/0/1.

Scroll to top