Hello
As we know, it is possible to limit the network card to a certain speed on a KVM VM.
But both receiving and sending are limited. Is there a way to limit only receiving, for example?
Thanks
It is possible to do it manually, though. You can use the tc command to configure traffic shaping on the network interface. This will allow you to specify separate limits for incoming and outgoing traffic.
To limit the incoming network speed, you can use the following command:
Code:
tc class add dev eth0 parent 1:1 classid 1:10 htb rate <limit>kbps
Replace eth0 with the name of the network interface you want to limit, and <limit> with the maximum incoming speed you want to allow. This will create a traffic class with a rate limit of <limit> kilobits per second for incoming traffic on the specified interface.
You can also limit the outgoing network speed in a similar way:
Code:
tc class add dev eth0 parent 1:1 classid 1:20 htb rate <limit>kbps
This will create a traffic class with a rate limit of <limit> kilobits per second for outgoing traffic on the specified interface.
I hope this helps! Let me know if you have any other questions.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.