# Create remote source group 2, configure Ten-GigabitEthernet 1/0/2 as a source port of the mirroring
group, and configure the mirroring group to monitor the bidirectional traffic of the port.
<Sysname> system-view
[Sysname] mirroring-group 2 remote-source
[Sysname] mirroring-group 2 mirroring-port ten-gigabitethernet 1/0/2 both
Related commands
mirroring-group
mirroring-group monitor-egress
Use the mirroring-group monitor-egress command to configure an egress port for a remote source
group.
Use the undo mirroring-group monitor-egress command to remove the egress port of a remote source
group.
Syntax
In system view:
mirroring-group group-id monitor-egress interface-type interface-number
undo mirroring-group group-id monitor-egress interface-type interface-number
In interface view:
mirroring-group group-id monitor-egress
undo mirroring-group group-id monitor-egress
Default
No egress port is configured for a mirroring group.
Views
System view, interface view
Predefined user roles
network-admin
Parameters
group-id: Number of the mirroring group. The mirroring group specified by group-id must already exist.
The value ranges from 1 to 4.
interface-type interface-number: Specifies a port to be configured as the egress port by its type and
number.
Usage guidelines
You can configure an egress port only for a remote source group, but not for a local mirroring group or
remote destination group.
To make sure that port mirroring works properly, disable these functions on the egress port: the spanning
tree feature, 802.1X, static ARP, and MAC address learning.
Do not configure a port of an existing mirroring group as an egress port.
122