|

楼主 |
发表于 2005-9-5 22:24:18
|
显示全部楼层
限制的设置
tc qdisc del dev ppp0 root
tc qdisc add dev ppp0 root handle 3: htb default 10
tc class add dev ppp0 parent 3: classid 3:1 htb rate 100Mbit ceil 100Mbit
tc class add dev ppp0 parent 3:1 classid 3:10 htb rate 100Mbit ceil 100Mbit prio 0
tc class add dev ppp0 parent 3:1 classid 3:20 htb rate 100kbit ceil 100kbit prio 3
tc qdisc add dev ppp0 parent 3:20 handle 20: sfq
tc filter add dev ppp0 parent 3: protocol ip prio 3 handle 2 fw classid 3:20
iptables -t mangle -A PREROUTING -s 192.168.0.55(被限制的内部网址) -j MARK --set-mark 0x2 |
|