I am having two containers configured with net_cls.classid as 0x10002
and 0x10003 respectively.
Now I want to assign different network rate limits to them.
I am trying to do this by performing below steps,
// Create qdisc,
$tc qdisc add dev eth0 root handle 1: htb default 30
// Add classes,
$tc class add dev eth0 parent 1:0 classid 1:2 htb rate 10mbit
$tc class add dev eth0 parent 1:0 classid 1:3 htb rate 100mbit
// Add filters
$tc filter add dev eth0 parent 1: protocol ip prio 20 basic classid 1:2
$tc filter add dev eth0 parent 1: protocol ip prio 20 basic classid 1:3
But the problem is that both the containers are limited to 100mbit,
which is the limit of the 2nd class.
I am not using iptables, do I need to use it to achieve the
functionality I am trying to do?
Thanks for your help!
Regards,
Nishant
On 2014-11-24 14:30, Vijay Viswanathan wrote:
what is the error ? last time i tried, the default iptables didnt have
that filter extension. I needed extra xtables extension module.
ref :
http://superuser.com/questions/752404/iptables-error-libipt-cgroup-so-doesnt-exist-while-using-net-cls-classid-in-ne#new-answer
On Mon, Nov 24, 2014 at 12:00 PM, Nishant Agrawal
<[email protected]> wrote:
Hi Folks,
I am trying to rate limit the containers by using combination of
net_cls and
tc. I am not able to create class and filter using tc to achieve the
same.
I found some link on the web but the steps mentioned doesn't work.
Any help is appreciated!!
Regards,
Nishant
_______________________________________________
lxc-users mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-users
_______________________________________________
lxc-users mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-users
_______________________________________________
lxc-users mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-users