Skip to contentSkip to conversation

Confusion...

LARTC Homer Parker 2 participants 3 messages Dec 24, 2002

lore
Share & tools
lore
#0 lore raw

Ok, I've went and confused myself again :( With the following rules:

tc qdisc add dev eth0 root handle 1: htb default 255 tc class add dev eth0 parent 1: classid 1:1 htb rate 10mbit

tc class add dev eth0 parent 1:1 classid 1:255 htb rate 64kbit ceil 128kbit

tc qdisc add dev eth0 parent 1:255 sfq perturb 10

tc class add dev eth0 parent 1:1 classid 1:10 htb rate 4Mbit ceil 5Mbit

tc class add dev eth0 parent 1:10 classid 1:11 htb rate 256kbit \
ceil 512kbit prio 1
tc class add dev eth0 parent 1:10 classid 1:12 htb rate 256kbit \
ceil 512kbit prio 2
tc class add dev eth0 parent 1:10 classid 1:13 htb rate 256kbit \
ceil 512kbit prio 3

tc qdisc add dev eth0 parent 1:11 handle 11: sfq perturb 10 tc qdisc add dev eth0 parent 1:12 handle 12: sfq perturb 10 tc qdisc add dev eth0 parent 1:13 handle 13: sfq perturb 10

tc filter add dev eth0 parent 1:10 protocol ip handle 11 fw classid 1:11 tc filter add dev eth0 parent 1:10 protocol ip handle 12 fw classid 1:12 tc filter add dev eth0 parent 1:10 protocol ip handle 13 fw classid 1:13

And the folowing fmarks:

pkts bytes target prot opt in out source
destination
33 3308 MARK udp -- eth1 * 0.0.0.0/0
0.0.0.0/0 MARK set 0xb

    0     0 MARK       tcp  --  eth1   *       0.0.0.0/0           

0.0.0.0/0 tcp dpt:53 MARK set 0xb
288 44869 MARK tcp -- eth1 * 0.0.0.0/0
0.0.0.0/0 tcp dpt:80 MARK set 0xc
1204 133K MARK ah -- eth1 * 0.0.0.0/0
0.0.0.0/0 MARK set 0xd

Why is it everything goes to 1:255, the default?

---
Homer Parker /"\ ASCII Ribbon Campaign
\ / No HTML/RTF in email
http://www.homershut.net x No Word docs in email
telnet://bbs.homershut.net / \ Respect for open standards

This e-mail message is 100% Microsoft free!

WARNING: THIS ACCOUNT BELONGS TO A RABID
ANTI-SPAMMER NET-NAZI DOT-COMMUNIST!!

#1 lore raw
Quoted 5 lines · Homer Parker

Ok, I've went and confused myself again :( With the following rules:

tc filter add dev eth0 parent 1:10 protocol ip handle 11 fw classid 1:11 tc filter add dev eth0 parent 1:10 protocol ip handle 12 fw classid 1:12 tc filter add dev eth0 parent 1:10 protocol ip handle 13 fw classid 1:13

Shouldn't this be parent 1: ?????

Stef

Signature · 8 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#2 lore raw
In reply to Homer Parker

On Tue, 24 Dec 2002 09:37:48 +0100 Stef Coene <[email protected]> wrote....

Quoted 9 lines · Homer Parker
Quoted 7 lines

Ok, I've went and confused myself again :( With the following rules:

tc filter add dev eth0 parent 1:10 protocol ip handle 11 fw classid 1:11 tc filter add dev eth0 parent 1:10 protocol ip handle 12 fw classid 1:12 tc filter add dev eth0 parent 1:10 protocol ip handle 13 fw classid 1:13

Shouldn't this be parent 1: ?????

That got it, thanks!

---
Homer Parker /"\ ASCII Ribbon Campaign
\ / No HTML/RTF in email
http://www.homershut.net x No Word docs in email
telnet://bbs.homershut.net / \ Respect for open standards

This e-mail message is 100% Microsoft free!

WARNING: THIS ACCOUNT BELONGS TO A RABID
ANTI-SPAMMER NET-NAZI DOT-COMMUNIST!!