[ SlackList ] [ WkikiSlack ]




Re: htb i podzial wedlug uslug

From: Przemysław Śmiały <xtc_malpka_lancaster.one.pl>
Date: Wed Nov 03 2004 - 22:20:01 CET

>tc qdisc del root dev br0
>tc qdisc add dev br0 root handle 1:0 htb default 4
>tc class add dev br0 parent 1:0 classid 1:1 htb rate >90000kbit ceil
>90000kbit
>tc class add dev br0 parent 1:1 classid 1:2 htb rate >700kbit ceil 900kbit
>tc class add dev br0 parent 1:1 classid 1:3 htb rate >700kbit ceil 700kbit
>tc class add dev br0 parent 1:1 classid 1:4 htb rate >50kbit ceil 500kbit
>tc filter add dev br0 protocol ip parent 1:0 u32 match ip >src 192.168.1.1
>flowid 1:1
>tc filter add dev br0 protocol ip parent 1:0 u32 match ip >sport 80 0xffff
>flowid 1:2
>tc filter add dev br0 protocol ip parent 1:0 u32 match ip >sport 22 0xffff
>flowid 1:3
>tc qdisc add dev br0 parent 1:2 handle 2:0 sfq perturb >10
>tc qdisc add dev br0 parent 1:3 handle 3:0 sfq perturb >10
>tc qdisc add dev br0 parent 1:4 handle 4:0 sfq perturb >10

>Grabek

Cześć!
Ciężko powiedzieć czy regółki są dobrze dobrane, to zależy od tego jaką masz
sieć i jak ci jadą userzy. Ja osobiście prawie pół rou dopracowywałem
kolejkowanie u siebie, a i teraz mam nowe pomysły na skolejkowanie ruchu i
mam zamiar się za to zabrać. Jeśli chcesz zobaczyć czy pakiety wpadają do
klas to:
watch tc -s qdisc show dew br0
Można z tego zrobić statystyki w mrtg.
Ja skolejkowałem od strony sieci po adresach IP a od strony netu po
usługach. Mogę przesłać konfig jak chcesz
Jka ktoś jeszcze reflektuje to mogę na listę.

Pozdrv
Received on Wed Nov 3 22:20:04 2004

This archive was generated by hypermail 2.1.8. Wyprawa Shackleton 2014