R2511-HP MSR Router Series ACL and QoS Command Reference(V5)

47
Examples
# Configure a CAR action in traffic behavior database (set the CIR to 200 kbps, CBS to 50000 bytes,
and EBS to 0, and permit the conforming packets to pass, and mark the excess packets with IP
precedence 0 and forward them.)
<Sysname> system-view
[Sysname] traffic behavior database
[Sysname-behavior-database] car cir 200 cbs 50000 ebs 0 green pass red remark-prec-pass
0
# Configure a QoS policy (CIR as 50% of the interface bandwidth in the CAR action) and apply the QoS
policy to interface GigabitEthernet 0/1.
<Sysname> system-view
[Sysname] traffic classifier c1
[Sysname-classifier-c1] if-match any
[Sysname-classifier-c1] quit
[Sysname] traffic behavior b1
[Sysname-behavior-b1] car cir percent 50
[Sysname-behavior-b1] quit
[Sysname] qos policy p1
[Sysname-qospolicy-p1] classifier c1 behavior b1
[Sysname-qospolicy-p1] quit
[Sysname] interface GigabitEthernet 0/1
[Sysname-GigabitEthernet0/1] qos apply policy p1 outbound
Related commands
qos policy
traffic behavior
classifier behavior
display traffic behavior
Use display traffic behavior to display traffic behavior information.
Syntax
display traffic behavior { system-defined | user-defined } [ behavior-name ] [ | { begin | exclude |
include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
system-defined: Displays system-defined traffic behaviors.
user-defined: Displays user-defined traffic behaviors.
behavior-name: Behavior name, a string of 1 to 31 characters. If no traffic behavior is specified, this
command displays information about all the system-defined or user-defined behaviors.