Problem z tc i htb
susza001
susza001 w poczta.onet.pl
Śro, 31 Sie 2005, 15:59:45 CEST
Probuje podzielic jakos sensownie lacze gdyż sonsiad odkrył Bitcomet'a i zamula łącze...
znalazlem taki skrypcik przerobiłem i nie wiem o co chodzi...
#!/bin/bash
pwew=9500kbit
loncze=320kbit
eth0_max=9000kbit
user_min=40kbit
user_max=200kbit
sieciowka=eth0
komp1=......
#resetowanie ustawien
tc qdisc del root dev $sieciowka
#dodajemy obiekt htb
tc qdisc add dev $sieciowka root handle 1:0 htb
#klasa za przepustowosc sieci lokalnej
tc class add dev $sieciowka parent 1:0 classid 1:1 htb rate $pwew ceil $pwew
#klasy dla transmisji danych z internetu i z serwera
tc class add dev $sieciowka parent 1:1 classid 1:2 htb rate $loncze ceil $loncze
tc class add dev $sieciowka parent 1:1 classid 1:3 htb rate $eth0_max ceil $etho_max
#rozdzielamy uzytkownikow
tc class add dev $sieciowka parent 1:2 classid 1:4 htb rate $usr_min ceil $user_max
tc class add dev $sieciowka parent 1:2 classid 1:5 htb rate $usr_min ceil $user_max
tc class add dev $sieciowka parent 1:2 classid 1:6 htb rate $usr_min ceil $user_max
tc class add dev $sieciowka parent 1:2 classid 1:7 htb rate $usr_min ceil $user_max
tc class add dev $sieciowka parent 1:2 classid 1:8 htb rate $usr_min ceil $user_max
tc class add dev $sieciowka parent 1:2 classid 1:9 htb rate $usr_min ceil $user_max
tc class add dev $sieciowka parent 1:2 classid 1:10 htb rate $usr_min ceil $user_max
#ustalenie filtru ustalaj±cego transmisje z serwera
tc filter add dev $sieciowka protocol ip preference 1 parent 1:0 u32 match ip src $serwer flowid 1:3
#ustalenie filtru transmisji oddzielajoncych uzytkownikow
tc filter add dev $sieciowka protocol ip preference 2 parent 1:0 u32 match ip dst $komp1 flowid 1:4
tc filter add dev $sieciowka protocol ip preference 2 parent 1:0 u32 match ip dst $komp2 flowid 1:5
tc filter add dev $sieciowka protocol ip preference 2 parent 1:0 u32 match ip dst $komp3 flowid 1:6
tc filter add dev $sieciowka protocol ip preference 2 parent 1:0 u32 match ip dst $komp4 flowid 1:7
tc filter add dev $sieciowka protocol ip preference 2 parent 1:0 u32 match ip dst $komp5 flowid 1:8
tc filter add dev $sieciowka protocol ip preference 2 parent 1:0 u32 match ip dst $komp6 flowid 1:9
tc filter add dev $sieciowka protocol ip preference 2 parent 1:0 u32 match ip dst $komp7 flowid 1:10
#ustalenie rownego podzialu loncza z serwera
tc qdisc add dev $sieciowka parent 1:3 handle 3:0 sfq perturb 10
#i dla poszczegolnych uzytkownikow
tc qdisc add dev $sieciowka parent 1:4 handle 4:0 sfq perturb 10
tc qdisc add dev $sieciowka parent 1:5 handle 5:0 sfq perturb 10
tc qdisc add dev $sieciowka parent 1:6 handle 6:0 sfq perturb 10
tc qdisc add dev $sieciowka parent 1:7 handle 7:0 sfq perturb 10
tc qdisc add dev $sieciowka parent 1:8 handle 8:0 sfq perturb 10
tc qdisc add dev $sieciowka parent 1:9 handle 9:0 sfq perturb 10
tc qdisc add dev $sieciowka parent 1:10 handle 10:0 sfq perturb 10
Wyskakuje mnie cos takiego ........................
Command line is not complete. Try option "help"
Illegal "rate"
Usage: ... qdisc add ... htb [default N] [r2q N]
default minor id of class to which unclassified packets are sent {0}
r2q DRR quantums are computed as rate in Bps/r2q {10}
debug string of 16 numbers each 0-3 {0}
... class add ... htb rate R1 [burst B1] [mpu B] [overhead O]
[prio P] [slot S] [pslot PS]
[ceil R2] [cburst B2] [mtu MTU] [quantum Q]
rate rate allocated to this class (class can still borrow)
burst max bytes burst which can be accumulated during idle period {computed} mpu minimum packet size used in rate computations
overhead per-packet size overhead used in rate computations
ceil definite upper class rate (no borrows) {rate}
cburst burst but for ceil {computed}
mtu max packet size we create rate map for {1600}
prio priority of leaf; lower are served first {0}
quantum how much bytes to serve from leaf at once {use r2q}
TC HTB version 3.3
Illegal "rate"
Usage: ... qdisc add ... htb [default N] [r2q N]
default minor id of class to which unclassified packets are sent {0}
r2q DRR quantums are computed as rate in Bps/r2q {10}
debug string of 16 numbers each 0-3 {0}
... class add ... htb rate R1 [burst B1] [mpu B] [overhead O]
[prio P] [slot S] [pslot PS]
[ceil R2] [cburst B2] [mtu MTU] [quantum Q]
rate rate allocated to this class (class can still borrow)
burst max bytes burst which can be accumulated during idle period {computed} mpu minimum packet size used in rate computations
overhead per-packet size overhead used in rate computations
ceil definite upper class rate (no borrows) {rate}
cburst burst but for ceil {computed}
mtu max packet size we create rate map for {1600}
prio priority of leaf; lower are served first {0}
quantum how much bytes to serve from leaf at once {use r2q}
TC HTB version 3.3
Illegal "rate"
Usage: ... qdisc add ... htb [default N] [r2q N]
default minor id of class to which unclassified packets are sent {0}
r2q DRR quantums are computed as rate in Bps/r2q {10}
debug string of 16 numbers each 0-3 {0}
... class add ... htb rate R1 [burst B1] [mpu B] [overhead O]
[prio P] [slot S] [pslot PS]
[ceil R2] [cburst B2] [mtu MTU] [quantum Q]
rate rate allocated to this class (class can still borrow)
burst max bytes burst which can be accumulated during idle period {computed} mpu minimum packet size used in rate computations
overhead per-packet size overhead used in rate computations
ceil definite upper class rate (no borrows) {rate}
cburst burst but for ceil {computed}
mtu max packet size we create rate map for {1600}
prio priority of leaf; lower are served first {0}
quantum how much bytes to serve from leaf at once {use r2q}
TC HTB version 3.3
Illegal "rate"
Usage: ... qdisc add ... htb [default N] [r2q N]
default minor id of class to which unclassified packets are sent {0}
r2q DRR quantums are computed as rate in Bps/r2q {10}
debug string of 16 numbers each 0-3 {0}
... class add ... htb rate R1 [burst B1] [mpu B] [overhead O]
[prio P] [slot S] [pslot PS]
[ceil R2] [cburst B2] [mtu MTU] [quantum Q]
rate rate allocated to this class (class can still borrow)
burst max bytes burst which can be accumulated during idle period {computed} mpu minimum packet size used in rate computations
overhead per-packet size overhead used in rate computations
ceil definite upper class rate (no borrows) {rate}
cburst burst but for ceil {computed}
mtu max packet size we create rate map for {1600}
prio priority of leaf; lower are served first {0}
quantum how much bytes to serve from leaf at once {use r2q}
TC HTB version 3.3
Illegal "rate"
Usage: ... qdisc add ... htb [default N] [r2q N]
default minor id of class to which unclassified packets are sent {0}
r2q DRR quantums are computed as rate in Bps/r2q {10}
debug string of 16 numbers each 0-3 {0}
... class add ... htb rate R1 [burst B1] [mpu B] [overhead O]
[prio P] [slot S] [pslot PS]
[ceil R2] [cburst B2] [mtu MTU] [quantum Q]
rate rate allocated to this class (class can still borrow)
burst max bytes burst which can be accumulated during idle period {computed} mpu minimum packet size used in rate computations
overhead per-packet size overhead used in rate computations
ceil definite upper class rate (no borrows) {rate}
cburst burst but for ceil {computed}
mtu max packet size we create rate map for {1600}
prio priority of leaf; lower are served first {0}
quantum how much bytes to serve from leaf at once {use r2q}
TC HTB version 3.3
Illegal "rate"
Usage: ... qdisc add ... htb [default N] [r2q N]
default minor id of class to which unclassified packets are sent {0}
r2q DRR quantums are computed as rate in Bps/r2q {10}
debug string of 16 numbers each 0-3 {0}
... class add ... htb rate R1 [burst B1] [mpu B] [overhead O]
[prio P] [slot S] [pslot PS]
[ceil R2] [cburst B2] [mtu MTU] [quantum Q]
rate rate allocated to this class (class can still borrow)
burst max bytes burst which can be accumulated during idle period {computed} mpu minimum packet size used in rate computations
overhead per-packet size overhead used in rate computations
ceil definite upper class rate (no borrows) {rate}
cburst burst but for ceil {computed}
mtu max packet size we create rate map for {1600}
prio priority of leaf; lower are served first {0}
quantum how much bytes to serve from leaf at once {use r2q}
TC HTB version 3.3
Illegal "rate"
Usage: ... qdisc add ... htb [default N] [r2q N]
default minor id of class to which unclassified packets are sent {0}
r2q DRR quantums are computed as rate in Bps/r2q {10}
debug string of 16 numbers each 0-3 {0}
... class add ... htb rate R1 [burst B1] [mpu B] [overhead O]
[prio P] [slot S] [pslot PS]
[ceil R2] [cburst B2] [mtu MTU] [quantum Q]
rate rate allocated to this class (class can still borrow)
burst max bytes burst which can be accumulated during idle period {computed} mpu minimum packet size used in rate computations
overhead per-packet size overhead used in rate computations
ceil definite upper class rate (no borrows) {rate}
cburst burst but for ceil {computed}
mtu max packet size we create rate map for {1600}
prio priority of leaf; lower are served first {0}
quantum how much bytes to serve from leaf at once {use r2q}
TC HTB version 3.3
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
Jestem początkujący w tej kategori sportowej i za chiny nie mam pojeia o co chodzi...
Więcej informacji o liście dyskusyjnej pld-users-pl