Hi there, Community!
This post emphasizes the process of configuring port mirroring and observing ports. Please kindly refer to the link below:
http://support.huawei.com/hedex/ ... ocid=EDOC1000081667.
PROCEDURE
1. Configuring an observing port
# Configure GE0/0/2 on the switch as the local observing port.
<HUAWEI> system-view
[HUAWEI] observe-port 1 interface gigabitethernet 0/0/2
2. Configuring a mirrored port
# Configure GE0/0/1, GE0/0/3 TO xGE4/0/4 on the switch as the mirrored port and configure GE0/0/1 to copy the received packets to the local observing port.
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI] port-mirroring to observe-port 1 inbound
[HUAWEI] return
[HUAWEI] interface range gigabitethernet 0/0/3 to gigabitethernet 0/0/24
[HUAWEI] port-mirroring to observe-port 1 inbound
[HUAWEI] return
[HUAWEI] interface range gigabitethernet 1/0/1 to gigabitethernet 1/0/24
[HUAWEI] port-mirroring to observe-port 1 inbound
[HUAWEI] return
[HUAWEI] interface range gigabitethernet 2/0/1 to gigabitethernet 2/0/48
[HUAWEI] port-mirroring to observe-port 1 inbound
[HUAWEI] return
[HUAWEI] interface range gigabitethernet 3/0/1 to gigabitethernet 3/0/48
[HUAWEI] port-mirroring to observe-port 1 inbound
[HUAWEI] return
[HUAWEI] interface range gigabitethernet 4/0/1 to gigabitethernet 4/0/48
[HUAWEI] port-mirroring to observe-port 1 inbound
[HUAWEI] return
[HUAWEI] interface range xgigabitethernet 0/0/1 to gigabitethernet 0/0/4
[HUAWEI] port-mirroring to observe-port 1 inbound
[HUAWEI] return
[HUAWEI] interface range xgigabitethernet 1/0/1 to gigabitethernet 1/0/4
[HUAWEI] port-mirroring to observe-port 1 inbound
[HUAWEI] return
[HUAWEI] interface range xgigabitethernet 2/0/1 to gigabitethernet 2/0/4
[HUAWEI] port-mirroring to observe-port 1 inbound
[HUAWEI] return
[HUAWEI] interface range xgigabitethernet 3/0/1 to gigabitethernet 3/0/4
[HUAWEI] port-mirroring to observe-port 1 inbound
[HUAWEI] return
[HUAWEI] interface range xgigabitethernet 4/0/1 to gigabitethernet 4/0/4
[HUAWEI] port-mirroring to observe-port 1 inbound
[HUAWEI] return
3. Verifying the configuration
# Check the configuration of the observing port.
<Switch> display observe-port
# Check the configuration of the mirrored port.
Port-mirror: Mirror-port Direction Observe-port
This would be all on the process of configuring port mirroring and observing ports. Thanks for reading this post!

