Server Can ONly Access Local Network with Static IP
I'm having a really odd issue.
I just upgraded my 11.11 server to 12.04, by performing a clean install.
I edited my /etc/network/interfaces file to the following:
The iface, address, netmask, network, broadcast and gateway lines were copied and pasted from my old server, which worked perfectly.
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
iface lo inet loopback
## The primary network interface
#iface eth0 inet dhcp
iface eth0 inet static
However, now, whenever I set it static - as above - it can only reach the local network, noting outside on the internet.
When I set it back to DHCP, it uses the same IP, broadcast and netmask, but now it all of a sudden works just fine, and can reach outside networks.
Does anyone have any idea why this is happening? It seems pretty strange to me. Possibly some sort of bug?
eth0 Link encap:Ethernet HWaddr 00:10:18:b2:00:ae
inet addr:192.168.1.242 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::210:18ff:feb2:ae/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:15680 errors:0 dropped:0 overruns:0 frame:0
TX packets:8816 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:8195644 (8.1 MB) TX bytes:1157572 (1.1 MB)
For now, its OK, as the IP is the same anyway, but I don't trust DHCP, and I don't want the IP to change and my clients on the network all breaking their connections to it...
Appreciate any feedback.
Desktop: Intel Core i7-3930K@4.8Ghz, Asus P9X79 WS, 64GB DDR3-1866, 400GB Intel 750 SSD, Sound Blaster X-Fi Titanium HD, Nvidia Titan X (Pascal)
Laptop: HP 9470m, Core i5-3427u, 8GB
Proxmox (NAS, Mythbuntu, etc.): Dual Xeon L5640, 192GB RAM, 48TB