Potential Cause of Failure to Acess the Internet

Failure may commonly occur when loading some websites in a web browser of a Linux system, say google.com. Several potential misconfigurations, as listed below, might partially account for a failure.

1. Wrong network configuration:
# ping google.com
# cat /etc/sysconfig/network-scripts/ifcfg-eth'x'

2. Wrong DNS configuration:
# nslookup google.com
# dig google.com
# cat /etc/resolv.conf

3. Wrong configuration of the web browser:
# curl google.com

4. Wrong firewall configuration:
# cat /etc/sysconfig/iptables

5. Wrong routing configuration:
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface * U 0 0 0 eth2
link-local * U 1004 0 0 eth2
default wiles UG 0 0 0 eth2
Make sure the gateway is correctly configured for the default destination