1-19
Configuration example
z
Configure port rate limiting for inbound packets on Ethernet 1/0/1.
z
The rate limit is 1,024 Kbps
Configuration procedure:
<Sysname> system-view
[Sysname] interface Ethernet 1/0/1
[Sysname-Ethernet1/0/1] line-rate inbound 1024
Configuring Traffic Redirecting
Refer to section
Traffic Redirecting
for information about traffic redirecting.
Configuration prerequisites
z
The ACL rules used for traffic classification are defined. Refer to the ACL module
of this manual for
information about defining ACL rules.
z
The traffic redirecting destination is determined.
Configuration procedure
You can redirect all the packets matching specific ACL rules, or packets that match specific ACL rules
and are of a VLAN, or pass a port.
Table 1-19
Redirect all the packets matching specific ACL rules
Operation
Command
Description
Enter system view
system-view
—
Configure traffic
redirecting
traffic-redirect inbound
acl-rule
{
cpu
|
interface
interface-type interface-number
}
Required
Table 1-20
Redirect packets that are of a VLAN and match specific ACL rules
Operation
Command
Description
Enter system view
system-view
—
Configure traffic redirecting
traffic-redirect vlan vlan-id
inbound
acl-rule
{
cpu | interface interface-type
interface-number
}
Required
Table 1-21
Redirect packets passing a port and matching specific ACL rules
Operation
Command
Description
Enter system view
system-view
—
Enter Ethernet port view
interface
interface-type
interface-number
—
Configure traffic redirecting
traffic-redirect inbound
acl-rule
{
cpu |
interface interface-type interface-number
}
Required