Mirroring configuration example, Local port mirroring configuration example, Local port mirroring configuration example -10 – H3C Technologies H3C WX3000 Series Unified Switches User Manual

Page 392

Advertising
background image

39-10

Mirroring Configuration Example

Local Port Mirroring Configuration Example

Network requirements

The departments of a company connect to each other through switches, as shown in

Figure 39-3

:

z

Research and Development (R&D) department is connected to Switch C through GigabitEthernet
1/0/1.

z

Marketing department is connected to Switch C through GigabitEthernet 1/0/2.

z

Data detection device is connected to Switch C through GigabitEthernet 1/0/3

The administrator wants to monitor the packets received on and sent from the R&D department and the
marketing department through the data detection device.

Use the local port mirroring function to meet the requirement. Perform the following configurations on
Switch C.

z

Configure GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2 as mirroring source ports.

z

Configure GigabitEthernet 1/0/3 as the mirroring destination port.

Figure 39-3

Network diagram for local port mirroring

Switch C

Data detection device

R&D

department

Switch A

Switch B

GEth1/0/2

GEth1/0/1

GEth1/0/3

Marketing

department

Configuration procedure

Configure Switch C:

# Create a local mirroring group.

<device> system-view

[device] mirroring-group 1 local

# Configure the source ports and destination port for the local mirroring group.

[device] mirroring-group 1 mirroring-port GigabitEthernet 1/0/1 GigabitEthernet 1/0/2 both

[device] mirroring-group 1 monitor-port GigabitEthernet 1/0/3

# Display configuration information about local mirroring group 1.

[device] display mirroring-group 1

mirroring-group 1:

type: local

status: active

mirroring port:

GigabitEthernet1/0/1 both

Advertising