Configuring remote port mirroring, Configuration prerequisites – H3C Technologies H3C SR8800 User Manual

Page 135

Advertising
background image

123

Step Command

Remarks

3.

Add ports to the port mirroring

group as mirroring ports.

•

(Approach I) In system view::
mirroring-group group-id

mirroring-port mirroring-port-list { both

| inbound | outbound }

•

(Approach II) In interface view:

a.

interface interface-type
interface-number

b.

[ mirroring-group group-id ]
mirroring-port { both | inbound |

outbound }

c.

quit

Use either approach.
You can add ports to a

port mirroring group as
mirroring ports in either

system view or

interface view.
In system view, you can
add multiple ports to a

port mirroring group at

a time. While in

interface view, you can
add only the current

port to a port mirroring

group.

4.

Add a port to the mirroring
group as the monitor port.

•

(Approach I) In system view:

mirroring-group group-id monitor-port

monitor-port-id

•

(Approach II) In interface view:

a.

interface interface-type

interface-number

b.

[ mirroring-group group-id ]
monitor-port

Use either approach.
You can add a monitor
port to a port mirroring

group in either system
view or interface view.

They achieve the same

purpose.

NOTE:
•

A local mirroring group is effective only when it has both mirroring ports and the monitor port
configured.

•

To make sure that the mirroring function works properly, do not enable STP on the monitor port of a
mirroring group.

•

A port mirroring group can contain multiple mirroring ports and only one monitor port.

•

A port can belong to only one port mirroring group.

Configuring remote port mirroring

NOTE:
•

If the GARP VLAN Registration Protocol (GVRP) is enabled, GVRP may register the remote probe VLAN
to unexpected ports, resulting in undesired duplicates. For more information about GVRP, see

Layer 2

—

LAN Switching Configuration Guide.

•

The router supports remote mirroring only when the system working mode is SPC or SPE.

Configuration prerequisites

Before configuring remote port mirroring, create a static VLAN to be configured as the remote probe

VLAN later.

Advertising