Command Manual - QoS/ACL
Quidway S3500 Series Ethernet Switches Chapter 2 QoS Commands
Huawei Technologies Proprietary
2-7
2.1.7 mirrored-to
Syntax
mirrored-to { ip-group { acl-number | acl-name } [ rule rule ] | link-group { acl-number
| acl-name } [ rule rule ] } interface { interface-name | interface-type interface-num }
undo mirrored-to { ip-group { acl-number | acl-name } [ rule rule ] | link-group
{ acl-number | acl-name } [ rule rule ] }
View
System view
Parameter
ip-group { acl-number | acl-name } [ rule rule ]: Specifies a basic or advanced ACL.
acl-number: Specifies the ACL sequence number, ranging from 2000 to 3999. acl-name:
Specifies the ACL name with a character string starting with English letters ([a-z, A-Z])
and excluding space and quotation mark. rule rule: Specifies a rule of an ACL, ranging
from 0 to 127. If you do not set this parameter, all the rules will be considered.
link-group { acl-number | acl-name } [ rule rule ]: Specifies a Layer-2 ACL. acl-number:
Specifies the ACL sequence number, ranging from 4000 to 4999, acl-name: Specifies
the ACL name with a character string starting with English letters ([a-z, A-Z]) and
excluding space and quotation mark. rule rule: Specifies a rule of an ACL, ranging from
0 to 127. If you do not set this parameter, all the rules will be considered.
interface { interface-name | interface-type interface-num }: Specifies the destination
port where the traffic will be mirror. interface-num specifies the port number.
interface-num and interface-type specify a complete port name together.
interface-name is interface-type added with interface-num.
Description
Using mirrored-to command, you can enable ACL traffic identification and perform
traffic mirror. Using undo mirrored-to command, you can disable traffic mirror.
This command is used for mirroring the traffic matching the specified ACL (whose
action is permit). The observing port cannot be a Trunk port or aggregated port.
This command only supports one observing port. When you use the traffic mirror for the
first time, you have to designate the observing port.
For the related command, see display qos-global mirrored-to.
Example
# Mirrors the packets matching the ACL 2000 rules, whose action is permit, to the port
Ethernet0/1.
[Quidway] mirrored-to ip-group 2000 interface e0/1