1-3
z
Destination device
The destination device is the device where the monitor port is located. On it, you must create the remote
destination mirroring group.
When receiving a packet, the destination device compares the VLAN ID carried in the packet with the ID
of the probe VLAN configured in the remote destination mirroring group. If they are the same, the device
forwards the packet to the monitoring device through the monitor port.
To make the port mirroring function work properly, before configuring bidirectional traffic mirroring on a
port in a mirroring group, you need to use the
mac-address mac-learning disable
command on the
source device, intermediate devices, and destination device to disable the MAC address learning
function for the remote port mirroring VLAN. For more information about the
mac-address
mac-learning disable
command,
refer to
MAC Address Table Management Commands
in the
System
Volume
.
Configuring Local Port Mirroring
Configuring local port mirroring is to configure local mirroring groups.
A local mirroring group comprises one or multiple mirroring ports and one monitor port. These ports
must not have been assigned to any other mirroring group.
Follow these steps to configure a local mirroring group:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Create a local mirroring group
mirroring-group groupid local
Required
In system view
mirroring-group groupid
mirroring-port mirroring-port-list
{
both
|
inbound
|
outbound
}
interface
interface-type
interface-number
[
mirroring-group groupid
]
mirroring-port
{
both
|
inbound
|
outbound
}
Configure
mirroring
ports
In interface view
quit
Required
You can configure
mirroring ports in a
mirroring group.
In system view, you can
configure a list of
mirroring ports to the
mirroring group at a time.
In interface view, you can
assign only the current
port to the mirroring
group. To monitor multiple
ports, repeat the step.
In system view
mirroring-group groupid
monitor-port monitor-port-id
interface interface-type
interface-number
Configure
the
monitor
port
In interface view
[
mirroring-group groupid
]
monitor-port
Required
Use either approach.