Technical data

Configuring QoS Rules With the CLI
© 2012 Meru Networks, Inc. Configuring Quality of Service 239
QoS Rule CLI Configuration Example
The following commands configure QoS rule 10 for the set of IP phones whose server
is at the IP address 10.8.1.1:
controller (config)# qosrule 10 netprotocol 17 qosprotocol none
controller (config-qosrule)# srcip 10.8.1.1
controller (config-qosrule)# srcmask 255.255.255.0
controller (config-qosrule)# srcport 0
controller (config-qosrule)# dstip 10.8.1.1
controller (config-qosrule)# dstmask 255.255.255.0
controller (config-qosrule)# dstport 0
controller (config-qosrule)# action forward
controller (config-qosrule)# droppolicy head
controller (config-qosrule)# tokenbucketrate 9400
controller (config-qosrule)# avgpacketrate 35
controller (config-qosrule)# end
When SCCP phones are used, we recommend that you create a separate VLAN for the
SCCP phones and create the following qosrules for G.711 (20ms) codec to handle
qosflow traffic:
controller (config)# qosrule 123 netprotocol 17 qosprotocol none
controller (config-qosrule)# srcmask subnet_mask (for example, 255.255.192.0)
controller (config-qosrule)# srcip subnet_IP_addr (for example,172.27.128.0)
controller (config-qosrule)# action forward
controller (config-qosrule)# avgpacketrate 50
controller (config-qosrule)# tokenbucketrate 10000
controller (config-qosrule)# droppolicy head
controller (config-qosrule)# exit
controller (config)# qosrule 124 netprotocol 17 qosprotocol none
avgpacketrate rate
Average packet rate: from 0 to 200 packets per second. If this is a
non-zero value, then the TSpec token bucket rate must also be a
non-zero value, and priority cannot be set to a non-zero value.
Defaults to 0.
tokenbucketrate rate
TSpec token bucket rate, from 0 to 1000 Kbps or 1-64 Mbps,
depending on the box checked. If this is a non-zero value, then the
average packet rate must also be non-zero, and the priority cannot
be set to a non-zero value. Defaults to 0.
trafficcontrol-enable
Turns traffic control policing on. When traffic control is on, traffic
assigned a priority will travel at the assigned rate and no faster.
no trafficcontrol
Turns traffic control policing off. This is the default setting.
Command Purpose