After running the script my box loses the ability to resolve DNS. (apt doesn't resolve and I cannot ping google.com)
I need to manually correct the issue. I'm a newb, so this was the fix I came up with.
# The primary network interface
auto eth0
iface eth0 inet static
address <eth0 IP>
netmask 255.255.255.128
dns-nameserver 1.1.1.1 #Your DNS here
dns-nameserver 1.0.0.1 #Your secondary DNS here
gateway <VPS GATEWAY IP>
Again, not sure why, but it's only happened once out of 5 servers, and it consistently does it on this ONE server.
After running the script my box loses the ability to resolve DNS. (apt doesn't resolve and I cannot ping google.com) I need to manually correct the issue. I'm a newb, so this was the fix I came up with.
Again, not sure why, but it's only happened once out of 5 servers, and it consistently does it on this ONE server.