3Com Switch 4200G Configuration Guide

Mirroring Configuration 241
Configuring Port
Mirroring
Configuration prerequisites
The source port is specified and whether the packets to be mirrored are inbound
or outbound is specified: inbound: only mirrors the packets received using the
port; outbound: only mirrors the packets sent by the port; both: mirrors the
packets received and sent by the port at the same time.
The destination port is specified.
The group number of the mirroring group is specified.
Configuring port mirroring in Ethernet port view
Table 210 Configure port mirroring in Ethernet port view (1)
Operation Command Description
Enter system view system-view -
Create a port mirroring
group
mirroring-group group-id local Required
Enter Ethernet port view of
the destination port
interface interface-type
interface-number
-
Define the current port as
the destination port
monitor-port Required
The destination port of mirroring
group 1 is configured in this
mode.
Exit current view quit -
Enter Ethernet port view of
the source port
interface interface-type
interface-number
-
Configure the source port
and specify the direction of
the packets to be mirrored
mirroring-port { inbound |
outbound | both }
Required
The source port of mirroring
group 1 is configured in this
mode.
Display parameter settings
of the mirroring
display mirroring-group { all |
local }
Optional
The display command can be
executed in any view
Table 211 Configure port mirroring in Ethernet port view (2)
Operation Command Description
Enter system view system-view -
Create a port mirroring
group
mirroring-group group-id local Required
Enter Ethernet port view of
the destination port
interface interface-type
interface-number
-
Define the current port as
the destination port
mirroring-group group-id
monitor-port
Required
Exit current view quit -
Enter Ethernet port view of
the source port
interface interface-type
interface-number
-
Configure the source port
and specify the direction of
the packets to be mirrored
mirroring-group group-id
mirroring-port { both |
inbound | outbound }
Required
Display parameter settings
of the mirroring
display mirroring-group { all |
local }
Required
The display command can be
executed in any view