Ubuntu Server Cannot Route to the Internet
Posted
by
ejes
on Ask Ubuntu
See other posts from Ask Ubuntu
or by ejes
Published on 2012-03-01T19:16:47Z
Indexed on
2012/06/03
22:47 UTC
Read the original article
Hit count: 321
I've been having this problem for weeks now, and I can't seem to figure out the problem.
My server can route the local network and serves it well, however it cannot access the internet. It can't be the router because everything else on this lan can route through the router. I've even switched the ethernet port.
Any help would be appreciated.
I've tried all the usual places, anyway, here are the configs:
root@uhs:~# uname -a
Linux uhs 3.0.0-16-generic-pae #28-Ubuntu SMP Fri Jan 27 19:24:01 UTC 2012 i686 i686 i386 GNU/Linux
root@uhs:~# 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
# auto eth1
# iface eth1 inet dhcp
auto eth0
iface eth0 inet static
address 192.168.0.3
netmask 255.255.255.0
broadcast 192.168.0.255
gateway 192.168.0.1
root@uhs:~# ping -c 4 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
64 bytes from 192.168.0.1: icmp_req=1 ttl=64 time=0.334 ms
64 bytes from 192.168.0.1: icmp_req=2 ttl=64 time=0.339 ms
64 bytes from 192.168.0.1: icmp_req=3 ttl=64 time=0.324 ms
64 bytes from 192.168.0.1: icmp_req=4 ttl=64 time=0.339 ms
--- 192.168.0.1 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 2997ms
rtt min/avg/max/mdev = 0.324/0.334/0.339/0.006 ms
root@uhs:~# ping -c 4 209.85.145.103
PING 209.85.145.103 (209.85.145.103) 56(84) bytes of data.
--- 209.85.145.103 ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3023ms
root@uhs:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0c:6e:a0:92:6e
inet addr:192.168.0.3 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::20c:6eff:fea0:926e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13131114 errors:0 dropped:0 overruns:0 frame:0
TX packets:10540297 errors:0 dropped:0 overruns:5 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3077922794 (3.0 GB) TX bytes:3827489734 (3.8 GB)
Interrupt:10 Base address:0xa000
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:7721 errors:0 dropped:0 overruns:0 frame:0
TX packets:7721 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:551950 (551.9 KB) TX bytes:551950 (551.9 KB)
root@uhs:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.0.1 0.0.0.0 UG 100 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
root@uhs:~# # PRETEND Traceroute
root@uhs:~# for i in {1..30}; do ping -t $i -c 1 209.85.145.103; done | grep "Time to live exceeded"
root@uhs:~#
© Ask Ubuntu or respective owner