3Com Switch 4200G Configuration Guide
242 CHAPTER 28: CONFIGURATION FOR MIRRORING FEATURES
Configuring port mirroring in system view
Configuration Example
■ The source port is GigabitEthernet1/0/1. Mirror all packets received and sent using
this port.
■ The destination port is GigabitEthernet1/0/7.
Configuration procedure:
<S4200G> system-view
System View: return to User View with Ctrl+Z.
[4200G] mirroring-group 1 local
[4200G] interface gigabitEthernet1/0/7
[4200G-GigabitEthernet1/0/7] monitor-port
[4200G-GigabitEthernet1/0/7] quit
[4200G] interface gigabitEthernet1/0/1
[4200G-GigabitEthernet1/0/1] mirroring-port both
Configuring MAC-Based
Mirroring
In MAC-based mirroring configuration, the MAC address you enter must be a static
MAC address that already exists in the MAC address entries. With the MAC-based
mirroring configured, the device mirrors the following packets to the destination port:
■ Packets whose source MAC addresses match the specified MAC addresses
■ Packets whose destination MAC addresses match the specified MAC addresses
Configuration prerequisites
■ The MAC address you enter must be a static MAC address that already exists in
the MAC address entries.
■ The destination port is specified.
Table 212 Configure port mirroring in system view
Operation Command Description
Enter system view system-view -
Create a port mirroring
group
mirroring-group group-id local Required
Configure the destination
port
mirroring-group group-id
monitor-port monitor-port
Required
Configure the source port
and specify the direction of
the packets to be mirrored
mirroring-group group-id
mirroring-port mirroring-port-list
{ both | inbound | outbound }
Required
Display parameter settings
of the mirroring
display mirroring-group { all |
local }
Optional
The display command can
be executed in any view










