作者:
linux_xp
Linux HTB 的最小控管單位是 KByte/s,所以沒辦法設 Kbit/s
並且最小保證頻寬需為 1KB/s,不能為 0
0 的話 tc 執行下去,就會出現錯誤訊息
TC (8)
語法:
UNITS
All parameters accept a floating point number, possibly
followed by a unit.
Bandwidths or rates can be specified in:
kbps Kilobytes per second
mbps Megabytes per second
kbit Kilobits per second
mbit Megabits per second
The Ultimate Traffic Conditioner: Low Latency, Fast Up & Downloads
語法:
15.8.3. The actual script (HTB)
The following script achieves all goals using the wonderful HTB queue, see the relevant chapter. Well worth patching your kernel for!
#!/bin/bash
# The Ultimate Setup For Your Internet Connection At Home
#
#
# Set the following values to somewhat less than your actual download
# and uplink speed. In kilobits
DOWNLINK=800
UPLINK=220
DEV=ppp0
書籤