Displaying and Maintaining Port Mirroring
To do…
Use the command…
Remarks
Display port mirroring configuration
on a Switch 4500
display mirroring-group
{
group-id
|
all
|
local
|
remote-destination
|
remote-source
}
Available in any view
Mirroring Configuration Examples
Local Port Mirroring Configuration Example
Network requirements
The departments of a company connect to each other through Switch 4500 series:
z
Research and Development (R&D) department is connected to Switch C through Ethernet 1/0/1.
z
Marketing department is connected to Switch C through Ethernet 1/0/2.
z
Data detection device is connected to Switch C through Ethernet 1/0/3
The administrator wants to monitor the packets received on and sent from the R&D department and the
marketing department through the data detection device.
Use the local port mirroring function to meet the requirement. Perform the following configurations on
Switch C.
z
Configure Ethernet 1/0/1 and Ethernet 1/0/2 as mirroring source ports.
z
Configure Ethernet 1/0/3 as the mirroring destination port.
Network diagram
Figure 46-3
Network diagram for local port mirroring
Configuration procedure
Configure Switch C:
# Create a local mirroring group.
<Sysname> system-view
[Sysname] mirroring-group 1 local
# Configure the source ports and destination port for the local mirroring group.
46-9