[LARTC] Bandwidth Allocation...

Gerry Weaver gerryw@it-procorp.com
Sun, 23 May 2004 21:37:07 -0500


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