176
To do… Use the command… Remarks
VLAN:
For a hybrid port port hybrid vlan vlan-id { tagged | untagged }
NOTE:
For more information about the port access vlan command, the port trunk permit vlan command, and
the port hybrid vlan command, see
Layer 2—LAN Switching Command Reference
.
Using the remote probe VLAN to enable local mirroring to
support multiple destination ports
In typical local port mirroring configuration, you can only configure one monitor port in a local mirroring
group. As a result, you cannot monitor traffic of a local device on multiple data monitoring devices. To do
that, you can take advantage of the remote probe VLAN used in Layer 2 remote mirroring.
In Layer 2 remote port mirroring, a remote probe VLAN is configured, and the mirrored packets are
broadcast within the remote probe VLAN. By connecting multiple data monitoring devices to the member
ports of the remote probe VLAN, you can monitor the traffic of the local device on multiple data
monitoring devices.
Configure this feature in the following steps:
1. Configure a remote source mirroring group on the local device
2. Configure the monitored ports on the device as mirroring ports of this mirroring group
3. Configure a remote probe VLAN for this mirroring group
4. Assign the ports connecting the data monitoring devices to the remote probe VLAN
In this way, when packets mirrored on the monitored ports are broadcast in the remote probe VLAN, they
will be sent out the ports connecting the data monitoring devices, and all data monitoring devices can
thus receive these mirrored packets.
Configuration procedure
To configure local port mirroring with multiple monitor ports:
To do…
Use the command Remarks
1. Enter system view.
system-view —
2. Create a remote source
mirroring group.
mirroring-group group-id remote-
source
Required.
By default, no mirroring group
exists on a device.
In system view
mirroring-group group-id mirroring-
port mirroring-port-list { both |
inbound | outbound }
interface interface-type interface-
number
[ mirroring-group group-id ] mirroring-
port { both | inbound | outbound }
3. Configure
mirroring
ports for
the remote
source
mirroring
group:
In interface
view
quit
Use either command.
By default, no mirroring port is
configured for a mirroring
group.