The following configuration is applicable to all CE switches.
Perform the following operations to configure VLAN mirroring.
Run the system-view command to enter the system view.
Run the observe-port [ observe-port-index ] interface interface-type interface-number command to configure a local observing port.
To configure multiple observing ports, run the preceding command multiple times.
Run the vlan vlan-id command to enter the VLAN view.
Run the mirroring observe-port observe-port-index { inbound | outbound | both } command to copy traffic of the VLAN to the specified observing port.
To copy traffic to multiple observing ports, run this command multiple times.
Only the CE12800E configured with ED-E/EG-E/EGA-E series cards, CE16800, CE6880EI, CE6881, CE5881, CE6820, CE6863, CE6863E, CE6881K, CE6863K, CE6881E, and CE5880EI support outbound VLAN mirroring. That is, they support the outbound and both parameters.
Run the commit command to commit the configuration.
For example, you can run the following command to copy traffic of VLAN 10 to the observing port 10GE1/0/2.
<HUAWEI> system-view [~HUAWEI] observe-port 1 interface 10ge 1/0/2 [*HUAWEI] vlan 10 [*HUAWEI-vlan10] mirroring observe-port 1 inbound [*HUAWEI-vlan10] commit

