Skip to content

Instantly share code, notes, and snippets.

@wh5a
Last active June 7, 2017 15:36
Show Gist options
  • Save wh5a/10520042 to your computer and use it in GitHub Desktop.
Save wh5a/10520042 to your computer and use it in GitHub Desktop.
Fixing Digital Ocean network
# 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