The "word" following "iface" in is the name of the configuration blocks. The
full format for using them has the syntax:
# ifup =
Thus, you should define two blocks:
---
iface staticlan ...
iface dynamiclan ...
---
and use that on the command line, like:
# ifup eth0=staticlan
Hi All,
assume the following:
--- start /etc/network/interfaces.d/staticlan ---
iface eth0 inet static
address 192.168.1.1
netmask 255.255.255.0
# no gateway
--- end /etc/network/interfaces.d/staticlan ---
--- start /etc/network/interfaces/dynamiclan ---
iface eth0 inet dhcp
--- end