Command Manual – Port Mirroring
H3C S7500E Series Ethernet Switches
Chapter 1 Port Mirroring Configuration Commands
1-8
Parameters
group-id
: Port mirroring group number, in the range of 1 to 4.
both
: Duplicates both inbound and outbound packets.
inbound
: Duplicates the inbound packets only.
outbound
: Duplicates the outbound packets only.
Description
Use the
mirroring-port
command to configure a port as a source mirroring port of a
port mirroring group.
Use the
undo mirroring-port
command to remove a source mirroring port from a port
mirroring group.
Note that:
z
If you do not specify the
mirroring-group group-id
keyword-argument
combination, these two commands apply to port mirroring group 1.
z
The source port cannot be a member port of the current mirroring group.
z
A remote destination mirroring group cannot contain source mirroring ports.
Examples
# Configure Ethernet 2/0/1 as a source mirroring port of remote source port mirroring
group 2.
<Sysname> system-view
[Sysname] mirroring-group 2 remote-source
[Sysname] interface Ethernet 2/0/1
[Sysname-Ethernet2/0/1] mirroring-group 2 mirroring-port both
1.1.8 monitor-port
Syntax
[
mirroring-group group-id
]
monitor-port
undo
[
mirroring-group group-id
]
monitor-port
View
Ethernet port view
Parameters
group-id
: Port mirroring group number, in the range of 1 to 4.
Description
Use the
monitor-port
command to configure a port as the destination mirroring port of
a port mirroring group.