beautypg.com

H3C Technologies H3C S10500 Series Switches User Manual

Page 49

background image

41

[DeviceA] traffic classifier host

[DeviceA-classifier-host] if-match acl 2002

[DeviceA-classifier-host] quit

# 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 them.

[DeviceA] traffic behavior server

[DeviceA-behavior-server] car cir 1024 red remark-dscp-pass 0

[DeviceA-behavior-server] quit

# 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

[DeviceA-behavior-host] quit

# 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

[DeviceA-qospolicy-car] quit

# Apply QoS policy car to the incoming traffic of port GigabitEthernet 1/0/1.

[DeviceA] interface GigabitEthernet 1/0/1

[DeviceA-GigabitEthernet1/0/1] qos apply policy car inbound

2.

Configure Device B

# Configure advanced ACL 3001 to match HTTP traffic.

system-view

[DeviceB] acl number 3001

[DeviceB-acl-adv-3001] rule permit tcp destination-port eq 80

[DeviceB-acl-adv-3001] quit

# Create a class named http, and use ACL 3001 as the match criterion.

[DeviceB] traffic classifier http

[DeviceB-classifier-http] if-match acl 3001

[DeviceB-classifier-http] quit

# Create a class named class, and configure the class to match all packets.

[DeviceB] traffic classifier class

[DeviceB-classifier-class] if-match any

[DeviceB-classifier-class] quit

# Create a behavior named car_inbound, and configure the CAR action for the behavior as follows: set
the CIR to 2048 kbps.

[DeviceB] traffic behavior car_inbound

[DeviceB-behavior-car_inbound] car cir 2048

[DeviceB-behavior-car_inbound] quit

# Create a behavior named car_outbound, and configure a CAR action for the behavior as follows: set
the CIR to 1024 kbps.

[DeviceB] traffic behavior car_outbound

[DeviceB-behavior-car_outbound] car cir 1024

This manual is related to the following products: