htb - problem
10 отговора
373 прегледа
htb - problem
moje i da se e diskutiralo veche po moq problem ama pomagaite ne se syrdete :)
# tc qdisc del dev eth0 root
RTNETLINK answers: No such file or directory
# tc qdisc add dev eth0 root handle 1 htb default 30
RTNETLINK answers: Invalid argument
da znaete zashto go dava tva?
sled tiq 2 reda sledvat oshte 20 sys syobshteniq za greshki
# tc qdisc del dev eth0 root
RTNETLINK answers: No such file or directory
# tc qdisc add dev eth0 root handle 1 htb default 30
RTNETLINK answers: Invalid argument
da znaete zashto go dava tva?
sled tiq 2 reda sledvat oshte 20 sys syobshteniq za greshki
Re: htb - problem
<<# tc qdisc del dev eth0 root
<<RTNETLINK answers: No such file or directory
Normalno syboshtenie...pri polojenie che njamash root disk, kojto se optvash da del.
<<# tc qdisc add dev eth0 root handle 1 htb default 30
<<RTNETLINK answers: Invalid argument
Siguren li che si patchnal iproute2 za htb support...?
[линк]
<<RTNETLINK answers: No such file or directory
Normalno syboshtenie...pri polojenie che njamash root disk, kojto se optvash da del.
<<# tc qdisc add dev eth0 root handle 1 htb default 30
<<RTNETLINK answers: Invalid argument
Siguren li che si patchnal iproute2 za htb support...?
[линк]
Re: htb - problem
patch tc htb2_tc.diff - tva v dira na ip route
posle trea li da kompiliram?
ili savsem sym omazal sichko
posle trea li da kompiliram?
ili savsem sym omazal sichko
Re: htb - problem
ma koi tochno fail trea da pachna shtoto nqmam TC ako nesym go kompiliral?
Re: htb - problem
cd /path/to/iproute2
patch -p1 < htb2_tc.diff
make
cp tc/tc /usr/sbin
cp ip/ip /usr/sbin
tva e...:)
patch -p1 < htb2_tc.diff
make
cp tc/tc /usr/sbin
cp ip/ip /usr/sbin
tva e...:)
Re: htb - problem
da de ma neshto mai ne e nared s moita versiq na iproute-2
sys:
iproute2-2.4.7-now-ss010824
iproute2-2.4.7-now-ss020116-try
neshte daje svalih binari ot [линк]
[линк]
ma pak neshte da raboti
sled make mi dava
make[1]: Entering directory `/home/install/iproute2/tc'
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -Werror -g -I../include-glibc -i
nclude ../include-glibc/glibc-bugs.h -I/usr/src/linux/include -I../include -DRES
OLVE_HOSTNAMES -c -o q_htb.o q_htb.c
q_htb.c: In function `htb_parse_opt':
q_htb.c:57: storage size of `opt' isn't known
q_htb.c:91: `TCA_HTB_INIT' undeclared (first use in this function)
q_htb.c:91: (Each undeclared identifier is reported only once
q_htb.c:91: for each function it appears in.)
cc1: warnings being treated as errors
q_htb.c:57: warning: unused variable `opt'
q_htb.c: In function `htb_parse_class_opt':
q_htb.c:99: storage size of `opt' isn't known
q_htb.c:207: `TCA_HTB_PARMS' undeclared (first use in this function)
q_htb.c:208: `TCA_HTB_RTAB' undeclared (first use in this function)
q_htb.c:209: `TCA_HTB_CTAB' undeclared (first use in this function)
q_htb.c:99: warning: unused variable `opt'
q_htb.c: In function `htb_print_opt':
q_htb.c:216: `TCA_HTB_RTAB' undeclared (first use in this function)
q_htb.c:216: size of array `tb' has non-integer type
q_htb.c:229: `TCA_HTB_PARMS' undeclared (first use in this function)
q_htb.c:232: dereferencing pointer to incomplete type
q_htb.c:234: dereferencing pointer to incomplete type
q_htb.c:235: dereferencing pointer to incomplete type
q_htb.c:236: dereferencing pointer to incomplete type
q_htb.c:236: dereferencing pointer to incomplete type
q_htb.c:237: dereferencing pointer to incomplete type
q_htb.c:238: dereferencing pointer to incomplete type
q_htb.c:238: dereferencing pointer to incomplete type
q_htb.c:241: dereferencing pointer to incomplete type
q_htb.c:241: dereferencing pointer to incomplete type
q_htb.c:243: dereferencing pointer to incomplete type
q_htb.c:243: dereferencing pointer to incomplete type
q_htb.c:244: dereferencing pointer to incomplete type
q_htb.c:245: dereferencing pointer to incomplete type
q_htb.c:252: dereferencing pointer to incomplete type
q_htb.c:252: dereferencing pointer to incomplete type
q_htb.c:254: `TCA_HTB_INIT' undeclared (first use in this function)
q_htb.c:256: dereferencing pointer to incomplete type
q_htb.c:260: dereferencing pointer to incomplete type
q_htb.c:260: dereferencing pointer to incomplete type
q_htb.c:260: dereferencing pointer to incomplete type
i oshte nqkolko podobni reda
sys:
iproute2-2.4.7-now-ss010824
iproute2-2.4.7-now-ss020116-try
neshte daje svalih binari ot [линк]
[линк]
ma pak neshte da raboti
sled make mi dava
make[1]: Entering directory `/home/install/iproute2/tc'
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -Werror -g -I../include-glibc -i
nclude ../include-glibc/glibc-bugs.h -I/usr/src/linux/include -I../include -DRES
OLVE_HOSTNAMES -c -o q_htb.o q_htb.c
q_htb.c: In function `htb_parse_opt':
q_htb.c:57: storage size of `opt' isn't known
q_htb.c:91: `TCA_HTB_INIT' undeclared (first use in this function)
q_htb.c:91: (Each undeclared identifier is reported only once
q_htb.c:91: for each function it appears in.)
cc1: warnings being treated as errors
q_htb.c:57: warning: unused variable `opt'
q_htb.c: In function `htb_parse_class_opt':
q_htb.c:99: storage size of `opt' isn't known
q_htb.c:207: `TCA_HTB_PARMS' undeclared (first use in this function)
q_htb.c:208: `TCA_HTB_RTAB' undeclared (first use in this function)
q_htb.c:209: `TCA_HTB_CTAB' undeclared (first use in this function)
q_htb.c:99: warning: unused variable `opt'
q_htb.c: In function `htb_print_opt':
q_htb.c:216: `TCA_HTB_RTAB' undeclared (first use in this function)
q_htb.c:216: size of array `tb' has non-integer type
q_htb.c:229: `TCA_HTB_PARMS' undeclared (first use in this function)
q_htb.c:232: dereferencing pointer to incomplete type
q_htb.c:234: dereferencing pointer to incomplete type
q_htb.c:235: dereferencing pointer to incomplete type
q_htb.c:236: dereferencing pointer to incomplete type
q_htb.c:236: dereferencing pointer to incomplete type
q_htb.c:237: dereferencing pointer to incomplete type
q_htb.c:238: dereferencing pointer to incomplete type
q_htb.c:238: dereferencing pointer to incomplete type
q_htb.c:241: dereferencing pointer to incomplete type
q_htb.c:241: dereferencing pointer to incomplete type
q_htb.c:243: dereferencing pointer to incomplete type
q_htb.c:243: dereferencing pointer to incomplete type
q_htb.c:244: dereferencing pointer to incomplete type
q_htb.c:245: dereferencing pointer to incomplete type
q_htb.c:252: dereferencing pointer to incomplete type
q_htb.c:252: dereferencing pointer to incomplete type
q_htb.c:254: `TCA_HTB_INIT' undeclared (first use in this function)
q_htb.c:256: dereferencing pointer to incomplete type
q_htb.c:260: dereferencing pointer to incomplete type
q_htb.c:260: dereferencing pointer to incomplete type
q_htb.c:260: dereferencing pointer to incomplete type
i oshte nqkolko podobni reda
Re: htb - problem
1-во: пуснали си QoS в кърнъла?
2-ро: имаш го на сайта на htb прекомпилнато tc и можеш да го вземеш директно него без проблем да го ползваш.
Тръгни 1-во със свалянето на това tc и ако не стане виж си кърнъла.
по добре да мълча и да изглеждам глупав, отколкото да си отворя устата и да го докажа
2-ро: имаш го на сайта на htb прекомпилнато tc и можеш да го вземеш директно него без проблем да го ползваш.
Тръгни 1-во със свалянето на това tc и ако не стане виж си кърнъла.
по добре да мълча и да изглеждам глупав, отколкото да си отворя устата и да го докажа
Re: htb - problem
abe machih go i taka - s kernel 2.4.20 sym sichko v QoS sym go kompiliral v kernela
i gotovoto tc mi dava e tva kato go pusna konfiga deto sa dali za sample vytre v nego
# ip link show
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: teql0: <NOARP> mtu 1500 qdisc noop qlen 100
link/void
3: tunl0@NONE: <NOARP> mtu 1480 qdisc noop
link/ipip 0.0.0.0 brd 0.0.0.0
4: sit0@NONE: <NOARP> mtu 1480 qdisc noop
link/sit 0.0.0.0 brd 0.0.0.0
5: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 100
link/ether 52:54:00:e6:4b:3f brd ff:ff:ff:ff:ff:ff
6: eth1: <BROADCAST,MULTICAST,PROMISC,UP> mtu 1500 qdisc pfifo_fast qlen 100
link/ether 00:80:ad:8d:c5:31 brd ff:ff:ff:ff:ff:ff
# tc qdisc del dev eth0 root
RTNETLINK answers: No such file or directory
# tc qdisc add dev eth0 root handle 1 htb default 30 r2q 100
RTNETLINK answers: Invalid argument
# ip link show
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: teql0: <NOARP> mtu 1500 qdisc noop qlen 100
link/void
3: tunl0@NONE: <NOARP> mtu 1480 qdisc noop
link/ipip 0.0.0.0 brd 0.0.0.0
4: sit0@NONE: <NOARP> mtu 1480 qdisc noop
link/sit 0.0.0.0 brd 0.0.0.0
5: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 100
link/ether 52:54:00:e6:4b:3f brd ff:ff:ff:ff:ff:ff
6: eth1: <BROADCAST,MULTICAST,PROMISC,UP> mtu 1500 qdisc pfifo_fast qlen 100
link/ether 00:80:ad:8d:c5:31 brd ff:ff:ff:ff:ff:ff
# tc class add dev eth0 parent 1: classid 1:2 htb rate 5Mbit burst 15k
RTNETLINK answers: No such file or directory
# tc class add dev eth0 parent 1: classid 1:2 htb rate 5Mbit burst 15k
RTNETLINK answers: No such file or directory
# tc class add dev eth0 parent 1:2 classid 1:10 htb rate 5Mbit burst 15k
RTNETLINK answers: No such file or directory
# tc qdisc add dev eth0 parent 1:10 handle 10 sfq perturb 10
RTNETLINK answers: No such file or directory
# tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip sport 80 0xffff classid 1:10
RTNETLINK answers: Invalid argument
# tc class add dev eth0 parent 1:2 classid 1:20 htb rate 3Mbit ceil 5Mbit burst 15k
RTNETLINK answers: No such file or directory
# tc qdisc add dev eth0 parent 1:20 handle 20 sfq perturb 10
RTNETLINK answers: No such file or directory
# tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip dport 25 0xffff classid 1:20
RTNETLINK answers: Invalid argument
i gotovoto tc mi dava e tva kato go pusna konfiga deto sa dali za sample vytre v nego
# ip link show
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: teql0: <NOARP> mtu 1500 qdisc noop qlen 100
link/void
3: tunl0@NONE: <NOARP> mtu 1480 qdisc noop
link/ipip 0.0.0.0 brd 0.0.0.0
4: sit0@NONE: <NOARP> mtu 1480 qdisc noop
link/sit 0.0.0.0 brd 0.0.0.0
5: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 100
link/ether 52:54:00:e6:4b:3f brd ff:ff:ff:ff:ff:ff
6: eth1: <BROADCAST,MULTICAST,PROMISC,UP> mtu 1500 qdisc pfifo_fast qlen 100
link/ether 00:80:ad:8d:c5:31 brd ff:ff:ff:ff:ff:ff
# tc qdisc del dev eth0 root
RTNETLINK answers: No such file or directory
# tc qdisc add dev eth0 root handle 1 htb default 30 r2q 100
RTNETLINK answers: Invalid argument
# ip link show
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: teql0: <NOARP> mtu 1500 qdisc noop qlen 100
link/void
3: tunl0@NONE: <NOARP> mtu 1480 qdisc noop
link/ipip 0.0.0.0 brd 0.0.0.0
4: sit0@NONE: <NOARP> mtu 1480 qdisc noop
link/sit 0.0.0.0 brd 0.0.0.0
5: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 100
link/ether 52:54:00:e6:4b:3f brd ff:ff:ff:ff:ff:ff
6: eth1: <BROADCAST,MULTICAST,PROMISC,UP> mtu 1500 qdisc pfifo_fast qlen 100
link/ether 00:80:ad:8d:c5:31 brd ff:ff:ff:ff:ff:ff
# tc class add dev eth0 parent 1: classid 1:2 htb rate 5Mbit burst 15k
RTNETLINK answers: No such file or directory
# tc class add dev eth0 parent 1: classid 1:2 htb rate 5Mbit burst 15k
RTNETLINK answers: No such file or directory
# tc class add dev eth0 parent 1:2 classid 1:10 htb rate 5Mbit burst 15k
RTNETLINK answers: No such file or directory
# tc qdisc add dev eth0 parent 1:10 handle 10 sfq perturb 10
RTNETLINK answers: No such file or directory
# tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip sport 80 0xffff classid 1:10
RTNETLINK answers: Invalid argument
# tc class add dev eth0 parent 1:2 classid 1:20 htb rate 3Mbit ceil 5Mbit burst 15k
RTNETLINK answers: No such file or directory
# tc qdisc add dev eth0 parent 1:20 handle 20 sfq perturb 10
RTNETLINK answers: No such file or directory
# tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip dport 25 0xffff classid 1:20
RTNETLINK answers: Invalid argument
Re: htb - problem
istinata e v pravilno kompiliranoto TC
[линк]
drugoto e kernel s QoS :)
[линк]
drugoto e kernel s QoS :)