Command Manual – Port Mirroring
H3C S7500E Series Ethernet Switches
Chapter 1 Port Mirroring Configuration Commands
1-4
and &<1-8>
means that you can provide up to eight port indexes/port index lists for this
argument.
both
: Specifies to duplicate both inbound and outbound packets.
inbound
: Specifies to duplicate inbound packets only.
outbound
: Specifies to duplicate outbound packets only.
Description
Use the
mirroring-group mirroring-port
command to configure source ports for a port
mirroring group.
Use the
undo mirroring-group mirroring-port
command to remove source ports from
a port mirroring group.
Note that:
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
# Add ports to port mirroring group 1 as source ports (assuming that port mirroring
group 1 already exists).
<Sysname> system-view
[Sysname] mirroring-group 1 mirroring-port Ethernet 2/0/1 to Ethernet 2/0/5
both
# Remove source mirroring ports from port mirroring group 1.
[Sysname] undo mirroring-group 1 mirroring-port Ethernet 2/0/1 to Ethernet
2/0/3 both
1.1.4 mirroring-group monitor-egress
Syntax
In system view:
mirroring-group group-id monitor-egress monitor-egress-port-id
undo mirroring-group group-id monitor-egress monitor-egress-port-id
In Ethernet port view:
mirroring-group group-id monitor-egress
undo mirroring-group group-id monitor-egress
View
System view, Ethernet port view