Hi I have a problem with Ubuntu 12.04 Server.
I have checked the IFConfig it seems all the entries are correct except the nameservers do not seem to get resolved. As such when I run /etc/int.d/networking restart
I receive an error message.:
Failed ... eth0
I have been trying for a couple of days. I was given the static IP address and when I ping it is ok, i.e. no packages lost. However on the server I cannot access internet and webpages. I think I may have given incorrect values.
/etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address xxx.xxx.xxx.xxx (i iused the IP address given by ISP, not sure whether this is correct)
netmask 255.255.255.0
network xxx.xxx.xxx.xxx (used the IP address given by ISP i.e. WAN IP)
broadcast xxx.xxx.xxx.255 (combination of IP and subnet?)
gateway xxx.xxx.xxx.xxx (got it from router)
dns-servers xxx.xxx.xxx.xxxx xxx.xxx.xxx.xxx (provider by isp,obtained the values from router)
When I run cat /etc/resolv.conf
, I do not see any values.
Thank you for all the help.