I want to configure my eth1 interface to have a static IP, even if the cable is not plugged in. Is that at all doable?
I need that as I want to eventually configure a DHCP server (isc-dhcp-server) to give an IP address to a device that will be connected to my machine via this interface. The device, however might not be plugged in all the time. And it seems like DHCP server will refuse to start if that interface doesn't have an IP/subnet. (please correct me if I am wrong).
/etc/network/interfaces has the following entry for eth1:
iface eth1 inet static address 192.168.20.1 netmask 255.255.255.0 gateway 192.168.20.1
Still when running
ifconfig the eth1 doesn't have an IP assigned.
I was always completely ignorant in terms of networking etc, so I might be missing something very obvious.
Any help appreciated. Thanks.