Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 1932  / 2 Years ago, thu, february 17, 2022, 9:40:08

I installed Ubuntu server 12.04. I configured my network like this:



auto eth0
iface eth0 inet static
address 121.127.36.164
netmask 255.255.255.0
network 121.127.36.0
broadcast 121.127.36.255
gateway 121.127.36.1
dns-nameservers 208.67.222.222 208.67.220.220


with these configurations, I cannot connect to internet.



Whenever I do



ping www.google.com


it just waits. When I do



ping 77.245.149.23


or any other IP, it returns unreachable host error. Could you please help me fix this error?



Edit: I can ping the IP from my network. My modem is set to DHCP enabled dynamic IP.



Edit 2:
Sorry for my late explanations, but I must firstly explain the scenario:



There is a company with 20 staff. I developed a web application with PHP/CodeIgniter for them. Where they want to use it inside their local network.



I install an Ubuntu server 12.04, and want to make it a local server for this purpose. I need to assign a static IP address for this server, where it musnt changed.



I have a TP-Link Wireless Router, where the internet connection is provided through this router. It is DHCP enabled.



Now for this, what I need? How I must configure my server?


More From » server

 Answers
2

I solved my problem like this: I reserved an IP address to my server MAC address from my Router interface and it worked perfectly. Thanks for the guys here which they helped me solve my problem.



Also, thank you all too.


[#36462] Saturday, February 19, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
lowovey

Total Points: 287
Total Questions: 98
Total Answers: 117

Location: Bosnia and Herzegovina
Member since Thu, Jan 14, 2021
3 Years ago
;