标签:kernel wondershaper supported answers 上下行 RTNETLINK linux Operation
wondershaper 可以用来限制linux设备的上下行带宽
代码仓库https://github.com/magnific0/wondershaper.git
直接按照readme的说明进行使用即可,使用方法比较简单,
Some examples:
wondershaper -a eth0 -d 1024 -u 512
wondershaper -a eth1 -d 94000 -u 94000 # could be used on a 100Mbps link
wondershaper -a eth1 -u 94000 # only limit upload
wondershaper -c -a eth0
在使用中需要对内核的依赖进行一些配置,否则会报如下错误
wondershaper eth0 1024 0124
RTNETLINK answers: Operation not supported
RTNETLINK answers: Operation not supported
RTNETLINK answers: Operation not supported
RTNETLINK answers: Operation not supported
RTNETLINK answers: Operation not supported
RTNETLINK answers: Operation not supported
RTNETLINK answers: Operation not supported
RTNETLINK answers: Operation not supported
RTNETLINK answers: Operation not supported
We have an error talking to the kernel
RTNETLINK answers: Operation not supported
We have an error talking to the kernel
RTNETLINK answers: Operation not supported
We have an error talking to the kernel
RTNETLINK answers: Operation not supported
We have an error talking to the kernel
RTNETLINK answers: Operation not supported
We have an error talking to the kernel
RTNETLINK answers: Operation not supported
RTNETLINK answers: Operation not supported
We have an error talking to the kernel
需要在内核中打开的依赖模块如下,之前google搜了很久都没有搜到,自己尝试,做个记录。
标签:kernel,wondershaper,supported,answers,上下行,RTNETLINK,linux,Operation 来源: https://www.cnblogs.com/tccxy/p/16197902.html
本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享; 2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关; 3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关; 4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除; 5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。