RH 8.0 Network not working
Duane Attaway
dattaway at attaway.net
Thu Oct 17 07:08:51 CDT 2002
On Wed, 16 Oct 2002, jo mojo wrote:
> When I started my Linux box, I tried to ping other machine (all begins
> with 192.168.2.x) behind my smc router. I can ping. But I can NOT ping
> IP address (use IP not domain name) outside my network. From my Win
> machine, I can ping my Linux box.
This is good. Now all you need is to know the address for the gateway.
The gateway address is where all your packets going out to the real world
get funneled through:
/sbin/route add default gw 192.168.2.1 eth0
if that is the address of your cable modem, router, or whatever is the
gateway device to your internet.
You can view your routes by typing:
/sbin/route -n
I use the -n option, so it won't try to resolve host names when it prints
them out. You should see a default route for things going to the network
at the end.
By this time you should ping outside your network. If you have problems
resolving dns names, your /etc/resolv.conf is the file you can stick the
addresses of nameservers in:
root at satellite linux # cat /etc/resolv.conf
nameserver 24.94.165.25
nameserver 24.94.163.34
nameserver 24.94.163.33
search kc.rr.com
Make sure resolv.conf is world readable, otherwise only root will be able
to resolve names, while users will find they can't.
That should get you going. If not, let me see what your routing table
looks like with that route command.
More information about the Kclug
mailing list