234
[Device-GigabitEthernet1/0/3] quit
Verifying the configuration
# Verify the mirroring group configuration.
[Device] display mirroring-group all
Mirroring group 1:
Type: Local
Status: Active
Mirroring CPU:
Slot 1 Both
Monitor port: GigabitEthernet1/0/3
Layer 2 remote port mirroring configuration example
(reflector port configurable)
Network requirements
, configure Layer 2 remote port mirroring to enable the server to monitor the
bidirectional traffic of the Marketing department.
Figure 66 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
[DeviceC-GigabitEthernet1/0/1] quit
# Create a remote destination group.
[DeviceC] mirroring-group 2 remote-destination
# Create VLAN 2.
[DeviceC] vlan 2
# Disable MAC address learning for VLAN 2.
[DeviceC-vlan2] undo mac-address mac-learning enable
[DeviceC-vlan2] quit
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
Reflector port
Common port
GE1/0/3
VLAN 2
VLAN 2