I've never had so much problems setting a network interface card to static addressing.
I'm not sure what has changed, but I can only seem to get this thing to work if it's set to obtain the address via DHCP.
I've tried multiple attempts to get this to work and referred to documentation on here as well as on other sites.
Here is a copy of my /etc/network/interfaces file:
# interfaces(5) file used by ifup(8) and ifdown(8)
# First SETUP Attempt
# auto lo
# iface lo inet loopback
# iface lo inet interface
# auto eth0
# iface eth0 inet static
# address 192.168.100.25
# netmask 255.255.255.0
# gateway 192.168.100.254
# dns-nameservers 8.8.8.8 8.8.4.4
# Current Setup
# 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
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
# Comment out
#iface eth0 inet dhcp
# add these lines
iface eth0 inet static
address 192.168.100.25 # define IP address
network 192.168.100.0 # define network address
netmask 255.255.255.0 # define subnet mask
broadcast 192.168.100.255 # define broadcast address
gateway 192.168.100.254 # define default gateway
dns-nameservers 192.168.100.254 # define name server - Router/Gateway
Restarting the networking services fails. I end up trying to reboot. At that point the network interface does not come back up
If I force it back up with sudo ip link set eth0 up the interface comes up, but shows no addressing other than broadcast information. It does not connect to the internet.
Help with this is greatly appreciated.