Sample Header Ad - 728x90

Run dhclient on startup

0 votes
0 answers
7877 views
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!
Asked by Vita (310 rep)
Jun 7, 2018, 09:38 PM
Last activity: Feb 9, 2024, 02:03 AM