Created
February 15, 2016 18:11
-
-
Save bitkidd/85dfeea186c4e0f5c2f7 to your computer and use it in GitHub Desktop.
Online.net VM/VPS network setup
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
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