beautypg.com

Configuration procedure – H3C Technologies H3C S5120 Series Switches User Manual

Page 123

background image

1-4

Configuration procedure

1) Configuration scheme 1

# Create a local mirroring group.

system-view

[DeviceC] mirroring-group 1 local

# Configure ports GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2 as mirroring ports and port

GigabitEthernet 1/0/3 as the monitor port in the mirroring group.

[DeviceC] mirroring-group 1 mirroring-port gigabitethernet 1/0/1 gigabitethernet 1/0/2 both

[DeviceC] mirroring-group 1 monitor-port gigabitethernet 1/0/3

# Display the configuration of all mirroring groups.

[DeviceC] display mirroring-group all

mirroring-group 1:

type: local

status: active

mirroring port:

GigabitEthernet1/0/1 both

GigabitEthernet1/0/2 both

monitor port: GigabitEthernet1/0/3

After finishing the configuration, you can monitor all the packets received and sent by Department 1 and

Department 2 on the Server.