Temat: qos nie działa prawidłowo
Witam,
Proszę o pomoc. Zainstalowałem qos-scripts bo chciałem ograniczyć pasmo do Internetu dla jednego hosta.
Poniżej wycinek z konfiguracji.
root@xxx:~# cat /etc/config/qos
config classify
option comment 'user'
option srchost '192.168.2.10'
option target 'X1'
config class 'X1'
option packetsize '1500'
option packetdelay '100'
option avgrate '1'
option limitrate '50'
Zauważyłem, że jak host pobiera dane to zabiera całe pasmo do Internetu a chciałem aby było to maksymalnie 50 %.
Może ktoś podpowiedzieć gdzie szukać przyczyny?
Wydaje mi się, że coś nie tak jest z samym pakietem. Poniżej przykłady wyników poleceń.
root@cyb:~# /etc/init.d/qos reload
/usr/lib/qos/generate.sh: line 1: arithmetic syntax error
root@cyb:~# /etc/init.d/qos restart
Command failed: Not found
/usr/lib/qos/generate.sh: line 1: arithmetic syntax error
/usr/lib/qos/generate.sh: line 1: arithmetic syntax error
root@cyb:~# /usr/lib/qos/generate.sh interface wan
modprobe -r ifb >&- 2>&-
modprobe ifb numifbs=1 >&- 2>&-
modprobe cls_u32 >&- 2>&-
modprobe em_u32 >&- 2>&-
modprobe act_connmark >&- 2>&-
modprobe act_mirred >&- 2>&-
modprobe sch_ingress >&- 2>&-
modprobe cls_fw >&- 2>&-
modprobe sch_hfsc >&- 2>&-
ifconfig eth0.2 up >&- 2>&-
tc qdisc del dev eth0.2 root >&- 2>&-
tc qdisc add dev eth0.2 root handle 1: hfsc default 30
tc class add dev eth0.2 parent 1: classid 1:1 hfsc sc rate 900kbit ul rate 900kbit
tc class add dev eth0.2 parent 1:1 classid 1:10 hfsc rt m1 525kbit d 868us m2 90kbit ls m1 525kbit d 868us m2 500kbit ul rate 900kbit
......