cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
208 Views
Registered: ‎09-15-2020

Is there any commands that can limit/manage the bandwidth

Hello support team,

I just installed the 'petalinux' but I cannot find out how to limit/manage the network bandwidth by command. Are there any commands that can do the job like 'netem' on Ubuntu?

Thank you

linux_infor.png
linux_version.png
0 Kudos
2 Replies
Highlighted
Scholar
Scholar
166 Views
Registered: ‎05-28-2013

Hi,

The 'netem' seems to be part of the "tc" traffic control tool, which itself is part of "iproute2" package. (https://www.man7.org/linux/man-pages/man8/tc-netem.8.html)

You can enable iproute2 and tc commands as follows:

petalinux-config -c rootfs
   Filesystem Packages ---> base ---> iproute2 ---> iproute2-tc

You will likely also need to enable some options in the kernel, as per https://wiki.linuxfoundation.org/networking/netem. Under petalinux you would use 'petalinux-config -c kernel' for this. You can build these into the kernel, or as modules (which you then need to load with "modprobe").

Highlighted
Visitor
Visitor
124 Views
Registered: ‎09-15-2020

Thank rfs613, this works for me.
0 Kudos