
100
Port mirroring configuration examples
Local port mirroring configuration example
Network requirements
On the network shown in
:
•
Device A connects to the marketing department through Ethernet 1/0/1 and to the technical
department through Ethernet 1/0/2. It connects to the server through Ethernet 1/0/3.
•
Configure local port mirroring in source port mode to enable the server to monitor the bidirectional
traffic of the marketing department and the technical department.
Figure 35
Network diagram
Configuration procedure
1.
Create a local mirroring group.
# Create local mirroring group 1.
<DeviceA> system-view
[DeviceA] mirroring-group 1 local
# Configure Ethernet 1/0/1 and Ethernet 1/0/2 as source ports and port Ethernet 1/0/3 as the
monitor port.
[DeviceA] mirroring-group 1 mirroring-port Ethernet 1/0/1 Ethernet 1/0/2 both
[DeviceA] mirroring-group 1 monitor-port Ethernet 1/0/3
# Disable the spanning tree feature on the monitor port Ethernet 1/0/3.
[DeviceA] interface Ethernet 1/0/3
[DeviceA-Ethernet1/0/3] undo stp enable
[DeviceA-Ethernet1/0/3] quit
2.
Verify the configurations.
# Display the configuration of all mirroring groups.
[DeviceA] display mirroring-group all
mirroring-group 1:
type: local