248
Use
undo mirroring-group mirroring-port
to remove a source port from a mirroring group.
Syntax
mirroring-group group-id mirroring-port
{
both
|
inbound
|
outbound
}
undo mirroring-group group-id mirroring-port
Default
No source port is configured for any mirroring group.
Views
Interface 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.
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, egress port, or monitor 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] interface fortygige 1/0/1
[Sysname-FortyGigE1/0/1] mirroring-group 1 mirroring-port 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] interface fortygige 1/0/2
[Sysname-FortyGigE1/0/2] mirroring-group 2 mirroring-port both
Related commands
mirroring-group
mirroring-group mirroring-port (system view)
Use
mirroring-group mirroring-port
to configure source ports for a mirroring group.
Use
undo mirroring-group mirroring-port
to remove source ports from a mirroring group.
Syntax
mirroring-group group-id mirroring-port interface-list
{
both
|
inbound
|
outbound
}