1-7
When configuring the monitor port, use the following guidelines:
z The port can belong to only the current mirroring group.
z Disable these functions on the port: STP, MSTP, and RSTP.
z You are recommended to use a monitor port only for port mirroring. This is to ensure that the data
monitoring device receives and analyzes only the mirrored traffic rather than a mix of mirrored
traffic and normally forwarded traffic.
Displaying and Maintaining Port Mirroring
To do… Use the command… Remarks
Display the configuration of port
mirroring groups
display mirroring-group { groupid | all |
local | remote-destination |
remote-source }
Available in any
view
Port Mirroring Configuration Examples
Local Port Mirroring Configuration Example
Network requirements
The departments of a company connect to each other through Ethernet switches:
z Research and Development (R&D) department is connected to Switch C through GigabitEthernet
1/0/1.
z Marketing department is connected to Switch C through GigabitEthernet 1/0/2.
z Data monitoring device is connected to Switch C through GigabitEthernet 1/0/3
As shown in
Figure 1-3, the administrator wants to monitor the packets received on and sent from the
R&D department and the marketing department through the data monitoring device.
Use the local port mirroring function to meet the requirement. Perform the following configurations on
Switch C.
z Configure GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2 as mirroring source ports.
z Configure GigabitEthernet 1/0/3 as the mirroring destination port.