Configuring VLAN-Based
Mirroring
Configuration procedure
Table 213 Configure MAC-based mirroring
Operation
Enter system view
Define a MAC-based local
mirroring group
Configure MAC-based
mirroring
Enter Ethernet port view of
the destination port
Define the current port as
the destination port
Display parameter settings
of the mirroring
Configuration example
Configure MAC-based mirroring to mirror the packets matching the MAC address
■
00e0-fc01-0101 to the destination port.
The destination port is GigabitEthernet1/0/2.
■
Configuration procedure:
<S4200G> system-view
System View: return to User View with Ctrl+Z.
[4200G] mac-address static 00e0-fc01-0101 interface gigabitethernet
1/0/1 vlan 2
[4200G] mirroring-group 1 local
[4200G] mirroring-group 1 mirroring-mac 00e0-fc01-0101 vlan 2
[4200G] interface gigabitethernet 1/0/2
[4200G-GigabitEthernet1/0/2] mirroring-group 1 monitor-port
VLAN-based mirroring allows you to mirror packets received by all ports that belong
to the VLAN to the destination port.
Configuration prerequisites
The ID of the VLAN to be configured with VLAN-based mirroring has been
■
determined.
The destination port is specified.
■
Command
system-view
mirroring-group group-id local
mirroring-group group-id
mirroring-mac mac vlan vlan-id
interface interface-type
interface-number
mirroring-group group-id
monitor-port
display mirroring-group
{ group-id | all | local }
Mirroring Configuration 243
Description
-
Required
Required
-
Required
Optional
command can be executed in
any view