Skip to content

Instantly share code, notes, and snippets.

@infamousjoeg
Forked from takipone/interfaces
Last active April 27, 2018 14:32
Show Gist options
  • Save infamousjoeg/5f3347c5443674425d735db2180d9e15 to your computer and use it in GitHub Desktop.
Save infamousjoeg/5f3347c5443674425d735db2180d9e15 to your computer and use it in GitHub Desktop.
Debian/Ubuntu /etc/network/interfaces
auto lo
iface lo inet loopback
auto ens160
iface ens160 inet static
address IP_ADDR
netmask NETMASK
gateway DEFAULT_GATEWAY
dns-nameservers DNS
@infamousjoeg
Copy link
Author

infamousjoeg commented Feb 13, 2018

ip addr flush ens160 && systemctl restart networking.service

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment