Just because a host can communicate with other hosts of the same network does not mean it can communicate with hosts outside the network. In order for a host to communicate with hosts outside the network, it must be configured to route traffic properly.
Executing the command /sbin/route displays the current settings for routing purposes. There are several columns:
The command route should display a row like the following:
default <some-host> 0.0.0.0 UG 0 0 0 eth0
|
This designates <some-host> as the “default gateway” of the host.
If this line is missing, you can add your own default gateway as follows:
route add default gw <some-host>
|