Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 2804  / 2 Years ago, tue, september 20, 2022, 9:40:20

Like this:



root@tis-server:~# ping www.google.com
ping: unknown host www.google.com

root@tis-server:~# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_req=1 ttl=55 time=50.3 ms
64 bytes from 8.8.8.8: icmp_req=2 ttl=55 time=65.4 ms


It was tinkered by somebody else and I (and him!) cant trace his actions. The graphical connection manager also refuses to work thanks to the tinkering.



It also makes route add default gw 192.168.0.1 necessary for each reboot to atleast ping by IP.



How do I fix this?



It is Ubuntu 11.10






As requested:



Output of ifconfig:



eth0      Link encap:Ethernet  HWaddr 48:5b:39:ae:21:98  
inet addr:192.168.0.100 Bcast:0.0.0.0 Mask:255.255.255.0
inet6 addr: fe80::4a5b:39ff:feae:2198/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13194 errors:0 dropped:0 overruns:0 frame:0
TX packets:5156 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1420596 (1.4 MB) TX bytes:827295 (827.2 KB)
Interrupt:42 Base address:0x2000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:4817 errors:0 dropped:0 overruns:0 frame:0
TX packets:4817 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:377732 (377.7 KB) TX bytes:377732 (377.7 KB)


Output of resolv.conf:



Output of /etc/network/interfaces:



  GNU nano 2.2.6         File: /etc/network/interfaces                          

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.0.100
netmask 255.255.255.0

More From » networking

 Answers
0

For Ubuntu releases prior to 12.04 you can put nameserver information in /etc/resolv.conf provided it is not automatically generated by NetworkManager or another utility.



Type the following command.



echo 'nameserver 8.8.8.8' | sudo tee -a /etc/resolv.conf


To add the gateway to /etc/network/interfaces, open that file in an editor and add a line



gateway 192.168.0.1


to the appropriate iface stanza.


[#37795] Wednesday, September 21, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
lintical

Total Points: 344
Total Questions: 122
Total Answers: 106

Location: Sint Maarten
Member since Mon, Oct 12, 2020
4 Years ago
;