dhclient
is the Dynamic Host Configuration Protocol (DHCP) Client one would use to allow a client to connect to a DHCP server.
$ sudo nano /etc/rc.local
#!/bin/bash
dhclient
exit 0
$ sudo chmod 755 /etc/rc.local
$ sudo systemctl enable rc-local
$ sudo systemctl restart rc-local
$ sudo systemctl status rc-local
Thanks. This trick solved my
Ubuntu 18.04.2 LTS
server. Instead of having to manually do each time,ip link set enp0s8 up && dhclient enp0s8
. Must fill-in also necessary 2 lines in/etc/network/interfaces