QoS Configuration Commands List 297
cpu: Specifies the traffic will be mirror to CPU
interface {
interface-name | interface-type interface-num
}: Specifies
the destination port where the traffic will be mirrored to.
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
Use the mirrored-to command to enable ACL traffic identification and perform
traffic mirroring.
Use the undo mirrored-to command to disable traffic mirroring.
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.
Related command: display qos-interface mirrored-to.
Example
To mirror the packets matching the ACL 2000 rules, whose action is permit, to the
port Ethernet1/0/1, enter the following:
<SW5500>system-view
System View: return to User View with Ctrl+Z
[SW5500]interface gigabitethernet 1/0/1
[SW5500-GigabitEthernet1/0/1]monitor-port
[SW5500-GigabitEthernet1/0/1]quit
[SW5500]interface gigabitethernet 1/0/2
[SW5500-GigabitEthernet1/0/2]mirrored-to ip-group 2000
monitor-interface
SW5500-GigabitEthernet1/0/2]
mirroring-port Syntax
mirroring-port { inbound | outbound | both }
undo mirroring-port
View
Ethernet Port View
Parameter
None
Description
Use the mirroring-port command to configure a mirroring port.
Use the undo mirroring-port command to remove setting of mirroring port.
The Switch supports one monitor port and one mirroring port. If several Switches
form a Fabric, only one monitor port and one mirroring port can be configured in