672
C
61: Q
S C
HAPTER
O
Configuration Example
Configuring TP
Configuration
Prerequisites
Configuration Procedure
of TP
ONFIGURATION
n
Only non-type-A I/O Modules support port-based rate limit.
Set rate limit on GigabitEthernet 2/0/1 of the switch
■
Limit the rate to 10 Mbps.
■
Configuration procedure:
<SW7750> system-view
[SW7750] interface GigabitEthernet 2/0/1
[SW7750-GigabitEthernet2/0/1] qos
[SW7750-qosb-GigabitEthernet2/0/1] line-rate 10
Refer to "TP" on page 661 for the introduction to TP.
ACL rules used for traffic identifying are defined. Refer to "Choosing ACL
■
Mode for Traffic Flows" on page 639 for defining ACL rules
The limit rate for TP, the actions for the packets within the specified traffic and
■
the actions for the packets beyond the specified traffic have been specified.
The ports that needs this configuration is specified
■
Table 543 Configure TP
Operation
Enter system view
Enter Ethernet port view
Enter QoS view
Configure traffic-based TP
Display the parameters for
traffic policing
Display all the QoS settings of
the port
acl-rule: Applied ACL rules which can be the combination of various ACL rules.
Type-A I/O Modules' ways of combinations are described in Table 540, and
non-type-A I/O Modules' ways of combination is described in Table 541.
n
TP configuration is effective only for the ACL rules whose actions are permit.
■
Command
system-view
interface interface-type
interface-number
qos
traffic-limit { inbound |
outbound } acl-rule
[ system-index
system-index ] target-rate
traffic-limit inbound acl-rule
[ system-index
system-index ] [ kbps ]
target-rate [ exceed action ]
display qos-interface
[ interface-type
interface-number ]
traffic-limit
display qos-interface
[ interface-type
interface-number ] all
Description
-
-
-
Required
Type-A I/O Modules support
this command.
Required
Non-type-A I/O Modules
support this command.
Optional
You can execute the display
command in any view.