Skip to contentSkip to conversation

filter problems with htb + sfq, with script

LARTC tomas bonnedahl 1 participant 2 messages Jul 15, 2002

lore
Share & tools
lore
#0 lore raw

<html><div style='background-color:'><DIV>i forgot to attach the script to my previous message, im sorry for the inconvenience.</DIV>
<DIV>&nbsp;</DIV>
<DIV>- tomas bonnedahl</DIV></div><br clear=all><hr>Med MSN Foto kan du enkelt dela med dig av dina fotografier och beställa kopior: <a href='http://g.msn.com/1HM1SVSE/c156??PID403'>Klicka här</a><br></html>
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw

i forgot to attach the script to my previous message, im sorry for the inconvenience.   - tomas bonnedahlSkicka snabbmeddelanden till dina vänner online med MSN Messenger: Klicka här

tc qdisc del root dev eth1

tc qdisc add dev eth1 root handle 1:0 htb default 222

tc class add dev eth1 parent 1:0 classid 1:1 htb rate 4Mbit ceil 4Mbit

tc class add dev eth1 parent 1:1 classid 1:10 htb rate 2Mbit ceil 2Mbit tc class add dev eth1 parent 1:1 classid 1:20 htb rate 2Mbit ceil 2Mbit

tc class add dev eth1 parent 1:20 classid 1:210 htb rate 512kbit ceil 2Mbit tc class add dev eth1 parent 1:20 classid 1:220 htb rate 1536kbit ceil 1536kbit

tc class add dev eth1 parent 1:220 classid 1:221 htb rate 307kbit ceil 1536kbit
tc class add dev eth1 parent 1:220 classid 1:222 htb rate 1229kbit ceil 1536kbit

tc qdisc add dev eth1 parent 1:210 sfq perturb 10
tc qdisc add dev eth1 parent 1:221 sfq perturb 10
tc qdisc add dev eth1 parent 1:222 sfq perturb 10

tc filter add dev eth1 protocol ip parent 1:0 prio 1 u32 match ip dst 172.16.1.0/24 flowid 1:10
tc filter add dev eth1 protocol ip parent 1:0 prio 1 u32 match ip dst 10.47.17.23/32 flowid 1:210
tc filter add dev eth1 protocol ip parent 1:1 prio 1 u32 match ip dst 10.46.23.0/24 flowid 1:221
tc filter add dev eth1 protocol ip parent 1:1 prio 2 u32 match ip dport 0x19 0xffff flowid 1:221
tc filter add dev eth1 protocol ip parent 1:1 prio 2 u32 match ip dport 0x6e 0xffff flowid 1:221