Follow these steps to configure traffic mirroring for a port:

 

To do…

Use the command…

Remarks

 

 

Enter system view

system-view

 

 

 

 

 

 

 

Enter Ethernet port view of the

interface interface-type

 

 

destination port

interface-number

 

 

 

 

 

 

 

 

 

 

Define the current port as the

monitor-port

Required

 

 

destination port

 

 

 

 

 

 

 

 

 

 

 

Exit current view

quit

 

 

 

 

 

 

 

Enter Ethernet port view of

interface interface-type

 

 

traffic mirroring configuration

interface-number

 

 

 

 

 

 

 

 

 

 

Reference ACLs for identifying

 

 

 

 

traffic flows and perform traffic

mirrored-to inbound acl-rule

Required

 

 

mirroring for packets that

monitor-interface

 

 

 

 

 

match.

 

 

 

 

 

 

 

 

 

 

 

 

 

As the priority of traffic classification rules is higher than that of the default rules used for processing protocol packets, traffic mirroring on all the packets or packets of a VLAN may affect device management that is implemented through Telnet and so on

Configuration example

Network requirements:

zGigabitEthernet 1/0/1 is connected to the 10.1.1.0/24 network segment.

zDuplicate the packets from network segment 10.1.1.0/24 to the destination mirroring port GigabitEthernet 1/0/4.

1)Method I

<device> system-view [device] acl number 2000

[device-acl-basic-2000] rule permit source 10.1.1.0 0.0.0.255

[device-acl-basic-2000] quit

[device] interface GigabitEthernet 1/0/4 [device-GigabitEthernet1/0/4] monitor-port

[device-GigabitEthernet1/0/4] quit [device] interface GigabitEthernet 1/0/1

[device-GigabitEthernet1/0/1] mirrored-to inbound ip-group 2000 monitor-interface

2)Method II

<device> system-view [device] acl number 2000

[device-acl-basic-2000] rule permit source 10.1.1.0 0.0.0.255

[device-acl-basic-2000] quit

[device] interface GigabitEthernet 1/0/4 [device-GigabitEthernet1/0/4] monitor-port

[device-GigabitEthernet1/0/4] quit

1-31

Page 392
Image 392
3Com WX3000 operation manual Required Destination port Exit current view, Traffic mirroring configuration