Operation Manual – Mirroring
H3C S3100 Series Ethernet Switches Chapter 1 Mirroring Configuration
1-4
1.2 Mirroring Configuration
Table 1-2 Mirroring configuration tasks
Task Remarks
Configuring Local Port Mirroring Optional
Configuring Remote Port Mirroring Optional
1.2.1 Configuring Local Port Mirroring
I. Configuration prerequisites
z The source port is determined and the direction in which the packets are to be
mirrored is determined.
z The destination port is determined.
II. Configuration procedure
Table 1-3 Configure local port mirroring
Operation Command Description
Enter system view
system-view
—
Create a port mirroring group
mirroring-group
group-id local
Required
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: