heja >tc class add dev eth1 parent 1:1 classid 1:2 htb rate 15kbit ceil 115kbit prio 1 >tc filter add dev eth1 protocol ip parent 1:0 u32 match ip dport 22 0xfff flowid 1:2
>tc qdisc add dev eth1 parent 1:2 handle 2:0 sfq perturb 30 >eth1 jest interfejsem podł?czonym do DSLa. Nie kolejkowałem czyli rozumiem ze przy moich ustawieniach podzialu lacza ....: --- #!/bin/bash tc qdisc del root dev eth1 tc qdisc del root dev eth0 tc qdisc add dev eth0 root handle 1:0 htb #siec lokalna 100 mbit tc class add dev eth0 parent 1:0 classid 1:1 htb rate 99000kbit ceil 99000kbit #podzial lacza dsl 512kbit tc class add dev eth0 parent 1:1 classid 1:2 htb rate 512kbit ceil 512kbit tc class add dev eth0 parent 1:1 classid 1:3 htb rate 98000kbit ceil 98000kbit #rozdzielanie dla poszczegolnych ip w sieci tc class add dev eth0 parent 1:2 classid 1:4 htb rate 84kbit ceil 504kbit prio 2 tc class add dev eth0 parent 1:2 classid 1:5 htb rate 84kbit ceil 504kbit prio 2 tc class add dev eth0 parent 1:2 classid 1:6 htb rate 84kbit ceil 504kbit prio 2 tc class add dev eth0 parent 1:2 classid 1:7 htb rate 84kbit ceil 504kbit prio 2 tc class add dev eth0 parent 1:2 classid 1:8 htb rate 84kbit ceil 504kbit prio 2 tc class add dev eth0 parent 1:2 classid 1:9 htb rate 84kbit ceil 504kbit prio 2 tc class add dev eth0 parent 1:2 classid 1:10 htb rate 84kbit ceil 504kbit prio 1 #filtry tc filter add dev eth0 protocol ip preference 1 parent 1:0 u32 match ip src 192.168.1.1 flowid 1:3 tc filter add dev eth0 protocol ip preference 2 parent 1:0 u32 match ip dst 192.168.1.3 flowid 1:4 tc filter add dev eth0 protocol ip preference 2 parent 1:0 u32 match ip dst 192.168.1.15 flowid 1:5 tc filter add dev eth0 protocol ip preference 2 parent 1:0 u32 match ip dst 192.168.1.5 flowid 1:6 tc filter add dev eth0 protocol ip preference 2 parent 1:0 u32 match ip dst 192.168.1.6 flowid 1:7 tc filter add dev eth0 protocol ip preference 2 parent 1:0 u32 match ip dst 192.168.1.7 flowid 1:8 tc filter add dev eth0 protocol ip preference 2 parent 1:0 u32 match ip dst 192.168.1.8 flowid 1:9 tc filter add dev eth0 protocol ip preference 2 parent 1:0 u32 match ip dst 192.168.1.2 flowid 1:10 #sprawiedliwe udostepnienie lacza tc qdisc add dev eth0 parent 1:3 handle 3:0 sfq perturb 10 tc qdisc add dev eth0 parent 1:4 handle 4:0 sfq perturb 10 tc qdisc add dev eth0 parent 1:5 handle 5:0 sfq perturb 10 tc qdisc add dev eth0 parent 1:6 handle 6:0 sfq perturb 10 tc qdisc add dev eth0 parent 1:7 handle 7:0 sfq perturb 10 tc qdisc add dev eth0 parent 1:8 handle 8:0 sfq perturb 10 tc qdisc add dev eth0 parent 1:9 handle 9:0 sfq perturb 10 tc qdisc add dev eth0 parent 1:10 handle 10:0 sfq perturb 10 --- dodaje sobie ladnie dla eth1 aby laczac sie po ssh do innego serwa w necie daje: --- #dla eth1 tc qdisc add dev eth1 root handle 1:0 htb tc class add dev eth1 parent 1:1 classid 1:2 htb rate 15kbit ceil 115kbit prio 1 tc filter add dev eth1 protocol ip parent 1:0 u32 match ip dport 22 0xfff flowid 1:2 tc qdisc add dev eth1 parent 1:2 handle 2:0 sfq perturb 30 --- ??? nie wiem czy w dobre classy to wpada heh jeszcze sie w tym nieco gubie :P i jeszcze jedno pytanie moze wiesz jak zapisac jak to wczesniej kolega pisal zeby nie dawac: preference a dac ze gdy zrodlem src jest 192.168.1.0/24 bylo dst 192.168.1.1 zeby kumal ladnie ze to co idzie z lokalnej ma miec 100 mbit na serwie 192.168.1.1 bo w tym momencie mam po preference 1 ale chce to zrobic ladnie > zalozenie jest takie jak wlasnie opisales ale... > wlasnie doczytalem zeby dac pomiedzy protocol ip a parent wpis > preference 1 dla 1:3 czyli bedzie kumac co idzie po lokalce a dla reszty > preference 2 czyli co z netu i rzeczywiscie dziala :) >Znaczy dziala bo dales "preference" ale on nie kuma ze to po lokalce tylko >preferencje ma taka zeby tam to wposcic. Zeby zroic ladnie z rozruznieniem >ze to lokal to musisz zrobi po src/dst - jak pisalem poprzednio >>W filtrach musisz dac ze wszystko co idzie do dst >>192.168.1.0/24 i ma src 192.168.1.1 idzie do kolejki duzej wlasnie nie wiem jak to zapisac ... w tc .........??? pozdr bieniu

