Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
downloadrate drosseln
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
KeX
n00b
n00b


Joined: 22 Jul 2004
Posts: 38

PostPosted: Tue Aug 17, 2004 8:33 am    Post subject: downloadrate drosseln Reply with quote

Hallo

Ich hab zwar danach gesucht, aber nicht das gefunden, was ich benötige.

Iich habe einen router mit einem externen (eth0) und zwei internen (eth1, eht2) Interfaces. Über das eth0 bin ich über ein LAN an das Internet angeschlossen (10MBit Leitung) allerdings habe ich nur ca. 17GB Transfervolumen im Monat.

Ich möchte jetzt gerne die Downloadrate auf ca. 150kb/s drosseln (oder weniger), damit niemand auf die Idee kommt da grossartig daten aus dem netz zu saugen.

Ich hätte das jetzt mit 'tc' probiert, das funktioniert jedoch nicht.

Code:

EMIP_GW / # tc qdisc add dev eth1 root tbf rate 120kbit burst 1540 latency 50ms
RTNETLINK answers: Invalid argument


Fehlt mir da noch irgendwas ? bzw. erziehle ich damit überhaupt den gewünschen Effekt ?

Wär super wenn mir wer helfen könnte.

chris...
Back to top
View user's profile Send private message
manuels
Advocate
Advocate


Joined: 22 Nov 2003
Posts: 2146
Location: Europe

PostPosted: Tue Aug 17, 2004 11:27 am    Post subject: Reply with quote

also ich nutze nicht tbf sondern htb - den unterschied zwischen den ganzen dingern kenn ich aber nicht richtig.

versuch mal
Code:
tc qdisc add dev ppp0 root handle 1: htb default 42


das klappt bei mir.

hast du die kernel-einstellungen alle richtig??
Back to top
View user's profile Send private message
KeX
n00b
n00b


Joined: 22 Jul 2004
Posts: 38

PostPosted: Tue Aug 17, 2004 2:46 pm    Post subject: Reply with quote

hallo

also, wenn ich das probiere, krieg ich genau die selbe Fehlermeldung:
Code:
EMIP_GW / # tc qdisc add dev eth1 root handle 1: htb default 42
RTNETLINK answers: Invalid argument


Kerneleinstellungen bin ich mir nicht ganz sicher. Was brauche ich den alles ? bzw. wo kann ich nachlesen was ich alles benötige ?
hab das lartc howto vor mir, von http://www.lartc.org finde da jedoch auch nicht, welche Kerneloptionen genau ich benöteige. Kernel hab ich 2.6.7 drauf.


chris...
Back to top
View user's profile Send private message
manuels
Advocate
Advocate


Joined: 22 Nov 2003
Posts: 2146
Location: Europe

PostPosted: Tue Aug 17, 2004 3:03 pm    Post subject: Reply with quote

schau mal hier nach den kerneleinstellungen:
http://shorewall.net/traffic_shaping.htm
Back to top
View user's profile Send private message
Neo_0815
l33t
l33t


Joined: 24 Feb 2003
Posts: 815
Location: Leipzig

PostPosted: Tue Aug 17, 2004 3:49 pm    Post subject: Reply with quote

Und wenn du es mittels QoS löst?

MfG
_________________
[img:76661e22b8]http://www.biersekte.de/biersektebanner.gif[/img:76661e22b8]
Back to top
View user's profile Send private message
KeX
n00b
n00b


Joined: 22 Jul 2004
Posts: 38

PostPosted: Wed Aug 18, 2004 6:23 am    Post subject: Reply with quote

morgen

@Neo_0815: wie meinst du das ? Ich möchte eigentlich nur die download rate drosseln, damit ich mit dem volumen länger auskomme. dass das geht, weiss ich da ich im windoze ein prog habe, wo ich für jedes prog (bzw. thread) eine gewisse download/upload rate einstellen kann und die wird genau eingehalten. das muss ja für linux auch gehn ?

@manuels: ok, werd mal schauen. wenns nicht funktioniert, meld ich mich wieder.

/*EDIT*/
O.K, wenn man zu blöd is, das QoS im Kernel zu aktivieren .... --> neuer Versuch

chris...
Back to top
View user's profile Send private message
Neo_0815
l33t
l33t


Joined: 24 Feb 2003
Posts: 815
Location: Leipzig

PostPosted: Wed Aug 18, 2004 7:35 am    Post subject: Reply with quote

Na mit QoS kannst du genau das einstellen, abhängpg von Absender, Empfänger, Ack oder sonstigen Optionen der TCP Pakete und Co, port abhängige Einstellungen gehn auch ... mussu einfachmal gucken, gibt viele QoS Dokus.

MfG
_________________
[img:76661e22b8]http://www.biersekte.de/biersektebanner.gif[/img:76661e22b8]
Back to top
View user's profile Send private message
KeX
n00b
n00b


Joined: 22 Jul 2004
Posts: 38

PostPosted: Wed Aug 18, 2004 8:51 am    Post subject: Reply with quote

hallo

also, hab jetzt neuen Kernel gemacht, wo das mit QoS drinnen is, jetzt funktioniert das super : )
danke noch mal für den link.

chris...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum