Skip to content

Instantly share code, notes, and snippets.

@sokolenkoDEV
Created October 7, 2017 19:27
Show Gist options
  • Save sokolenkoDEV/47f318c2beafb152f9b362d5668c02cc to your computer and use it in GitHub Desktop.
Save sokolenkoDEV/47f318c2beafb152f9b362d5668c02cc to your computer and use it in GitHub Desktop.
virtualbox ubuntu17 how to up network
#add unit
#then systemctl enable dhclient.service
#then systemctl start dhclient.service
cat /etc/systemd/system/dhclient.service
[Unit]
Description=DHCP Client
Documentation=man:dhclient(8)
Wants=network.target
Before=network.target
[Service]
Type=forking
PIDFile=/var/run/dhclient.pid
ExecStart=/sbin/dhclient -4 -nw
[Install]
WantedBy=multi-user.target
root@ubuntu:~#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment