R3303-HP HSR6800 Routers Network Management and Monitoring Configuration Guide

122
Configuration procedure
# Create local mirroring group 1.
<RouterA> system-view
[RouterA] mirroring-group 1 local
# Configure GigabitEthernet 2/0/1 and GigabitEthernet 2/0/2 as source ports, and configure
GigabitEthernet 2/0/3 as the monitor port.
[RouterA] mirroring-group 1 mirroring-port gigabitethernet 2/0/1 gigabitethernet 2/0/2
both
[RouterA] mirroring-group 1 monitor-port gigabitethernet 2/0/3
# Disable the spanning tree feature on the monitor port GigabitEthernet 2/0/3.
[RouterA] interface gigabitethernet 2/0/3
[RouterA-GigabitEthernet2/0/3] undo stp enable
[RouterA-GigabitEthernet2/0/3] quit
Verifying the configuration
# Display the configuration of all mirroring groups.
[RouterA] display mirroring-group all
mirroring-group 1:
type: local
status: active
mirroring port:
GigabitEthernet2/0/1 both
GigabitEthernet2/0/2 both
monitor port: GigabitEthernet2/0/3
After the configurations are completed, you can monitor all packets received and sent by the marketing
department and the technical department on the server.
Layer 2 remote port mirroring configuration example
Network requirements
As shown in Figure 47, configure Layer 2 remote port mirroring to enable the server to monitor the
bidirectional traffic of the marketing department.
Figure 47 Network diagram