beautypg.com

Configuring remote port mirroring – H3C Technologies H3C S3100 Series Switches User Manual

Page 621

background image

1-4

Operation

Command

Description

In system view

mirroring-group group-id
mirroring-port
mirroring-port-list { both |
inbound | outbound }

interface interface-type
interface-number

mirroring-group group-id
mirroring-port { both |
inbound | outbound }

Configure the source
port for the port
mirroring group

In port view

quit

Use either approach

You can configure
multiple source ports at
a time in system view,
or you can configure
the source port in
specific port view. The
configurations in the
two views have the
same effect.

In system view

mirroring-group group-id
monitor-port
monitor-port-id

interface interface-type
interface-number

Configure the
destination port for the
port mirroring group

In port view

mirroring-group group-id
monitor-port

Use either approach

The configurations in
the two views have the
same effect.

When configuring local port mirroring, note that:

z

You need to configure the source and destination ports for the local port mirroring to take effect.

z

The destination port cannot be a member port of an aggregation group or a port enabled with LACP

or STP.

Configuring Remote Port Mirroring

An S3100 series Ethernet switch can serve as a source switch, an intermediate switch, or a destination

switch in a remote port mirroring networking environment.

Configuration on a switch acting as a source switch

1) Configuration

prerequisites

z

The source port, the reflector port, and the remote-probe VLAN are determined.

z

Layer 2 connectivity is ensured between the source and destination switches over the

remote-probe VLAN.

z

The direction of the packets to be monitored is determined.

2) Configuration

procedure

Table 1-4 Configuration on the source switch

Operation

Command

Description

Enter system view

system-view

Create a VLAN and enter the
VLAN view

vlan vlan-id

vlan-id is the ID of the
remote-probe VLAN.