l If an Eth-Trunk is configured as a mirrored interface, its member interfaces cannot be
configured as mirrored interfaces. To configure a member interface as a mirrored interface,
delete it from the Eth-Trunk first.
l If a member interface of an Eth-Trunk is configured as a mirrored interface, the Eth-Trunk
cannot be configured as a mirrored interface. To configure the Eth-Trunk as a mirrored
interface, delete the member interface from it first.
Procedure
Step 1 Run:
system-view
The system view is displayed.
Step 2 Run:
interface interface-type interface-number
The interface view is displayed.
Step 3 Run:
mirror to observe-port { both | inbound | outbound }
A local mirrored interface is configured.
NOTE
To ensure that mirroring packets sent from the observing interface carry the same as that of the original
packets, the downstream mirrored interface and observing interface on the SRU of the AR1220 must be
configured with the same VLAN tag.
If the downstream mirroring interface is configured with an ACL, the ACL does not take effect for mirroring
packets. After the mirrored interface is specified, all packets on the interface are mirrored regardless of
whether a traffic policy is configured.
----End
4.3.4 Checking the Configuration
After port mirroring is configured, check the usage of the observing interface and mirrored
interface.
Prerequisites
The configurations of port mirroring are complete.
Procedure
l Run the display observe-port command to check the observing interface in port mirroring.
l Run the display mirror-port command to check the mirrored interface in port mirroring.
----End
4.4 Configuring Local Flow Mirroring
To monitor and analyze the packets with same characteristics passing through the mirrored
interface that is located on the same AR150/200 as the observing interface, configure local port
mirroring on the AR150/200.
Huawei AR150&200 Series Enterprise Routers
Configuration Guide - Device Management 4 Mirroring Configuration
Issue 02 (2012-03-30) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
63