1-20
z
The traffic redirecting function configured on a VLAN is only applicable to packets tagged with
802.1Q header.
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.
Configuration example
z
Ethernet 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 Ethernet 1/0/7.
1) Method I: configure traffic redirecting for port Ethernet 1/0/1
<Sysname> system-view
[Sysname] acl number 2000
[Sysname-acl-basic-2000] rule permit source 10.1.1.1 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
2) Method II: configure traffic redirecting for VLAN 2
<Sysname> system-view
[Sysname] acl number 2000
[Sysname-acl-basic-2000] rule permit source 10.1.1.1 0.0.0.255
[Sysname-acl-basic-2000] quit
[Sysname] traffic-redirect vlan 2 inbound ip-group 2000 interface Ethernet1/0/7
Configuring Queue Scheduling
Refer to section
Queue Scheduling
for information about queue scheduling.
Configuration prerequisites
The algorithm for queue scheduling to be used and the related parameters are determined.
Configuration procedure
Table 1-22
Configure queue scheduling
Operation
Command
Description
Enter system view
system-view
—
Configure queue
scheduling
queue-scheduler
{
strict-priority
|
hq-wrr
queue0-weight queue1-weight
queue2-weight
|
wrr
queue0-weight
queue1-weight queue2-weight
queue3-weight
}
Required
By default, all the ports adopt the
WRR queue scheduling
algorithm, with the weights for
queues 0 to 3 as 1, 2, 3, and 4.