我想限制venet0的速度,但是OVZ的网卡无法限制,说
# tc filter add dev venet0:0 parent 1: protocol ip prio 20 u32 match u32 1 0x0000 police rate 2Mbit buffer 1M drop flowid :1
RTNETLINK answers: Invalid argument
We have an error talking to the kernel
#
难道OVZ的网卡不能用TC嘛?
I'm not familiar with how TC works, however if it requires XEN then it may require an independent kernel. Remember OVZ uses a shared based kernel, so traffic shaping or any specific protocols that are shared from the host machine may not be able to be modified upon the container.