• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

Netzwerk bremse

Lego

Newbie
Hallo.

Ich hab keine ahnung ob das hierrein gehört aber ich wusst nicht wo sonst.

hat jemand ne ahnung wie ich das machen kann das unter linux die netzwerk karte (eth1) nur eine zugriffsgeschwindigkeit von 25 KB/s zuläst? oder die netzwerk brücke oder so? weil ich hab 2 lankarten und die eine muss darf die inet daten nur so langsam ausgeben. Weil die inet leitung ist immer überlastet und somit brauch ich das damit ich ein paar KB/s in reserver hab.

Der Computer ist nicht der router sondern nur mein fileserver. und der soll noch als bremse genutzt werden.

Also wen einer ne idee hat wie das geht bitte sagen.
 

oc2pus

Ultimate Guru
http://www.metamorpher.de/fairnat/
für kleine Home-netzwerke sehr gut geeignet als Traffic-Shaper ;)

oder
http://www.digriz.org.uk/jdg-qos-script/
sehr gut dokumentiert und funktioniert perfekt ;)
 
OP
L

Lego

Newbie
Hi

ich hab mal da mir die tips etwas schwirig waren einfach mal in yast nach shaper gesucht und den wondershaper installiert.

hab auch die configurationsdatei geändert.
Code:
## Path:        Network/Wondershaper
## Description: Quality Of Service configuration
## ServiceRestart: wondershaper
## Type:        string
#
# This variable contains the device which should be
# shaped.
#
WSHAPER_DEV="eth1"

## Type:        integer
#
# The download speed of your connection in kilobits.
# Calculate like described in the README.
#
WSHAPER_DOWNLINK="150"

## Type:        integer
#
# The upload speed of your connection in kilobits.
# Calculate like described in the README.
#
WSHAPER_UPLINK="150"

## Type:        integer
#
# Low priority source hosts. You can specify a single
# host or a whole netmask.
#
WSHAPER_PRIOHOSTSRC=""

## Type:        ip
#
# Low priority destination Hosts. You can specify a single
# host or a whole netmask.
#
WSHAPER_PRIOHOSTDST=""

## Type:        ip
#
# Low priority source ports on this machine.
#
WSHAPER_PRIOPORTSRC=""

## Type:        ip
#
# Low priority destination ports on this machine.
#
WSHAPER_PRIOPORTDST=""

## Type:        boolean
## Default:     false
#
# This variable controls the amount of output of
# /etc/init.d/wondershaper status.
# Possible values are lowercase "true" or "false".
#
WSHAPER_VERBOSE_STATUS="false"

aber trotzdem kommt ein fehler beim starten

Code:
SuSE:/etc/init.d # ./wondershaper start

: command not founde 10:
: command not founde 17:
: command not founde 24:
: command not founde 31:
: command not founde 38:
: command not founde 44:
: command not founde 50:
Starting wondershaper                                                failed
: command not foundline 10:
: command not foundline 17:
: command not foundline 24:
: command not foundline 31:
: command not foundline 38:
: command not foundline 44:
: command not foundline 50:
"annot find device "eth1
Illegal "rate"
Illegal "rate"
/10: syntax error: operand expected (error token is "/10")
/10: syntax error: operand expected (error token is "/10")
"annot find device "eth1
"annot find device "eth1
"annot find device "eth1
"annot find device "eth1
"annot find device "eth1
"annot find device "eth1
"annot find device "eth1
"annot find device "eth1
Illegal "rate"
Illegal "police"

was muss ich da anders machen?

Und ich hab eine karte die eth1 heist
Code:
eth1      Link encap:Ethernet  HWaddr 00:40:F4:A6:68:1C
          inet addr:192.168.1.14  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::240:f4ff:fea6:681c/64 Scope:Link
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:38 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:5 Base address:0x1000

Oder muss ich doch die anderren script nehmen die mir vorgeschlagen worden?


Edit: und ist es egal wan ich die netzwerk brücke installiere?
 
Oben