Re: Bandwidth Allocation...

Linux Advanced Routing and Traffic Control

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

 



Hi,

Sorry, I forgot something. I didn't add the "ceil" parameter.

tc qdisc add dev eth0 root handle 1: htb

tc class add dev eth0 parent 1: classid 1:1 htb rate <your total bandwidth>

tc class add dev eth0 parent 1:1 classid 1:10 htb rate 128kbit ceil <your total bandwidth>
tc class add dev eth0 parent 1:1 classid 1:11 htb rate 128kbit ceil <your total bandwidth>


tc filter add dev eth0 parent 1:1 protocol ip prio 1 u32 \
match ip src 192.168.1.1 flowid 1:10
tc filter add dev eth0 parent 1:1 protocol ip prio 1 u32 \
match ip src 192.168.1.2 flowid 1:11

Thanks,
Gerry

_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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