RTNETLINK answers: No such file or directory

冷暖自知 提交于 2020-01-01 08:42:54

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/4803069/rtnetlink-answers-no-such-file-or-directory

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!