1-19To do… Use the command… RemarksEnter Ethernet port view interface interface-typeinterface-number —Configure traffic redirectingtraffic-redirect inboundacl-rule { cpu | { interfaceinterface-typeinterface-number |link-aggregation-groupagg-id } [ untagged ] }RequiredBy default, traffic redirecting isnot 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 automaticallyredirects the traffic to the port corresponding to the Combo port in up state. Refer to thePort 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 isredirected to the master port of the aggregation group. Refer to the Link Aggregationmodule of this manual for information about aggregation group.z When the traffic redirecting function is used in conjunction with the selective QinQfunction, you can specify the untagged keyword as required (that is, remove the outerVLAN tag of a packet after the packet is redirected to the uplink port) in a tree networkwith a single uplink port (or an aggregation group). Do not specify the untaggedkeyword in a ring network or a network with multiple uplink ports. Refer to theVLAN-VPN module of this manual for information about selective QinQ.Configuration exampleGigabitEthernet 1/0/1 is connected to the 10.1.1.0/24 network segment.# Redirect all the packets from the 10.1.1.0/24 network segment to GigabitEthernet 1/0/7. 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 GigabitEthernet1/0/1[Sysname-GigabitEthernet1/0/1] traffic-redirect inbound ip-group 2000 interfaceGigabitEthernet1/0/7Configuring VLAN MappingRefer to section VLAN Mapping for information about VLAN mapping.Configuration prerequisitesz The ACL rules used for traffic classification have been defined. Refer to the ACLmodule 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.