I have a Linux server which runs several services (namely Minecraft :)). Recently, I've been having trouble getting it to connect to the Internet. For example:
root@fcwtech:~# ping google.com
ping: unknown host google.com
and
root@fcwtech:~# ping 8.8.8.8
connect: Network is unreachable
however,
root@fcwtech:~# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_req=1 ttl=64 time=10.8 ms
In case it helps, resolv.conf:
root@fcwtech:~# cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 8.8.8.8
nameserver 8.8.8.4
nameserver 75.75.75.75
nameserver 75.75.76.76
search hsd1.va.comcast.net
and ifconfig:
eth0 Link encap:Ethernet HWaddr 00:11:11:3e:05:b9
inet addr:192.168.1.108 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::211:11ff:fe3e:5b9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2195 errors:0 dropped:0 overruns:0 frame:0
TX packets:657 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:172376 (168.3 KiB) TX bytes:84343 (82.3 KiB)
Interrupt:16
My setup has been working perfectly previously. I made no configuration changes, and I'm really not sure what I should do at this point.
ifconfigis deprecated on linux, useip addrinstead. And please include the output ofroutelto show your routing tables. – BatchyX Feb 17 at 19:47/etc/network/intefacesor/etc/sysconfig/network-scripts– xx4h Feb 18 at 7:39