I'm configuring a Linaro OS (Debian for ARM).
I need to understand which is the simplest way to switch the OS from DHCP to static network set;
sometime I will not have a remote GUI but I found the nmtui tool;
sometime I will need to switch from a web page, then by Apache/PHP script, so the changes must be simply.
The OS uses by default the NetworkManager set to DHCP.
If I simply added a /etc/network/interfaces.d/staticEth0 file and in my understanding this should override the NetworkManager settings since the NetworkManager.conf file contains the row:
Code: Select all
[ifupdown]
managed=false
If I take a look to syslog file I found:
Code: Select all
Dec 22 10:34:32 kitvpnT2 NetworkManager[312]: <info> [1671701672.8253] ifupdown: interface-parser: source line includes interfaces file(s) /etc/network/interfaces.d/staticEth0
Dec 22 10:34:32 kitvpnT2 NetworkManager[312]: <info> [1671701672.8254] ifupdown: interface-parser: parsing file /etc/network/interfaces.d/staticEth0
Dec 22 10:34:32 kitvpnT2 NetworkManager[312]: <info> [1671701672.8255] ifupdown: interface-parser: finished parsing file /etc/network/interfaces.d/staticEth0
Any idea?
Thanks!