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

z

z

Configure GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2 as mirroring source ports. Configure GigabitEthernet 1/0/3 as the mirroring destination port.

Figure 1-3Network diagram for local port mirroring

R&D

Switch A

department

GEth1/0/1

 

 

GEth1/0/3

 

GEth1/0/2

 

Switch C

 

Data detection device

Marketing

Switch B

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

GigabitEthernet1/0/2 both

mirroring mac: mirroring vlan:

monitor port: GigabitEthernet1/0/3

After the configurations, you can monitor all packets received on and sent from the R&D department and the marketing department on the data detection device.

Remote Port Mirroring Configuration Example

Network requirements

The departments of a company connect to each other through switches, as shown in Figure 1-4:

zSwitch A, Switch B, and Switch C are WX3000 series devices.

1-10

Page 411
Image 411
3Com WX3000 Remote Port Mirroring Configuration Example, Configure Switch C # Create a local mirroring group