Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 1067  / 3 Years ago, wed, july 7, 2021, 5:12:52

the problem here is: when I'm using DHCP, everything works just fine.
I'm changing /etc/network/interfaces to use static ip like:



iface eth0 inet static
address 192.168.0.200
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1


restarting networking service: sudo /etc/init.d/networking restart



after restart, /etc/resolv.conf contains valid router's ip, tracert shows exactly the same hops, I can access any device within my local network, but when I'm trying to open a page or connect to the host out of my local network I'm getting: 'host is not resolved'.



That would be really nice if somebody could point me to my mistake(s). What am I doing wrong?


More From » server

 Answers
0

Thanks everyone for your help and tips!
problem is found and resolved. for some reasons interfaces file was corrupted. Restarting systems and recovering interfaces from previous edits with vim helped. When vim recovered this file, interfaces were edited again with the same settings. restart network interfaces and here'we go: system is online and uses static IP.


[#42319] Thursday, July 8, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
whipstder

Total Points: 189
Total Questions: 110
Total Answers: 99

Location: Uzbekistan
Member since Sat, Feb 27, 2021
3 Years ago
whipstder questions
Wed, Nov 9, 22, 09:45, 2 Years ago
Tue, Sep 14, 21, 10:54, 3 Years ago
Sun, May 28, 23, 03:52, 1 Year ago
Sat, Jul 17, 21, 07:10, 3 Years ago
;