wondershaper限制linux设备的上下行带宽
2022/4/28 7:14:41
本文主要是介绍wondershaper限制linux设备的上下行带宽,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
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搜了很久都没有搜到,自己尝试,做个记录。
这篇关于wondershaper限制linux设备的上下行带宽的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-07-04Linux系统上离线升级SSH服务的具体操作步骤-icode9专业技术文章分享
- 2024-06-0600-macOS和Linux安装和管理多个Python版本
- 2024-03-30[译]漫画SELinux概念
- 2024-03-29linux 移动文件
- 2024-03-28linux .so file
- 2024-03-28Linux 磁盘管理
- 2024-03-28Linux学习笔记(十三)磁盘管理(一):磁盘分区
- 2024-03-26linux 创建 文件
- 2024-03-25使用SecureCRT对Linux vim进行颜色设置
- 2024-03-202019-2020-12 20199317 《Linux内核原理与分析》 第十二周作业