Last active
June 7, 2017 15:36
-
-
Save wh5a/10520042 to your computer and use it in GitHub Desktop.
Fixing Digital Ocean network
This file contains 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
# With newer systemd, eth0 can get renamed to ens3 or similar. | |
# Strangely the renaming doesn't always happen, but when it does it breaks Digital Ocean's default setup. | |
sudo su | |
pacman -Rsc netcfg ifplugd | |
systemctl disable netcfg.service | |
systemctl disable net-auto-wired | |
systemctl enable systemd-networkd.service | |
cat > /etc/systemd/network/ens3.network | |
[Match] | |
Name=ens3 | |
[Network] | |
Address=<ip>/24 | |
Gateway=<gateway> | |
DNS=4.2.2.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment