Figure 13 Network diagram
Configure Device A:
# Configure ACL 2001 and ACL 2002 to match traffic from Server and Host A, respectively.
[DeviceA] acl number 2001
[DeviceA-acl-basic-2001] rule permit source 18.104.22.168 0
[DeviceA] acl number 2002
[DeviceA-acl-basic-2002] rule permit source 22.214.171.124 0
# Create a class named server, and use ACL 2001 as the match criterion. Create a class named
host, and use ACL 2002 as the match criterion.
[DeviceA] traffic classifier server
[DeviceA-classifier-server] if-match acl 2001
[DeviceA] traffic classifier host
[DeviceA-classifier-host] if-match acl 2002
# Create a behavior named server, and configure the CAR action for the behavior as follows: set
the CIR to 1024 kbps, and mark the excess packets (red packets) with DSCP value 0 and transmit
[DeviceA] traffic behavior server
[DeviceA-behavior-server] car cir 1024 red remark-dscp-pass 0
# Create a behavior named host, and configure the CAR action for the behavior as follows: set the
CIR to 256 kbps.
[DeviceA] traffic behavior host
[DeviceA-behavior-host] car cir 256
# Create a QoS policy named car, and associate class server with behavior server and class host
with behavior host.
[DeviceA] qos policy car
[DeviceA-qospolicy-car] classifier server behavior server
[DeviceA-qospolicy-car] classifier host behavior host