1-10
You can configure VLAN-based mirroring for a remote source mirroring group to implement
the VLAN-based remote mirroring function.
Configuration prerequisites
z The VLAN to be monitored is determined.
z The destination port is determined.
Configuration procedure
Table 1-7 Follow these steps to configure VLAN-Based mirroring:
To do… Use the command… Remarks
Enter system view
system-view
—
Create a local or remote
source mirroring group
mirroring-group group-id
{ local | remote-source }
Required
Configuring VLAN-Based
Mirroring
mirroring-group group-id
mirroring-vlan vlan-id
inbound
Required
Configure the destination
port for the mirroring group
mirroring-group group-id
monitor-port
monitor-port-id
Required
Note that you need not
configure the destination port
on the source switch when
configuring VLAN-based
remote mirroring.
Configuration example
Configure VLAN-based mirroring to mirror packets received on all ports in VLAN 2 to port
GigabitEthernet 1/0/2 on the local device.
Configuration procedure:
<Sysname> system-view
[Sysname] mirroring-group 1 local
[Sysname] mirroring-group 1 mirroring-vlan 2 inbound
[Sysname] mirroring-group 1 monitor-port GigabitEthernet 1/0/2
Displaying Port Mirroring
To do… Use the command… Remarks
Display the information
of a mirroring group.
display mirroring-group { group-id | all |
local | remote-destination |
remote-source }
Available in any
view