Re: [LARTC] cbq ip range?

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



on 2/7/01 9:47 AM, billy at billy@xxxxxxxxxxxxxxxxxxx wrote:

> OK, finally I have made cbq run !
> now I would like to know if it is posible to limit a range of IP to a speed.
> something like this :
> 
> from 192.168.1.1 to 192.168.1.21 limit to 128K
> 
> I don't whant to limit each IP to 128K, what I would like to do is limit all
> 20 IP to have a max of 128K.
> 
> Is it posible? 
> 
> 
> 
> 
> 
> _______________________________________________
> LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO:
> http://ds9a.nl/2.4Routing/
You could use this to throttle a whole subnet to 128kbit.....I suppose you
could use a different netmask to tighten the range ....

tc qdisc add dev eth1 root handle 1: cbq bandwidth 10Mbit cell 8 avpkt 1000
mpu 64
tc class add dev eth1 parent 1:0 classid 1:1 cbq bandwidth 10Mbit rate
10Mbit allot 1514 cell 8 weight 1Mbit prio 8 maxburst 20 avpkt 1000
tc class add dev eth1 parent 1:0 classid 1:2 cbq bandwidth 10Mbit rate
128Kbit allot 1514 cell 8 weight 12Kbit prio 3 maxburst 20 avpkt 1000
bounded
ip ro chg 192.168.1.0/24 via 192.168.1.254 realm 16
tc filter add dev eth1 parent 1:0 protocol ip prio 100 route to 16 flowid
1:2
echo "THROTTLE dev eth1 128Kbit"

djr





[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux