* [LARTC] htb qdisc on top of htb
@ 2002-08-01 15:27 Mihai RUSU
2002-08-01 15:33 ` Mihai RUSU
0 siblings, 1 reply; 2+ messages in thread
From: Mihai RUSU @ 2002-08-01 15:27 UTC (permalink / raw)
To: lartc
Hi
I tryed to use a htb qdisc/class on top of another htb qdisc/class as you
can see bellow:
#!/bin/bash
tc="/sbin/tc"
$tc qdisc del dev eth0 root
$tc qdisc add dev eth0 root handle 1: htb default 40
$tc class add dev eth0 parent 1: classid 1:1 htb rate 100Mbit burst 15k
$tc class add dev eth0 parent 1:1 classid 1:10 htb rate 50Mbit burst 15k
$tc class add dev eth0 parent 1:1 classid 1:20 htb rate 256Kbit burst 15k
$tc class add dev eth0 parent 1:1 classid 1:30 htb rate 50Mbit ceil 100Mbit burst 15k
$tc qdisc add dev eth0 parent 1:10 handle 10: htb default 20
$tc class add dev eth0 parent 10: classid 10:1 htb rate 50Mbit burst 15k
$tc class add dev eth0 parent 10:1 classid 10:10 htb rate 256Kbit
$tc class add dev eth0 parent 10:1 classid 10:20 htb rate 1Mbit ceil 50Mbit
$tc filter add dev eth0 parent 1: protocol ip u32 match ip dst 1.2.3.4/32 flowid 10:10
The problem is I dont limited with 256 Kbit downloading from 1.2.3.4. If I
change flowid from 10:10 to 1:20 I do get shaped so its not from a filter
problem. Is it possible to use htb qdisc on top of htb qdisc ?
Thanks
PS: I am using last htb2
----------------------------
Mihai RUSU
Disclaimer: Any views or opinions presented within this e-mail are solely
those of the author and do not necessarily represent those of any company,
unless otherwise specifically stated.
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [LARTC] htb qdisc on top of htb
2002-08-01 15:27 [LARTC] htb qdisc on top of htb Mihai RUSU
@ 2002-08-01 15:33 ` Mihai RUSU
0 siblings, 0 replies; 2+ messages in thread
From: Mihai RUSU @ 2002-08-01 15:33 UTC (permalink / raw)
To: lartc
Heh I solved the "problem" with a litle filters modification, see below:
On Thu, 1 Aug 2002, Mihai RUSU wrote:
> Hi
>
> I tryed to use a htb qdisc/class on top of another htb qdisc/class as you
> can see bellow:
> #!/bin/bash
>
> tc="/sbin/tc"
>
> $tc qdisc del dev eth0 root
> $tc qdisc add dev eth0 root handle 1: htb default 40
> $tc class add dev eth0 parent 1: classid 1:1 htb rate 100Mbit burst 15k
>
> $tc class add dev eth0 parent 1:1 classid 1:10 htb rate 50Mbit burst 15k
> $tc class add dev eth0 parent 1:1 classid 1:20 htb rate 256Kbit burst 15k
> $tc class add dev eth0 parent 1:1 classid 1:30 htb rate 50Mbit ceil 100Mbit burst 15k
>
> $tc qdisc add dev eth0 parent 1:10 handle 10: htb default 20
> $tc class add dev eth0 parent 10: classid 10:1 htb rate 50Mbit burst 15k
>
> $tc class add dev eth0 parent 10:1 classid 10:10 htb rate 256Kbit
> $tc class add dev eth0 parent 10:1 classid 10:20 htb rate 1Mbit ceil 50Mbit
>
> $tc filter add dev eth0 parent 1: protocol ip u32 match ip dst 1.2.3.4/32 flowid 10:10
>
replaced the line above with:
$tc filter add dev eth0 parent 1: protocol ip u32 match ip dst 0.0.0.0/0 flowid 1:10
$tc filter add dev eth0 parent 10: protocol ip u32 match ip dst 1.2.3.4/32 flowid 10:10
----------------------------
Mihai RUSU
Disclaimer: Any views or opinions presented within this e-mail are solely
those of the author and do not necessarily represent those of any company,
unless otherwise specifically stated.
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-08-01 15:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-01 15:27 [LARTC] htb qdisc on top of htb Mihai RUSU
2002-08-01 15:33 ` Mihai RUSU
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.