RTNETLINK answers: No such file or directory

vishal picture vishal · Jan 26, 2011 · Viewed 12.7k times · Source

When I run this cmd:

tc qdisc add dev eth0 root red limit 51200000 min 128000 max 512000 avpkt 1024 burst 200 ecn probability 0.5

i get

RTNETLINK answers: No such file or directory

I have configured the kernel for netfilters, and all the networking options in menuconfig.

I don't understand why this error occurs. I'm using iproute2-2.6.23 and Fedora 8.

This was working fine on my laptop, but not on my Desktop PC?

Answer

Zouppen picture Zouppen · May 22, 2019

On my system your command autoloads the sch_red module. The question is rather old so on a modern system the autoloading should work fine if you have the required module. Check if you miss the kernel module by running:

modprobe sch_red

If it prints nothing, then retry running tc command and see if it helps.

If not, ensure you have CONFIG_NET_SCH_RED (Random Early Detection) compiled in your kernel. More info at kernel documentation.