#!/bin/sh 【相关文章:XFree86/KDE for Cygw】
【扩展阅读:GCC开发工具简介】# 【扩展信息:add yaffs fs to kern】 # script by ron senykoff 2005 ##################################### ############ variables ############## # # e=eth0 # interface nonvoiprate=150kbps # throttle for nonvoip - make sure to keep is slow enough citrix=60kbps video=110kbps sametime=5kbps bulk=10kbpscolo1="x.x.x.x" # substitute ips here
colo2="x.x.x.x" sametime="x.x.x.x" # # ##################################### ###################################### delete any old rules #
tc qdisc del root dev $e#ifconfig $e txqueuelen 10
# root qdisc / qdisc = queueing discipline # tc qdisc add dev $e root handle 1: prio bands 2 priomap 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 # creates classes 1:1 and 1:2# put a pfifo on so we can see it at the console
tc qdisc add dev $e parent 1:1 handle 11: pfifo# on the second band of the prio we but an htb to keep
# the rest of the traffic from ever overrunning the link # any traffic not caught by our filters goes to the bulk category tc qdisc add dev $e parent 1:2 handle 10: htb default 40 tc class add dev $e parent 10: classid 10:1 htb rate $nonvoiprate# define the inner classes of the htb - prioritized from 10 - 40
tc class add dev $e parent 10:1 classid 10:10 htb rate $citrix ceil $nonvoiprate quantum 1500 ... 下一页