udhcpc clears out static IPs
I have a backup server at home with multiple IP addresses as follows:
auto eth0
iface eth0 inet dhcp
auto eth0:0
iface eth0:0 inet static
address 192.168.2.2/24
I works most of the time, but every once in a while the static IP is not present, I think its because udhcpc is flushing the static ip.
Also running something like udhcpc -i eth0
flushes the static ip, which I think its happening on dhcp renew.
What is the recomended way to reliably keep a static address along-side the dhcp config?
Thanks!