Thursday, April 25, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 7239  / 3 Years ago, fri, september 10, 2021, 3:10:40

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.


More From » networking

 Answers
0

If your router has the ip 192.168.1.1 the configuration would be:
address 192.168.1.4 (for example)
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
dns-servers (provider by isp)


[#32134] Saturday, September 11, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
adedes

Total Points: 454
Total Questions: 114
Total Answers: 111

Location: Turks and Caicos Islands
Member since Fri, May 8, 2020
4 Years ago
;