[Switch]
interface gigabitethernet0/0/1
[Switch-GigabitEthernet0/0/1]
qos drr
[Switch-GigabitEthernet0/0/1]
qos queue 5 drr weight 0
[Switch-GigabitEthernet0/0/1]
qos queue 3 drr weight 100
[Switch-GigabitEthernet0/0/1]
qos queue 1 drr weight 50
[Switch-GigabitEthernet0/0/1]
quit
[Switch]
interface gigabitethernet0/0/2
[Switch-GigabitEthernet0/0/2]
qos drr
[Switch-GigabitEthernet0/0/2]
qos queue 5 drr weight 0
[Switch-GigabitEthernet0/0/2]
qos queue 3 drr weight 100
[Switch-GigabitEthernet0/0/2]
qos queue 1 drr weight 50
[Switch-GigabitEthernet0/0/2]
quit
[Switch]
quit
Step 5
Verify the configuration.
# Check the configuration of DiffServ domain
ds1
.
<Switch>
display diffserv domain name ds1
diffserv domain name:ds1
8021p-inbound 0 phb be green
8021p-inbound 1 phb af1 green
8021p-inbound 2 phb af1 red
8021p-inbound 3 phb af3 green
8021p-inbound 4 phb af4 green
8021p-inbound 5 phb af3 yellow
8021p-inbound 6 phb ef green
8021p-inbound 7 phb cs7 green
8021p-outbound be green map 0
# Check the configuration of drop profile
wred1
.
<Switch>
display drop-profile name wred1
Drop-profile[3]: wred1
Color Low-limit High-limit Discard-percentage
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Green 80 100 10
Yellow 60 80 20
Red 40 60 40
Non-tcp 100 100 100
-----------------------------------------------------------------
----End
Configuration Files
l
Configuration file of the Switch
#
sysname Switch
#
vlan batch 2 5 6
#
diffserv domain ds1
8021p-inbound 2 phb af1 red
8021p-inbound 5 phb af3 yellow
8021p-inbound 6 phb ef green
#
drop-profile wred1
color green low-limit 80 high-limit 100 discard-percentage 10
color yellow low-limit 60 high-limit 80 discard-percentage 20
color red low-limit 40 high-limit 60 discard-percentage 40
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 5 6
qos drr
qos queue 1 drr weight 50
qos queue 3 drr weight 100
qos queue 5 drr weight 0
S3700HI Ethernet Switches
Configuration Guide - QoS
3 Congestion Avoidance and Congestion Management
Configuration
Issue 01 (2012-03-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
100