wugz 发表于 2005-5-25 12:21:31

tc qdisc add dev eth0 root handle 1: htb r2q 1tc class add dev eth0 parent 1: classid 1:1 htb rate 2048kbit burst 20ktc class add dev eth0 parent 1: classid 1:2 htb rate 2048kbit burst 20ktc class add dev eth0 parent 1: classid 1:3 htb rate 2048kbit burst 20ktc class add dev eth0 parent 1: classid 1:4 htb rate 2048kbit burst 20ktc qdisc add dev eth0 parent 1:1 handle 10: sfq perturb 10tc qdisc add dev eth0 parent 1:2 handle 10: sfq perturb 10 tc qdisc add dev eth0 parent 1:3 handle 10: sfq perturb 10 tc qdisc add dev eth0 parent 1:4 handle 10: sfq perturb 10 tc filter add dev eth0 parent 1: protocol ip prio 16 u32 match ip dst 192.168.8.0/24 flowid 1:1tc filter add dev eth0 parent 1: protocol ip prio 16 u32 match ip dst 192.168.5.0/24 flowid 1:2tc filter add dev eth0 parent 1: protocol ip prio 16 u32 match ip dst 192.168.4.0/24 flowid 1:3tc filter add dev eth0 parent 1: protocol ip prio 16 u32 match ip dst 192.168.7.0/24 flowid 1:4我的总带宽10M,分四个ip段,各段共享2M带宽,互不影响,网段内其他ip段在黑名单中禁止。看看对不对?
页: [1]
查看完整版本: CL v2.24 分ip段共享带宽