Ubuntu 14.04 – tc不能正常工作

我之前在其他服务器上使用过tc来限制端口80上的总带宽,以确保在一天中的高峰时段端口22有足够的吞吐量。 我需要一些帮助,为什么下面的tc规则现在失败:

tc qdisc add dev eth0 root handle 2 htb default 1 tc class add dev eth0 parent 2: classid 2:6 htb rate 1048576kbit tc class add dev eth0 parent 2:6 classid 2:100d htb rate 911360Kbit tc filter add dev eth0 parent 2: protocol ip pref 4 u32 match ip sport 80 0xffff classid 2:100d 

在添加最后一行(filter添加一个)时,出现以下错误:

 RTNETLINK answers: Operation not supported We have an error talking to the kernel 

内核版本是3.10.23-xxxx-std-ipv6-64,操作系统是Ubuntu 14.04。

您使用OVH提供的定制内核而不是您的Linux发行版提供的内核来引导您的OVH服务器。 OVH提供的内核可能没有你需要的所有模块。 将您的专用服务器重新configuration为从您的OVH帐户pipe理页面的硬盘启动 。