236
[DeviceA-GigabitEthernet1/0/2] quit
Verifying the configuration
# Verify the mirroring group configuration on Device C.
[DeviceC] display mirroring-group all
Mirroring group 2:
Type: Remote destination
Status: Active
Monitor port: GigabitEthernet1/0/2
Remote probe VLAN: 2
# Verify the mirroring group configuration on Device A.
[DeviceA] display mirroring-group all
Mirroring group 1:
Type: Remote source
Status: Active
Mirroring port:
GigabitEthernet1/0/1 Both
Reflector port: GigabitEthernet1/0/3
Remote probe VLAN: 2
Layer 2 remote port mirroring configuration example (with
egress port)
Network requirements
On the Layer 2 network shown in
, configure Layer 2 remote port mirroring to enable the
server to monitor the bidirectional traffic of the Marketing department.
Figure 67 Network diagram
Configuration procedure
1.
Configure Device C (the destination device):
# Configure GigabitEthernet 1/0/1 as a trunk port, and assign the port to VLAN 2.
<DeviceC> system-view
[DeviceC] interface gigabitethernet 1/0/1
[DeviceC-GigabitEthernet1/0/1] port link-type trunk
[DeviceC-GigabitEthernet1/0/1] port trunk permit vlan 2
Source device
Device A
GE1/0/1
GE1/0/2
Server
Marketing Dept.
Intermediate device
Device B
Destination device
Device C
GE1/0/1
GE1/0/2
GE1/0/1
GE1/0/2
Source port
Monitor port
Egress port
Common port
VLAN 2
VLAN 2