Linux command
wondershaper 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Limit bandwidth
wondershaper [eth0] [1024] [512]
Clear limits
wondershaper clear [eth0]
Show current limits
wondershaper [eth0]
Using long options
wondershaper -a [eth0] -d [1024] -u [512]
说明
wondershaper is a simple shell script that limits network bandwidth on a per-interface basis using Linux traffic control. It provides an easy way to set download and upload speed limits in kilobits per second without needing to understand the complex tc command syntax directly. The tool works by applying traffic shaping rules to the specified network interface. Limits can be displayed, set, or cleared with straightforward commands. It is commonly used for testing applications under bandwidth-constrained conditions or for preventing a single machine from saturating a shared network connection.
参数
- -a _IFACE_
- Interface name.
- -d _KBPS_
- Download limit.
- -u _KBPS_
- Upload limit.
- clear
- Remove limits.
FAQ
What is the wondershaper command used for?
wondershaper is a simple shell script that limits network bandwidth on a per-interface basis using Linux traffic control. It provides an easy way to set download and upload speed limits in kilobits per second without needing to understand the complex tc command syntax directly. The tool works by applying traffic shaping rules to the specified network interface. Limits can be displayed, set, or cleared with straightforward commands. It is commonly used for testing applications under bandwidth-constrained conditions or for preventing a single machine from saturating a shared network connection.
How do I run a basic wondershaper example?
Run `wondershaper [eth0] [1024] [512]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -a _IFACE_ do in wondershaper?
Interface name.