249
undo mirroring-group group-id mirroring-port interface-list
Default
No source port is configured for a mirroring group.
Views
System view
Predefined user roles
network-admin
Parameters
group-id
: Specifies a mirroring group by its number in the range of 1 to 4. The specified mirroring
group must already exist.
interface-list
: Specifies a space-separated list of up to eight port items. Each item specifies a single
port or a port range in the form of
interface-type interface-number
1
to
interface-type
interface-number 2
. The specified interfaces must be of the same type and on the same device. The
value for
the
interface-number 2
argument must be equal to or greater than the value for the
interface-number
1
argument.
both
: Mirrors both received and sent packets.
inbound
: Mirrors only received packets.
outbound
: Mirrors only sent packets.
Usage guidelines
You can configure source ports only for local mirroring groups and remote source groups.
Do not assign a source port of a mirroring group to the remote probe VLAN of the mirroring group.
A port can act as a source port for multiple mirroring groups.
A source port cannot be used as a reflector port, monitor port, or egress port.
Examples
# Create local mirroring group 1 to monitor the bidirectional traffic of the port FortyGigE 1/0/1.
<Sysname> system-view
[Sysname] mirroring-group 1 local
[Sysname] mirroring-group 1 mirroring-port fortygige 1/0/1 both
# Create remote source group 2 to monitor the bidirectional traffic of the port FortyGigE 1/0/2.
<Sysname> system-view
[Sysname] mirroring-group 2 remote-source
[Sysname] mirroring-group 2 mirroring-port fortygige 1/0/2 both
Related commands
mirroring-group
mirroring-group monitor-egress
Use
mirroring-group monitor-egress
to configure the egress port for a remote source group.
Use
undo mirroring-group monitor-egress
to remove the egress port from a remote source
group.
Syntax
In system view:
mirroring-group group-id monitor-egress interface-type interface-number