RTNETLINK答案:没有这样的文件或目录 [英] RTNETLINK answers: No such file or directory
问题描述
当我运行此cmd时:
tc qdisc add dev eth0 root red limit 51200000 min 128000 max 512000 avpkt 1024 burst 200 ecn probability 0.5
我明白了
RTNETLINK answers: No such file or directory
我已经为netfilters
和menuconfig
中的所有联网选项配置了内核.
I have configured the kernel for netfilters
, and all the networking options in menuconfig
.
我不明白为什么会发生此错误.我正在使用iproute2-2.6.23
和Fedora8.
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?
推荐答案
在我的系统上,您的命令会自动加载sch_red
模块.这个问题比较老,因此在现代系统上,如果您具有必需的模块,则自动加载应该可以正常工作.通过运行以下命令检查是否错过了内核模块:
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
如果什么都不打印,请重试运行tc
命令,看看是否有帮助.
If it prints nothing, then retry running tc
command and see if it helps.
如果没有,请确保内核中已编译CONFIG_NET_SCH_RED
(随机早期检测). 有关内核文档的更多信息.
If not, ensure you have CONFIG_NET_SCH_RED
(Random Early Detection) compiled in your kernel. More info at kernel documentation.
这篇关于RTNETLINK答案:没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!