09-15-2020 02:09 AM
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?
09-15-2020 12:43 PM
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").