Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

I can't connect to the Internet from our server. I'm able to ping the default gateway, LAN connectivity works fine but I can't ping any public IP (say,, an open DNS server which I know replies to ping).

When I do a traceroute, I don't even see the first hop.

The configuration SEEMS to be fine (I'm no Linux expert, I might be missing something). I have the server's IP address set via DHCP, but the MAC address is bound to the IP. I wanted to see if that helped, but no:

root@linux:/home/user# ifconfig
eth0      Link encap:Ethernet  HWaddr b8:ac:6f:95:94:f4  
          inet addr:  Bcast:  Mask:
          inet6 addr: fe80::baac:6fff:fe95:94f4/64 Scope:Link
          RX packets:1223325 errors:0 dropped:146 overruns:0 frame:0
          TX packets:974313 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:983138831 (937.5 MiB)  TX bytes:742552277 (708.1 MiB)

lo        Link encap:Local Loopback  
          inet addr:  Mask:
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:5290 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5290 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:454378 (443.7 KiB)  TX bytes:454378 (443.7 KiB)

root@linux:/home/user# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
auto eth0
iface eth0 inet dhcp

root@linux:/home/user# cat /etc/resolv.conf 
domain REMOVED
search REMOVED

root@linux:/home/user# ip route dev eth0  proto kernel  scope link  src 
default via dev eth0 
share|improve this question
That sounds like a problem with the gateway, not the server. – cjm Sep 18 '13 at 18:31
And your gateway just routes any traffic into the internet? – Nils Sep 18 '13 at 20:28
Can you resolve names from the Internet? (i.e. what does host return?). Additionally, do you have any iptables configuration in the server? (i.e. what does iptables -nL return when run as root?) – Julian Garla Feb 18 at 20:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.