I've been searching for few days now but couldn't find the solution to my problem.

I have a VPS running Debian 7, and I have root access.

I am trying to add some traffic shaping (using HTB), so the first line I tried to type was this one :

tc qdisc add dev tun0 root handle 1: htb default 10

But it appears to be wrong somehow, because I get the following error :

RTNETLINK answers: No such file or directory

My ifconfig shows an interface tun0, so it exists. I also tried on venet0 anyway and it fails with the same error.

When I do tc qdisc list I have only the following rule :

qdisc pfifo_fast 0: dev tun0 root refcnt 2 bands 3 priomap  1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1

I really can't find what's wrong.

NB : I upgraded the package iproute (according to Debian's doc, it's where tc is), but it didn't do any better.

1 Answer 1


RTNETLINK answers: No such file or directory is tc's way of saying that it can't find something - in this case: most probably the htb scheduler. To test and make sure try

modprobe sch_htb

You will probably get an error.

And this probably means that your VPS provider is not using the default kernels from debian upstream. They usually provide you with a list of kernels to chose from, but I'd expect all of them to be crippled like the one running. You will not be able to change the kernel they are using, but there is chance (though not a big one) they haven't disabled module loading in the kernel. In that case you can try to build and install the htb module. You can try using ModuleAssistant for that.

If all else fails, contact the customer support.

  • I already installed ModuleAssistant, but couldn't find the HTB module. The command is : m-a a-i htb, right? (also tried sch_htb and a whole bunch of other stuff, no more success) Jul 31, 2014 at 19:27
  • I see. You'll have to try and do it manually then. Take a look at cyberciti.biz/tips/…
    – skarap
    Jul 31, 2014 at 19:39
  • I tried following some of these steps, but I can't even find the kernel-headers. I'll try to send a request to the support of the VPS. Jul 31, 2014 at 21:14
  • What's the full kernel version?
    – skarap
    Jul 31, 2014 at 21:42
  • 2.6.32-042stab092.2 Jul 31, 2014 at 22:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.