小编and*_*kop的帖子

Linux 上的传入(入口)流量整形 - bw 低于预期

我想限制 Linux box 的传入(下载)速度。

配置的盒子和流量源(HTTP服务器)都连接在同一个交换机上,如果没有配置整形,下载速度为30MBps

我根据http://lartc.org/lartc.html使用 tc

########## downlink #############
# slow downloads down to somewhat less than the real speed  to prevent 
# queuing at our ISP. Tune to see how high you can set it.
# ISPs tend to have *huge* queues to make sure big downloads are fast
#
# attach ingress policer:

/sbin/tc qdisc add dev $DEV handle ffff: ingress

# filter *everything* to it (0.0.0.0/0), drop everything that's
# coming in too fast: …
Run Code Online (Sandbox Code Playgroud)

linux traffic-shaping iproute2

4
推荐指数
1
解决办法
1万
查看次数

标签 统计

iproute2 ×1

linux ×1

traffic-shaping ×1