beautypg.com

Configuring traffic mirroring, Traffic mirroring overview, Mirroring traffic to an interface – H3C Technologies H3C SR8800 User Manual

Page 142

background image

130

Configuring traffic mirroring

Traffic mirroring overview

Traffic mirroring refers to the process of copying the specified packets to the specified destination for

packet analysis and monitoring.
You can configure mirroring traffic to an interface, to the CPU, or to a VLAN.

Mirroring traffic to an interface copies the matching packets on an interface to a destination
interface.

Mirroring traffic to the CPU copies the matching packets on an interface to a CPU (the CPU of the
board where the traffic mirroring-enabled interface resides).

Mirroring traffic to a VLAN copies the matching packets on an interface to a VLAN. In this case, all
the ports in the VLAN can receive the mirrored packets. Even if the VLAN does not exist, you can

pre-define the action of mirroring traffic to the VLAN. After the VLAN is created and some ports join
the VLAN, the action of mirroring traffic to the VLAN takes effect automatically.

NOTE:

For more information about QoS policies, traffic classes, and traffic behaviors, see

ACL and QoS

Configuration Guide.

SPE cards support mirroring inbound and outbound traffic and SPC cards only support mirroring
inbound traffic.

Configuring traffic mirroring

To configure traffic mirroring, you must enter the view of an existing traffic behavior.

NOTE:

In a traffic behavior, the action of mirroring traffic to an interface, the action of mirroring traffic to a CPU,
and the action of mirroring traffic to a VLAN are mutually exclusive.

Mirroring traffic to an interface

To mirror traffic to an interface:

Step Command

1.

Enter system view.

system-view

2.

Enter traffic behavior view.

traffic behavior behavior-name

3.

Specify the destination interface for traffic
mirroring.

mirror-to interface interface-type interface-number

NOTE:

Your configuration with the mirror-to interface command in a traffic behavior can overwrite the previous
configuration in the traffic behavior, if any.