H3C S7500 Series Ethernet Switches Command Manual

Table Of Contents
Command Manual – Mirroring
H3C S7500 Series Ethernet Switches Chapter 1
Mirroring Commands
1-5
only available when the ACL rule number is specified in the command. After the
specified ACL takes effect, there are three scenarios when you input the index value:
z If you do not input an index value or the index value you input is 0, the system will
automatically assign an index greater than 0;
z If the input index value is not 0 and does not conflict with the interior index used by
the system, the system will adopt the index value;
z If the input index value is not 0 but conflicts with the interior index used by the
system, the system will reassign an index value.
When the specified ACL rule is not effective, the system will adopt the input index value.
interface interface-type interface-number [ reflector ]: Mirrors traffics to the specified
port. interface-type interface-number indicates an Ethernet port. With the reflector
keyword specified, the parameters represent a reflector port, together with
corresponding configuration to realize remote traffic mirroring; without the reflector
keyword, the parameters represent a destination port, used to realize the local traffic
mirroring.
mirroring-group group-id: Specifies a mirroring group. The traffics classified by the
ACL are to be mirrored to the destination port/reflector port of the specified mirroring
group.
Description
Use the mirrored-to command to start ACLs to identify traffics and perform traffic
mirroring for matched packets.
Use the undo mirrored-to command to remove traffic mirroring configuration.
This command only applies to the rules whose actions are permit in matching the
specified ACL, and only mirrors the received traffics. If you want to mirror traffics to a
specified port, the port must be a destination port or reflector port of a mirroring group.
When configuring traffic mirroring, note that:
z For a centralized card, all the ports involved must be on the same card.
z For a distributed system, all the ports involved must be within the same distributed
system.
Related commands: display qos-interface mirrored-to
Examples
# Mirror packets that match ACL 2000 on port GigabitEthernet 2/0/1 to GigabitEthernet
2/0/4 through traffic mirroring.
<H3C> system-view
[H3C] mirroring-group 3 local
[H3C] mirroring-group 3 monitor-port GigabitEthernet 2/0/4
[H3C] interface GigabitEthernet 2/0/1
[H3C-GigabitEthernet2/0/1] qos