Configuration procedure

Follow these steps to configure VLAN-based mirroring:

 

To do…

 

Use the command…

 

Remarks

 

Enter system view

 

system-view

 

 

 

 

 

 

 

 

Create a local or remote source

 

mirroring-group group-id

Required

 

mirroring group

 

{ local remote-source }

 

 

 

 

 

 

 

 

 

 

 

Configuring VLAN-Based

 

mirroring-group group-id

 

 

 

 

mirroring-vlan vlan-id

 

Required

 

Mirroring

 

 

 

 

inbound

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Required

 

Configure the destination port

 

mirroring-group group-id

 

Note that you need not

 

 

 

configure the destination port

 

for the mirroring group

 

monitor-portmonitor-port-id

 

on the source switch when

 

 

 

 

 

configuring VLAN-based

 

 

 

 

 

remote mirroring.

 

 

 

 

 

 

Configuration example

Configure VLAN-based mirroring to mirror packets received on all ports in VLAN 2 to port GigabitEthernet 1/0/2 on the local device.

Configuration procedure:

<device> system-view

[device] mirroring-group 1 local

[device] mirroring-group 1 mirroring-vlan 2 inbound

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

Displaying and Maintaining Port Mirroring

To do…

Use the command…

Remarks

Display the information of a

display mirroring-group

 

{ group-idall local

Available in any view

mirroring group.

remote-destination

 

 

remote-source }

 

 

 

 

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 1-3:

z

z

z

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

Marketing department is connected to Switch C through GigabitEthernet 1/0/2. 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.

1-9

Page 410
Image 410
3Com WX3000 operation manual Mirroring Configuration Example, Displaying and Maintaining Port Mirroring, Inbound