Created
October 7, 2017 19:27
-
-
Save sokolenkoDEV/47f318c2beafb152f9b362d5668c02cc to your computer and use it in GitHub Desktop.
virtualbox ubuntu17 how to up network
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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