Skip to content

Instantly share code, notes, and snippets.

@bitkidd
Created February 15, 2016 18:11
Show Gist options
  • Save bitkidd/85dfeea186c4e0f5c2f7 to your computer and use it in GitHub Desktop.
Save bitkidd/85dfeea186c4e0f5c2f7 to your computer and use it in GitHub Desktop.
Online.net VM/VPS network setup
auto eth0
iface eth0 inet static
address <your-vm-ip-address>
netmask <your-netmask(ex:255.255.255.255)>
broadcast <your-vm-ip-address>
post-up route add <your-server-getaway-ip(ex: usually ends with .1)> dev eth0
post-up route add default gw <your-server-getaway-ip(ex: usually ends with .1)>
post-down route del <your-server-getaway-ip(ex: usually ends with .1)> dev eth0
post-down route del default gw <your-server-getaway-ip(ex: usually ends with .1)>
dns-nameservers 8.8.8.8 8.8.4.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment