I am configuring some server on Ubuntu Server 14.04 (no GUI) and I am have the following configuration:
auto lo
iface lo inet loopback
## Management network eth0
auto eth0
iface eth0 inet static
address 10.0.0.11
netmask 255.255.255.0
gateway 10.0.0.1
dns-nameservers 8.8.8.8 8.8.4.4
Unfortunately, when using this configuration I can only access the LAN, any attempt to ping or access anything outside of our network fails.
If I use DHCP and just take what ever IP address the router gives me, I can access internal and external networks. For testing sake I've been attempting to use "ping google.com" to test outside connectivity.
One other note, in the router if I bind the IP to the MAC Address it appears to work just fine, but I don't want these rules to live in my router, I'd much rather they be configured on the server.
ifconfig -a
andnetstat -rn
between working and nonworking states.