3Com Switch 4200G Configuration Guide

Mirroring Configuration 243
Configuration procedure
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
Configuring VLAN-Based
Mirroring
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.
Table 213 Configure MAC-based mirroring
Operation Command Description
Enter system view system-view -
Define a MAC-based local
mirroring group
mirroring-group group-id local Required
Configure MAC-based
mirroring
mirroring-group group-id
mirroring-mac mac vlan vlan-id
Required
Enter Ethernet port view of
the destination port
interface interface-type
interface-number
-
Define the current port as
the destination port
mirroring-group group-id
monitor-port
Required
Display parameter settings
of the mirroring
display mirroring-group
{ group-id | all | local }
Optional
command can be executed in
any view