1
I'm working with a minimal installation of RHEL 6.
When I first turned this machine on, it couldn't ping anybody.
It turned out that I needed to add the GATEWAY
under /etc/sysconfig/networking
and configure /etc/sysconfig/network-scripts/ifcfg-eth0
to point to the gateway and boot on start using DHCP.
As of now, I can access any other machine on the local network; I can even SSH into the machine I'm working with. What I still cannot do is access anything outside of the local network; I can't access the internet.
Consider:
[root@dbrepa ~]# ping dev-108a -c 4
PING dev-108a.some.domain.net (192.168.108.119) 56(84) bytes of data.
64 bytes from dev-108a.some.domain.net (192.168.108.119): icmp_seq=1 ttl=64 time=0.276 ms
64 bytes from dev-108a.some.domain.net (192.168.108.119): icmp_seq=2 ttl=64 time=0.249 ms
64 bytes from dev-108a.some.domain.net (192.168.108.119): icmp_seq=3 ttl=64 time=0.250 ms
64 bytes from dev-108a.some.domain.net (192.168.108.119): icmp_seq=4 ttl=64 time=0.259 ms
--- dev-108a.some.domain.net ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3000ms
rtt min/avg/max/mdev = 0.249/0.258/0.276/0.019 ms
[root@dbrepa ~]# ping example.com
PING example.com (93.184.216.119) 56(84) bytes of data.
^C
--- example.com ping statistics ---
7 packets transmitted, 0 received, 100% packet loss, time 6741ms
[root@dbrepa ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.108.0 * 255.255.255.0 U 0 0 0 eth0
link-local * 255.255.0.0 U 1002 0 0 eth0
default dc-108a.cool.do 0.0.0.0 UG 0 0 0 eth0
dev-108a
is a server on our network, and as you can see I can speak to it with no issues.
However, for example.com
, I can retrieve the IP address from the DNS for example.com
, in my case 93.184.216.119
, but then ping
just hangs.
It's still working---it's still sending out packets, but none of them will get replies and this process will continue until kill.
As per the comments, I've brought the local firewall down (with service iptables stop
) to no effect.
What could be going wrong? How am I getting an IP address while not able to access it?
I know that I am missing several core UNIX tools; I am at least missing:
man
dig
traceroute
telnet
wget
Please, provide output of 'route' command – VL-80 – 2013-08-08T20:07:46.357
name resolution is provided by DNS, even through ping. Pings could be filtered, yet DNS lookups will still go through – Keltari – 2013-08-08T20:16:08.440
@Nikolay Thanks, and done. Note that
dc-108a
is our domain controller. – Sean Allred – 2013-08-08T20:16:18.947@Keltari yay learning! What could be filtering the pings? I brought the local firewall down (with
service iptables stop
) to no effect. (I'll edit that into my Q.) – Sean Allred – 2013-08-08T20:17:27.797@vermiculus. Could you ping your default router and see if you able to reach it? – VL-80 – 2013-08-08T20:20:37.237
@Nikolay If router/gateway are the same thing (which my sysadmin guy says they are, at least for us) then yes I can. – Sean Allred – 2013-08-08T20:22:32.130
Yes. In our case we are talking about host dc-108a.cool.do... – VL-80 – 2013-08-08T20:23:59.437
@Nikolay Yep, still can. – Sean Allred – 2013-08-08T20:26:34.930