1

I initially had a problem where ping google.com results in

ping:unknown host google.com.

After following the guide below which instructed to uninstall and reinstall resolvconf, now I can no longer reinstall resolvconf because the network doesn't work. I believe I can resolve this by downloading it from the url directly but realized that there's a deeper issue where ping 8.8.8.8 returns

connect: Network is unreachable

How can I resolve this? My settings in /etc/network/interface

    iface eth0 inet static
        address 10.34.160.0
        netmask 255.255.255.0
        network 10.34.160.0
        broadcast 192.168.0.255
        gateway 192.168.0.1
        dns-nameservers 8.8.8.8 8.8.4.4

ifconfig output:

eth0     Link encap:Ethernet MWaddr f0:76:ic:ed:04:61
         inet addr:10.34.32.1 Bcast:10.34.32.255 Mask:255.255.255.0

         UP BROADCAST MULTICAST MTU:1500 Metric:1
         RX packets:0 errors:0 dropped:0 ovveruns:0 frame:0
         collisions:0 txqueuelen:1000
         RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

lo       Link encap:Local Loopback
         inet addr:127.0.0.7 Mask:255.0.0.0
         inet6 addr: ::1/128 Scope:Host
         UP LOOPBACK RUNNING MTU:65536 Metric:1
         RX packets:256 errors:0 dropped:0 overruns:0 frame:0
         RX packets:256 errors:0 dropped:0 overruns:0 carrier:0 
         collisionns:0 txqueueien:1
         RX bytes:10944 (18.9KB) TX bytes:18944 (18.9 KB)

ip route output:

default via 10.30.32.1 dev eth0 onlink linkdown
10.34.32.0/24 dev etho proto kernel scope link src 10.34.32.1 linkdown
169.254.0.0/16 dev eth0 scope link metric 1000 linkdown

"ping: unknown host google.com" but IPs works fine

lusi
  • 11

0 Answers0