[Switch-behavior-city_a_af11]
statistic enable
[Switch-behavior-city_a_af11]
quit
[Switch]
traffic behavior city_a_be
[Switch-behavior-city_a_be]
car cir 200 pir 2000
[Switch-behavior-city_a_be]
car city_a share
[Switch-behavior-city_a_be]
statistic enable
[Switch-behavior-city_a_be]
quit
[Switch]
traffic behavior city_a_default
[Switch-behavior-city_a_default]
car cir 64 pir 2000
[Switch-behavior-city_a_default]
car city_a share
[Switch-behavior-city_a_default]
statistic enable
[Switch-behavior-city_a_default]
quit
# Create traffic behaviors
city_b_ef
,
city_b_af31
,
city_b_af11
, and
city_b_be
to allocate CIR
values 800 kbit/s, 500 kbit/s, 300 kbit/s, and 100 kbit/s to traffic with DSCP priorities EF, AF31,
AF11, and 0. Create a traffic behavior
city_b_default
to allocate certain bandwidth to other
traffic.
[Switch]
traffic behavior city_b_ef
[Switch-behavior-city_b_ef]
car cir 800 pir 2000
[Switch-behavior-city_b_ef]
car city_b share
[Switch-behavior-city_b_ef]
statistic enable
[Switch-behavior-city_b_ef]
quit
[Switch]
traffic behavior city_b_af31
[Switch-behavior-city_b_af31]
car cir 500 pir 2000
[Switch-behavior-city_b_af31]
car city_b share
[Switch-behavior-city_b_af31]
statistic enable
[Switch-behavior-city_b_af31]
quit
[Switch]
traffic behavior city_b_af11
[Switch-behavior-city_b_af11]
car cir 300 pir 2000
[Switch-behavior-city_b_af11]
car city_b share
[Switch-behavior-city_b_af11]
statistic enable
[Switch-behavior-city_b_af11]
quit
[Switch]
traffic behavior city_b_be
[Switch-behavior-city_b_be]
car cir 100 pir 2000
[Switch-behavior-city_b_be]
car city_b share
[Switch-behavior-city_b_be]
statistic enable
[Switch-behavior-city_b_be]
quit
[Switch]
traffic behavior city_b_default
[Switch-behavior-city_b_default]
car cir 64 pir 2000
[Switch-behavior-city_b_default]
car city_b share
[Switch-behavior-city_b_default]
statistic enable
[Switch-behavior-city_b_default]
quit
Step 5
Configure a traffic policy.
# Create and configure a traffic policy
city_control
, bind configured traffic classifiers and traffic
behaviors to the traffic policy, and apply the traffic policy to the interface connecting the
provincial center server and the Switch.
[Switch]
traffic policy city_control
[Switch-trafficpolicy-city_control]
classifier city_a_ef behavior city_a_ef
[Switch-trafficpolicy-city_control]
classifier city_a_af31 behavior city_a_af31
[Switch-trafficpolicy-city_control]
classifier city_a_af11 behavior city_a_af11
[Switch-trafficpolicy-city_control]
classifier city_a_be behavior city_a_be
[Switch-trafficpolicy-city_control]
classifier city_a_default behavior
city_a_default
[Switch-trafficpolicy-city_control]
classifier city_b_ef behavior city_b_ef
[Switch-trafficpolicy-city_control]
classifier city_b_af31 behavior city_b_af31
[Switch-trafficpolicy-city_control]
classifier city_b_af11 behavior city_b_af11
[Switch-trafficpolicy-city_control]
classifier city_b_be behavior city_b_be
[Switch-trafficpolicy-city_control]
classifier city_b_default behavior
city_b_default
[Switch-trafficpolicy-city_control]
quit
[Switch]
interface gigabitethernet 0/0/2
[Switch-GigabitEthernet0/0/2]
traffic-policy city_control inbound
[Switch-GigabitEthernet0/0/2]
quit
S3700HI Ethernet Switches
Configuration Guide - QoS
2 Traffic Policing and Traffic Shaping Configuration
Issue 01 (2012-03-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
78