0

I have this server that loses its network config on reboots, it's running Ubuntu Server 18.04, I tried the netplan commands but none generated a thing, maybe it's because the interface isn't even there until I run dhclient, only then the system brings the interface up and DHCP assigns it its static address. On boot, only the loopback interface is brought up automatically.

Instead of going crazy trying to decipher netplan--which most likely I'm not going to use much since I loathe Ubuntu for some reason--I'd like to go around it and just automatically run dhclient upon boot.

Would something like a cron job work? Do I need to assign special permissions somewhere or have special permissions?

Thanks for your help!

  • How is your interface configured? Can you edit your question to include the output of cat /etc/network/interfaces? – Nico May 24 at 20:20
0

I think you should use dhcpcd. If you are on systemd distro(not sure what ubuntu uses,systemd or init);

#systemctl enable --now dhcpcd

make sure you don't have another network daemon enabled though (eg networkmanager).

  • Could you explain how this would help? – Stephen Kitt Oct 16 '18 at 10:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.