- 论坛徽章:
- 0
|
tc qdisc del dev eth1 root
tc qdisc add dev eth1 root handle 1: cbq bandwidth 10mbit avpkt 1000
tc class add dev eth1 parent 1: classid 1:1 cbq bandwidth 10mbit rate 5mbit maxburst 20 allot 1514 prio 0 avpkt 1000 weight 1mbit bounded isolated
tc class add dev eth1 parent 1: classid 1:2 cbq bandwidth 10mbit rate 1mbit maxburst 20 allot 1514 prio 8 avpkt 1000 weight 1mbit bounded
tc filter add dev eth1 parent 1:0 protocol ip prio 100 u32 match ip dst 192.168.11.80 classid 1:1
tc filter add dev eth1 parent 1:0 protocol ip prio 200 u32 match ip dst 192.168.11.0/24 classid 1:2
这个是我写的一个,本意是想既能保障192.168.0.80的速度在80不用的时候又不影响别的机器的使用,但是基本上没什么效果 |
|