beautypg.com

Local port mirroring configuration example, Network requirements, Configuration procedure – H3C Technologies H3C MSR 50 User Manual

Page 188: Verifying the configuration

background image

Local port mirroring configuration example

Network requirements

As shown in

Figure 56

, Device A connects to the marketing department through Ethernet 1/1 and to the

technical department through Ethernet 1/2. It connects to the server through Ethernet 1/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 56 Network diagram

Configuration procedure

# Create local mirroring group 1.

system-view

[DeviceA] mirroring-group 1 local

# Configure Ethernet 1/1 and Ethernet 1/2 as source ports, and configure port Ethernet 1/3 as the
monitor port.

[DeviceA] mirroring-group 1 mirroring-port ethernet 1/1 ethernet 1/2 both

[DeviceA] mirroring-group 1 monitor-port ethernet 1/3

# Disable the spanning tree feature on the monitor port Ethernet 1/3.

[DeviceA] interface ethernet 1/3

[DeviceA-Ethernet1/3] undo stp enable

[DeviceA-Ethernet1/3] quit

Verifying the configuration

# Display the configuration of all mirroring groups.

[DeviceA] display mirroring-group all

mirroring-group 1:

type: local

175