> > I am using Redhat 7.2 and Apache as my web server.
> > It worked well until several days ago. Now I cannot connect to the
> > internet. There are no errors when the computer is booting. But when I use
> > the following
> > command,
> > ping 127.0.0.1
> > I get
> > Network is unreachable.
What the message is saying is that when the system attempted to send
an ICMP echo request to 127.0.0.1, it couldn't find the network
defined in the routing table. Basically, it doesn't know where to
send the ping.
This is the message you would get if your routing table was
misconfigured or trashed. Try doing "netstat -rn" and comparing the
output to a good system. You can also do a search on google for
information on what the routing table should look like.
You should always be able to ping the local loopback, 127.0.0.1. Or,
the system doesn't even have a network NIC configured? What does
"ifconfig -a" tell you? You should always see the loopback listed,
even if the network driver isn't loaded for the NIC.
If just the loopback interface is missing, you can try adding it
root# ifconfig lo 127.0.0.1
root# route add -host 127.0.0.1 lo