beautypg.com

Configuration example, Configuring vlan mapping, Configuration prerequisites – H3C Technologies H3C S3600 Series Switches User Manual

Page 750

background image

1-20

To do…

Use the command…

Remarks

Enter Ethernet port view

interface interface-type
interface-number

Configure traffic redirecting

traffic-redirect { inbound |
outbound } acl-rule { cpu |
{ interface interface-type
interface-number
|
link-aggregation-group agg-id }
[ untagged ] }

Required

By default, traffic redirecting is
not configured.

z

Packets redirected to the CPU are not forwarded.

z

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 the Port Basic Configuration

module of this manual for information about Combo ports.

z

If the traffic is configured to be redirected to an aggregation group, the traffic is redirected to the

master port of the aggregation group. Refer to the Link Aggregation module of this manual for

information about aggregation group.

z

When the traffic redirecting function is used in conjunction with the selective QinQ function, you can

specify the untagged keyword as required (that is, remove the outer VLAN tag of a packet after the

packet is redirected to the uplink port) in a tree network with a single uplink port (or an aggregation

group). Do not specify the untagged keyword in a ring network or a network with multiple uplink

ports. Refer to the VLAN-VPN module of this manual for information about selective QinQ.

Configuration example

z

Ethernet 1/0/1 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 Ethernet 1/0/7.

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/1

[Sysname-Ethernet1/0/1] traffic-redirect inbound ip-group 2000 interface Ethernet1/0/7

Configuring VLAN Mapping

Refer to section

VLAN Mapping

for information about VLAN mapping.

Configuration prerequisites

z

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

manual for information about defining ACL rules.

z

The ports on which the configuration is to be performed have been determined.

z

The VLAN ID to be set for the packets has been determined.

This manual is related to the following products: