|
ru.linux- RU.LINUX --------------------------------------------------------------------- From : Artem Babadzhanyants 2:5030/922 07 May 2002 23:39:42 To : All Subject : cbq -------------------------------------------------------------------------------- Вот понадобилось прикрыть некоторым товарищам канал (а то совсем уже задрали). имеем: kernel 2.4.17, Slackware 8.0 качаем iproute2.current и cbq.init, компилим все модули для cbq. Для начала не собрался iproute2 :-( === Cut === ll_proto.c:36: `ETH_P_ECHO' undeclared here (not in a function) ll_proto.c:36: initializer element is not constant ll_proto.c:36: (near initialization for `llproto_names[1].id') make[1]: *** [ll_proto.o] Error 1 make[1]: Leaving directory `/temp/iproute2/lib' make: *** [all] Error 2 root@info:/temp/iproute2# === Cut === Лезем в ll_proto.c и убиваем эту 36 строку нафиг :-) (а может в этом ошибка ?) :-o делаем опять make. iproute собрался. Теперь хочется, чтобы с вся POP почта с инета качалась не быстрее чем 1KB/sec для всей сети. Сервер 192.168.16.0/24 Имеем: Internet ---[ppp0 динамический ip,192.168.16.2 eth0] --- LocalNet в /etc/sysconfig/cbq запихиваем файлик: cbq-1280.eth0 === Cut === DEVICE=eth0,100Mbit,10Mbit RATE=8Kbit WEIGHT=1Kbit PRIO=5 RULE=:110,192.168.16.0/24 === Cut === запускаем cbq.init и получаем: root@info:/home/artem/a2# ./cbq.init start nocache RTNETLINK answers: Invalid argument хмм .. и как-то оно по факту не работает :-(( вотс. Help pls ! === Cut === root@info:/home/artem/a2# ./cbq.init stats ### eth0: queueing disciplines qdisc tbf 1280: rate 8Kbit burst 10Kb lat 6.1s Sent 0 bytes 0 pkts (dropped 0, overlimits 0) qdisc cbq 1: rate 100Mbit (bounded,isolated) prio no-transmit Sent 149668 bytes 236 pkts (dropped 0, overlimits 0) borrowed 0 overactions 0 avgidle 62 undertime 0 ### eth0: traffic classes class cbq 1: root rate 100Mbit (bounded,isolated) prio no-transmit Sent 150088 bytes 238 pkts (dropped 0, overlimits 0) borrowed 0 overactions 0 avgidle 62 undertime 0 class cbq 1:1280 parent 1: leaf 1280: rate 8Kbit (bounded) prio 5 Sent 0 bytes 0 pkts (dropped 0, overlimits 0) borrowed 0 overactions 0 avgidle -1.75922e+09 undertime 0 root@info:/home/artem/a2# === Cut === P.S И , что такое csid ? Для чего нужно ? Bye Artem --- * Origin: MB-Telescope Station (2:5030/922) Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.linux/22833cd865ed.html, оценка из 5, голосов 10
|