当前位置: 技术问答>linux和unix
tc命令中的QOS疑问,请高手指点。
来源: 互联网 发布时间:2016-07-15
本文导语: 本帖最后由 firvalor 于 2009-11-11 08:55:38 编辑 TC的命令如下:(不用理睬‘app:’) app: tc qdisc del dev eth0_1 root app: tc qdisc add dev eth0_1 root handle 10: htb r2q 50 default 1 app: tc class add dev eth0_1 parent 10: classid 10:1 h...
app: tc qdisc del dev eth0_1 root
app: tc qdisc add dev eth0_1 root handle 10: htb r2q 50 default 1
app: tc class add dev eth0_1 parent 10: classid 10:1 htb rate 80000kbit ceil 80000kbit
app: tc qdisc add dev eth0_1 parent 10:1 handle 100: prio bands 4 priomap 3 3 2 2 1 1 0 0 3 3 3 3 3 3 3 3
app: tc qdisc add dev eth0_1 parent 100:1 handle 1000: pfifo limit 40
app: tc qdisc add dev eth0_1 parent 100:2 handle 2000: pfifo limit 20
app: tc qdisc add dev eth0_1 parent 100:3 handle 3000: pfifo limit 10
app: tc qdisc add dev eth0_1 parent 100:4 handle 4000: pfifo limit 5
app: tc filter add dev eth0_1 protocol ip parent 100: prio 1 handle 4 fw classid 100:1
app: tc filter add dev eth0_1 protocol ip parent 100: prio 1 handle 0x2004 fw classid 100:1
app: tc filter add dev eth0_1 protocol ip parent 100: prio 1 handle 0x4004 fw classid 100:1
app: tc filter add dev eth0_1 protocol ip parent 100: prio 1 handle 0x6004 fw classid 100:1
app: tc filter add dev eth0_1 protocol ip parent 100: prio 1 handle 0x8004 fw classid 100:1
app: tc filter add dev eth0_1 protocol ip parent 100: prio 1 handle 0xa004 fw classid 100:1
app: tc filter add dev eth0_1 protocol ip parent 100: prio 1 handle 0xc004 fw classid 100:1
app: tc filter add dev eth0_1 protocol ip parent 100: prio 1 handle 0xe004 fw classid 100:1
app: tc filter add dev eth0_1 protocol ip parent 100: prio 1 handle 3 fw classid 100:2
app: tc filter add dev eth0_1 protocol ip parent 100: prio 1 handle 0x2003 fw classid 100:2
app: tc filter add dev eth0_1 protocol ip parent 100: prio 1 handle 0x4003 fw classid 100:2
app: tc filter add dev eth0_1 protocol ip parent 100: prio 1 handle 0x6003 fw classid 100:2
app: tc filter add dev eth0_1 protocol ip parent 100: prio 1 handle 0x8003 fw classid 100:2
app: tc filter add dev eth0_1 protocol ip parent 100: prio 1 handle 0xa003 fw classid 100:2
app: tc filter add dev eth0_1 protocol ip parent 100: prio 1 handle 0xc003 fw classid 100:2
app: tc filter add dev eth0_1 protocol ip parent 100: prio 1 handle 0xe003 fw classid 100:2
app: tc filter add dev eth0_1 protocol ip parent 100: prio 1 handle 2 fw classid 100:3
app: tc filter add dev eth0_1 protocol ip parent 100: prio 1 handle 0x2002 fw classid 100:3
app: tc filter add dev eth0_1 protocol ip parent 100: prio 1 handle 0x4002 fw classid 100:3
app: tc filter add dev eth0_1 protocol ip parent 100: prio 1 handle 0x6002 fw classid 100:3
app: tc filter add dev eth0_1 protocol ip parent 100: prio 1 handle 0x8002 fw classid 100:3
app: tc filter add dev eth0_1 protocol ip parent 100: prio 1 handle 0xa002 fw classid 100:3
app: tc filter add dev eth0_1 protocol ip parent 100: prio 1 handle 0xc002 fw classid 100:3
app: tc filter add dev eth0_1 protocol ip parent 100: prio 1 handle 0xe002 fw classid 100:3
app: tc filter add dev eth0_1 protocol ip parent 100: prio 1 handle 1 fw classid 100:4
app: tc filter add dev eth0_1 protocol ip parent 100: prio 1 handle 0x2001 fw classid 100:4
app: tc filter add dev eth0_1 protocol ip parent 100: prio 1 handle 0x4001 fw classid 100:4
app: tc filter add dev eth0_1 protocol ip parent 100: prio 1 handle 0x6001 fw classid 100:4
app: tc filter add dev eth0_1 protocol ip parent 100: prio 1 handle 0x8001 fw classid 100:4
app: tc filter add dev eth0_1 protocol ip parent 100: prio 1 handle 0xa001 fw classid 100:4
app: tc filter add dev eth0_1 protocol ip parent 100: prio 1 handle 0xc001 fw classid 100:4
app: tc filter add dev eth0_1 protocol ip parent 100: prio 1 handle 0xe001 fw classid 100:4
有几个问题请教,
1,“.....htb r2q 50 default 1” 中的"r2q 50"是什么意思?在网上面搜索了一半天我也没有找到想要的答案。
2,“priomap 3 3 2 2 1 1 0 0 3 3 3 3 3 3 3 3”那怕是我把《Linux高级路由与流量控制》看了快10遍了,这句到底怎么使用我还是不甚了了,请高手详细解释一下,最好给点例子,谢谢。
|
查 看 一下 周围 相干 的 知识点,
出错 的 时候 有联系.
|
不清楚,帮up