beautypg.com

Configuration prerequisites, Configuration procedure, Configuration example – H3C Technologies H3C S3600 Series Switches User Manual

Page 755

background image

1-25

Configuration prerequisites

z

The ACL rules for traffic classification have been defined. Refer to the ACL module of this manual

for information about defining ACL rules.

z

The source mirroring ports and mirroring direction have been determined.

z

The destination mirroring port has been determined.

Configuration procedure

Follow these steps to configure traffic mirroring:

To do…

Use the command…

Remarks

Enter system view

system-view

Enter Ethernet port view

interface interface-type
interface-number

Configure the current port as a source
mirroring port

mirrored-to { inbound |
outbound } acl-rule
{ monitor-interface | cpu }

Required

Omit the following
steps if you redirect
traffic to the CPU.

Proceed to the
following steps if you
redirect traffic to a port.

Quit to system view

quit

In system view

mirroring-group group-id
monitor-port
monitor-port-id

interface interface-type
interface-number

Configure the specified
port as the destination
mirroring port

In Ethernet
port view

monitor-port

Required

Use either approach.

For information about the mirroring-group monitor-port command and the monitor-port command,

refer to the part talking about mirroring.

Configuration example

Network requirements:

z

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

z

Duplicate the packets from network segment 10.1.1.0/24 to the destination mirroring port Ethernet

1/0/4.

Configuration procedure:

system-view

[Sysname] acl number 2000

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

[Sysname-acl-basic-2000] quit

[Sysname] interface Ethernet1/0/4

This manual is related to the following products: