Ethernet force down

Hi Toradex,

We want to disable an ethernet interface (eth0) by default at startup with the ability to enable it temporarily at runtime. I can turn it off temporarily with

ifconfig eth0 down

But the interface will come up after the next boot. How can I apply this setting permanently?

Furthermore we want to have iptables active for filtering ethernet frames. We managed to built up an openembedded linux with iptables enabled through menuconfig. iptables seems to work, but there is also the question how to store the settings permanently (e.g. by using iptables-save to a dedicated location?)

Thanks in advance

Hi @mar90co

We want to disable an ethernet interface (eth0) by default at startup with the ability to enable it temporarily at runtime

You can type in the following command:
connmanctl disable ethernet

We managed to built up an openembedded linux with iptables enabled through menuconfig. iptables seems to work, but there is also the question how to store the settings permanently (e.g. by using iptables-save to a dedicated location?)

iptables is included in the regular Bsp 2.8b6, so it should be possible to use iptables-save.

Best regards,
Jaski