Skip to contentSkip to conversation

htb upload

DISCUSSION Adrian C. 2 participants 4 messages Oct 19, 2004 – Oct 20, 2004 1 message not in the archive

lore
Share & tools
lore

Adrian C.

author
#0 lore raw

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?

#1 lore raw
Quoted 4 lines

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

author
#2 lore raw

Thank you for your reply, but i already said that eth2 is my outside card.

Quoted 21 lines · Ralica Kirilova
Quoted 4 lines

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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

author
#4 lore raw
In reply to a message not in the archive

It will shape download if i put in eth0 (my LAN card).

Quoted 10 lines · Fred Orisp��

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.

Quoted 43 lines
Quoted 41 lines · Adrian C.

Thank you for your reply, but i already said that eth2 is my outside card.

Quoted 3 lines · Ralica Kirilova
Quoted 3 lines

Hello.
I'm trying to shape my upload using htb but it seems no matter

what i

Quoted 4 lines
Quoted 1 line

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),

Quoted 2 lines

but anyway ...
This machine must be a router, so it must have 2 ethernet cards.

With htb

Quoted 9 lines

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

Quoted 3 lines

the body of a message to [email protected]
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 [email protected]
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html