H3C Technologies H3C WX3000 Series Unified Switches User Manual

Page 368

Advertising
background image

37-24

To do…

Use the command…

Remarks

Enter port group view

port-group

group-id

Configure traffic redirecting

traffic-redirect

inbound acl-rule interface

interface-type interface-number

Required

Follow these steps to redirect packets passing a port and matching specific ACL rules:

To do…

Use the command…

Remarks

Enter system view

system-view

Enter Ethernet port view

interface

interface-type interface-number

Configure traffic redirecting

traffic-redirect

inbound acl-rule interface

interface-type interface-number

Required

If the traffic is redirected to a Combo port in down state, the system automatically redirects the traffic to
the port corresponding to the Combo port in up state. Refer to Port Basic Configuration in H3C WX3000

Series Unified Switches Switching Engine Configuration Guide

for information about Combo ports.

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

Configuration example

z

GigabitEthernet 1/0/1 belongs to VLAN 2 and is connected to the 10.1.1.0/24 network segment.

z

Redirect all the packets from the 10.1.1.0/24 network segment to GigabitEthernet 1/0/7.

1) Method

I

<device> system-view

[device] acl number 2000

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

[device-acl-basic-2000] quit

[device] interface GigabitEthernet1/0/1

[device-GigabitEthernet1/0/1] traffic-redirect inbound ip-group 2000 interface

GigabitEthernet1/0/7

2) Method

II

<device> system-view

[device] acl number 2000

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

[device-acl-basic-2000] quit

[device] traffic-redirect vlan 2 inbound ip-group 2000 interface GigabitEthernet1/0/7

Advertising