Linux RTNETLINK 回答:没有那个文件或目录

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4803069/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-05 02:38:17  来源:igfitidea点击:

RTNETLINK answers: No such file or directory

linuxnetlink

提问by vishal

When I run this cmd:

当我运行这个 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.

我已经为 配置了内核netfilters,并且在menuconfig.

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

我不明白为什么会出现这个错误。我正在使用iproute2-2.6.23Fedora 8。

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

这在我的笔记本电脑上工作正常,但在我的台式电脑上却没有?

回答by Zouppen

On my system your command autoloads the sch_redmodule. 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:

在我的系统上,您的命令会自动加载sch_red模块。这个问题相当古老,因此在现代系统上,如果您有所需的模块,自动加载应该可以正常工作。通过运行以下命令检查您是否错过了内核模块:

modprobe sch_red

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

如果它什么也没打印,然后重试运行tc命令,看看它是否有帮助。

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

如果没有,请确保您CONFIG_NET_SCH_RED在内核中编译了(随机早期检测)。内核文档中的更多信息