Command Manual (For Soliton) – Mirroring
H3C S3100 Series Ethernet Switches
Chapter 1 Mirroring Commands
1-4
1.1.3 mirroring-group mirroring-port
Syntax
mirroring-group group-id mirroring-port mirroring-port-list
{
both
|
inbound
|
outbound
}
undo mirroring-group group-id mirroring-port mirroring-port-list
View
System view, Ethernet port view
Parameters
group-id
: Number of a port mirroring group, the value of which can only be 1.
mirroring-port mirroring-port-list
: Specifies a list of source ports.
mirroring-port-list
is
available in system view only, and there is no such argument in Ethernet port view.
mirroring-port-list
is provided in the format of
mirroring-port-list
= {
interface-type
interface-number
[
to
interface-type interface-number
] }&<1-8>, where
interface-type
is the port type, and
interface-number
is the port number, and &<1-8> means that you
can specify up to 8 ports or port lists.
both
: Specifies to mirror the packets received on and sent from the source mirroring
port.
inbound
: Specifies to mirror the packets received on the source mirroring port.
outbound
: Specifies to mirror the packets sent from the source mirroring port.
Description
Use the
mirroring-group mirroring-port
command to configure the source ports for a
local mirroring group or a remote source mirroring group.
Use the
undo mirroring-group mirroring-port
command to remove the source ports
of a local mirroring group or a remote source mirroring group.
Note that:
z
You cannot configure a member port of an existing mirroring group as a source
port for port mirroring.
z
Before configuring a mirroring source port, make sure that the corresponding
mirroring group has already been created.
z
A copy of each packet passing through a source port will be sent to the
corresponding destination port.
Related commands:
display mirroring-group
.
Examples
# Configure Ethernet 1/0/1 as the source port of local mirroring group 1, and mirror all
packets received on this port.