Port mirroring configuration examples, Network requirements, Configuration procedure – H3C Technologies H3C S7500E Series Switches User Manual

Page 164

Advertising
background image

9-17

Port Mirroring Configuration Examples

Local Port Mirroring Configuration Example (in Mirroring Port Mode)

Network requirements

On a network shown in

Figure 9-4

:

z

Device A connects to the marketing department through GigabitEthernet 2/0/1 and to the

technical department through GigabitEthernet 2/0/2, and connects to the server through

GigabitEthernet 2/0/3.

z

Configure local port mirroring in mirroring port mode to enable the server to monitor the

bidirectional traffic of the marketing department and the technical department.

Figure 9-4 Network diagram for local port mirroring configuration

Configuration procedure

1) Create a local mirroring group.

# Create local mirroring group 1.

<DeviceA> system-view

[DeviceA] mirroring-group 1 local

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

GigabitEthernet 2/0/3 as the monitor port.

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

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

2) Verify the configurations.

# Display the configuration of all port mirroring groups.

[DeviceA] 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

Advertising