huawei(config)#
display qos-info traffic-statistic port 0/0/1
traffic-statistic:
port 0/0/1:
Inbound:
Matches: Acl 2001 rule 5 running
0 packet
3.14.3.4 Enabling the Mirroring of the Traffic Matching an ACL Rule
This topic describes how to mirror the traffic matching an ACL rule on a port to a specified port.
Mirroring does not affect packet receipt and transmission on the mirroring source port. You can
monitor the traffic of the mirroring source port by analyzing the traffic that passes the mirroring
destination port.
Prerequisite
The ACL and the rule of the ACL are configured, and the port for traffic mirroring is working
in the normal state.
Context
l
The traffic mirror is only valid to permit rules of an ACL.
l
The destination mirroring port cannot be an aggregation port.
l
The system supports only one mirroring destination port and the mirroring destination port
must be the upstream port.
Procedure
Step 1
Run the
traffic-mirror
command to enable the mirroring of the traffic matching an ACL rule
on a specified port.
Step 2
Run the
display qos-info traffic-mirror port
command to query the mirroring information
about the traffic matching an ACL rule on a specified port.
----End
Example
To mirror the traffic that matches ACL 2001 received on port 0/2/0 to port 0/0/1, do as follows:
huawei(config)#
traffic-mirror inbound ip-group 2001 port 0/2/0 to port 0/0/1
huawei(config)#
display qos-info traffic-mirror port 0/2/0
traffic-mirror:
port 0/2/0:
Inbound:
Matches: Acl 2001 rule 5 running
Mirror to: port 0/0/1
3.15 Configuring Environment Monitoring
This topic provides concepts associated with environment monitoring and describes how to
configure environment monitoring on the MA5616.
SmartAX MA5616 Multi-service Access Module
Configuration Guide
3 Basic Configuration
Issue 04 (2011-10-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
130