1-5
Configuration on a switch acting as a source switch
1) Configuration
prerequisites
z
The source port, the reflector port, and the remote-probe VLAN are determined.
z
Layer 2 connectivity is ensured between the source and destination switches over the
remote-probe VLAN.
z
The direction of the packets to be monitored is determined.
2) Configuration
procedure
Follow these steps to perform configurations on the source switch:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Create a VLAN and enter the
VLAN view
vlan
vlan-id
vlan-id
is the ID of the
remote-probe VLAN.
Configure the current VLAN as
the remote-probe VLAN
remote-probe vlan enable
Required
Return to system view
quit
—
Enter the view of the Ethernet
port that connects to the
intermediate switch or
destination switch
interface interface-type
interface-number
—
Configure the current port as
trunk port
port link-type trunk
Required
By default, the port type is
Access.
Configure the trunk port to
permit packets from the
remote-probe VLAN
port trunk permit vlan
remote
-
probe-vlan-id
Required
Return to system view
quit
—
Create a remote source
mirroring group
mirroring-group group-id
remote-source
Required
Configure source port(s) for the
remote source mirroring group
mirroring-group group-id
mirroring-port
mirroring-port-list
{
both
|
inbound
|
outbound
}
Required
Configure the reflector port for
the remote source mirroring
group
mirroring-group group-id
reflector-port reflector-port
Required
Configure the remote-probe
VLAN for the remote source
mirroring group
mirroring-group group-id
remote-probe vlan
remote
-
probe
-
vlan-id
Required
When configuring the source switch, note that:
z
All ports of a remote source mirroring group are on the same device. Each remote source mirroring
group can be configured with only one reflector port.
z
The reflector port cannot be a member port of an existing mirroring group, a fabric port, a member
port of an aggregation group, or a port enabled with LACP or STP. It must be an access port and