* htb upload
@ 2004-10-19 22:11 Adrian C.
2004-10-20 7:25 ` Ralica Kirilova
0 siblings, 1 reply; 4+ messages in thread
From: Adrian C. @ 2004-10-19 22:11 UTC (permalink / raw)
To: linux-admin
Hello.
I'm trying to shape my upload using htb but it seems no matter what i
try it will only shape download.
----
tc qdisc del dev eth2 root handle 1:0 htb
tc qdisc add dev eth2 root handle 1:0 htb
tc class add dev eth2 parent 1:0 classid 1:1 htb rate 600kbit
tc class add dev eth2 parent 1:1 classid 1:2 htb rate 300kbit
tc class add dev eth2 parent 1:2 classid 1:21 htb rate 450kbit ceil 590kbit
tc class add dev eth2 parent 1:2 classid 1:22 htb rate 250kbit ceil 290kbit
tc qdisc add dev eth2 parent 1:21 handle 210: pfifo limit 10
tc qdisc add dev eth2 parent 1:22 handle 220: pfifo limit 10
tc filter add dev eth2 parent 1:0 protocol ip prio 1 u32 match ip src
192.168.22.222 flowid 1:21
tc filter add dev eth2 parent 1:0 protocol ip prio 1 u32 match ip src
192.168.22.223 flowid 1:22
-----
I have tried it with dst instead of src and both src and dst. Upload
doesn't seem to bother. eth2 is my WAN.
What am i doing wrong?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: htb upload
2004-10-19 22:11 htb upload Adrian C.
@ 2004-10-20 7:25 ` Ralica Kirilova
2004-10-20 8:10 ` Adrian C.
0 siblings, 1 reply; 4+ messages in thread
From: Ralica Kirilova @ 2004-10-20 7:25 UTC (permalink / raw)
To: linux-admin
> Hello.
> I'm trying to shape my upload using htb but it seems no matter what i
> try it will only shape download.
Hi,
I'm not sure that I can help (I'm pretty sure you know what I want to say),
but anyway ...
This machine must be a router, so it must have 2 ethernet cards. With htb
you shape download on the inside interface and upload on the outside
interface (outside is to your provider)
Sorry if this doesen't help.
And sorry for my bad english :)
Bye
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: htb upload
2004-10-20 7:25 ` Ralica Kirilova
@ 2004-10-20 8:10 ` Adrian C.
[not found] ` <20041020094447.GO24142@fede2.tumsan.fi>
0 siblings, 1 reply; 4+ messages in thread
From: Adrian C. @ 2004-10-20 8:10 UTC (permalink / raw)
To: Ralica Kirilova; +Cc: linux-admin
Thank you for your reply, but i already said that eth2 is my outside card.
On Wed, 20 Oct 2004 10:25:52 +0300, Ralica Kirilova
<larry@podovinastilki.com> wrote:
>
> > Hello.
> > I'm trying to shape my upload using htb but it seems no matter what i
> > try it will only shape download.
>
> Hi,
> I'm not sure that I can help (I'm pretty sure you know what I want to say),
> but anyway ...
> This machine must be a router, so it must have 2 ethernet cards. With htb
> you shape download on the inside interface and upload on the outside
> interface (outside is to your provider)
>
> Sorry if this doesen't help.
> And sorry for my bad english :)
> Bye
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: htb upload
[not found] ` <20041020094447.GO24142@fede2.tumsan.fi>
@ 2004-10-20 9:50 ` Adrian C.
0 siblings, 0 replies; 4+ messages in thread
From: Adrian C. @ 2004-10-20 9:50 UTC (permalink / raw)
To: linux-admin
It will shape download if i put in eth0 (my LAN card).
On Wed, 20 Oct 2004 12:44:47 +0300, Fred Orisp‰‰ <freddie@tumsan.fi> wrote:
> if you make the same config again, but replace eth2 with your internal
> card, what happens?
> ie have two running tc setups, one for your internal card, one for the
> external.
> usually i only attach tc to one interface, but then again i dont use
> HTB, maybe it behaves differently.
>
>
>
>
> On 2004.10.20 11:10, Adrian C. wrote:
> > Thank you for your reply, but i already said that eth2 is my outside
> > card.
> >
> >
> > On Wed, 20 Oct 2004 10:25:52 +0300, Ralica Kirilova
> > <larry@podovinastilki.com> wrote:
> > >
> > > > Hello.
> > > > I'm trying to shape my upload using htb but it seems no matter
> > what i
> > > > try it will only shape download.
> > >
> > > Hi,
> > > I'm not sure that I can help (I'm pretty sure you know what I want
> > to say),
> > > but anyway ...
> > > This machine must be a router, so it must have 2 ethernet cards.
> > With htb
> > > you shape download on the inside interface and upload on the outside
> > > interface (outside is to your provider)
> > >
> > > Sorry if this doesen't help.
> > > And sorry for my bad english :)
> > > Bye
> > >
> > > -
> > > To unsubscribe from this list: send the line "unsubscribe
> > linux-admin" in
> > > the body of a message to majordomo@vger.kernel.org
> > > More majordomo info at http://vger.kernel.org/majordomo-info.html
> > >
> > -
>
>
> > To unsubscribe from this list: send the line "unsubscribe linux-
> > admin"
> > in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at http://vger.kernel.org/majordomo-info.html
> >
> >
>
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-10-20 9:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-19 22:11 htb upload Adrian C.
2004-10-20 7:25 ` Ralica Kirilova
2004-10-20 8:10 ` Adrian C.
[not found] ` <20041020094447.GO24142@fede2.tumsan.fi>
2004-10-20 9:50 ` Adrian C.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).