You are not logged in.

#1 2014-09-23 03:36:09

jernst
Member
From: Silicon Valley
Registered: 2014-03-04
Posts: 290
Website

Solved: RTNETLINK answers: No such file or directory when tc

Attempting to use tc for traffic control:

# tc qdisc add dev enp4s1 root handle 1: htb default 30
RTNETLINK answers: No such file or directory

If I try variations on the command, I'm getting the same error message. Some old messages in various places for distros other than Arch seem to say it may require a kernel module sch_htb, but I have that.

strace'ing the above produces a

open("/usr/share/tc//q_htb.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)

which looks suspicious to me.

Any ideas?

Addition: I installed iproute2 from testing; same behavior including the strace.

Last edited by jernst (2014-09-23 17:38:47)

Offline

#2 2014-09-23 04:00:08

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: Solved: RTNETLINK answers: No such file or directory when tc

Does it happen when you explicitly run /usr/bin/tc?

tc works here (i686).

-edit-

I get the same error in strace, but tc does work.

-edit 2-

Maybe you haven't rebooted after a kernel upgrade and it cannot load some module.

Last edited by lucke (2014-09-23 04:11:21)

Offline

#3 2014-09-23 04:37:45

jernst
Member
From: Silicon Valley
Registered: 2014-03-04
Posts: 290
Website

Re: Solved: RTNETLINK answers: No such file or directory when tc

lucke: you are right, rebooting helped! Duh ...

Offline

Board footer

Powered by FluxBB