[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Strange "RTNETLINK answers: File exists" (shouldn't be)



Hello,
I've got a following sample traffic shaping configuration for my hosts.
When i  "bash -v" my tc-script i get "RTNETLINK answers: File exists"
messages . As you see there are no duplicated handles or IDs...

Thanks for your help.


-----begin of sample conf --------------
.
/usr/sbin/iptables -t mangle -A UPLOAD -p all -o eth0 -s 10.100.2.188
-j CLASSIFY --set-class 2:4222
/sbin/tc filter add dev imq0 parent 1: protocol ip u32 match ip dst
10.100.2.188 flowid 1:2222
/sbin/tc class add dev imq0 parent 1:4 classid 1:2222 htb rate 128kbit
ceil 256kbit burst 256kbit prio 5
/sbin/tc qdisc add dev imq0 parent 1:2222 handle 2222:0 sfq perturb 10
/sbin/tc class add dev eth0 parent 2:4 classid 2:4222 htb rate 64kbit
ceil 256kbit burst 256kbit prio 5
RTNETLINK answers: File exists
/sbin/tc qdisc add dev eth0 parent 2:4222  handle 4222:0 sfq perturb 10
RTNETLINK answers: File exists
echo '.'
.
/usr/sbin/iptables -t mangle -A UPLOAD -p all -o eth0 -s 10.100.2.192
-j CLASSIFY --set-class 2:4223
/sbin/tc filter add dev imq0 parent 1: protocol ip u32 match ip dst
10.100.2.192 flowid 1:2223
/sbin/tc class add dev imq0 parent 1:4 classid 1:2223 htb rate 128kbit
ceil 1024kbit burst 1024kbit prio 5
/sbin/tc qdisc add dev imq0 parent 1:2223 handle 2223:0 sfq perturb 10
/sbin/tc class add dev eth0 parent 2:4 classid 2:4223 htb rate 64kbit
ceil 256kbit burst 256kbit prio 5
RTNETLINK answers: File exists
/sbin/tc qdisc add dev eth0 parent 2:4223  handle 4223:0 sfq perturb 10
RTNETLINK answers: File exists
echo '.'
.
--------end of sample conf -------------

--
Wojciech Ziniewicz
Unix SEX :{look;gawk;find;sed;talk;grep;touch;finger;find;fl
ex;unzip;head;tail; mount;workbone;fsck;yes;gasp;fsck;more;yes;yes;eje
ct;umount;makeclean; zip;split;done;exit:xargs!!;)}



Reply to: