inbound: Mirrors only received packets on the specified port.
outbound: Mirrors only sent packets on the specified port.
Usage guidelines
You can configure source ports only for a local mirroring group or remote source group but not for a
remote destination group.
Do not assign a source port to a source VLAN or remote probe VLAN.
Typically, a port belongs to only one mirroring group.
Do not configure flow sampling on a source port from which the outbound packets are mirrored.
Examples
# Create local mirroring group 1, configure GigabitEthernet 3/0/1 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 1 local
[Sysname] interface GigabitEthernet 3/0/1
[Sysname-GigabitEthernet3/0/1] mirroring-group 1 mirroring-port both
# Create remote source group 2, configure GigabitEthernet 3/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] interface GigabitEthernet 3/0/2
[Sysname-GigabitEthernet3/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 }
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
mdc-admin
184