(E-Mail Removed) wrote:
> my problem is quite weird.
>
> i have a linksys (wireless-g wrt54g) router at my home. it is connected
> to an internet cable modem. all my windows mahcines can connect to
> internet via this router perfectly either wirelessly or through the lan
> port on the router.
>
> the problem is with my linux desktop (installed fedora). it can get the
> dynamic ip address from the linksys router. and i can ping the router
> from my linux machine.
>
> i also set up a ftp server on my linux machine and my windows laptop
> can upload files to the linux machine. but i can not get to internet
> from my linux!
You probably don't have the Gateway setup, your fedora box has
to know what address to go to to get out on the internet (namely
your router at 192.168.1.1)
Try this command from a console window (use "System Tools -> Konsole from
the start menu):
/sbin/route
you should see some thing like this:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
default gate.isp.net 0.0.0.0 UG 0 0 0 eth0
If your gateway isn't setup, you will not see the "default" entry
and the "G" flag will be missing. Note, your Gateway address will
be different, I just put in gate.isp.net as an example.
Oddly, I don't see how to set the gateway in the Fedora GUI
tool (which is called system-config-network and is runnable
from the menu at System Settings -> Network).
I usually edit as root user this file:
/etc/sysconfig/network and add the GATEWAY entry:
GATEWAY=192.168.1.1
then you run /etc/init.d/network restart
or if you want a fast way to test this (i.e. add a gateway but
not edit files yet) do this as root:
/sbin/route add default gw 192.168.1.1
then try to go out on the Internet, if that works, edit the
/etc/sysconfig/network like I showed and the setting will
stick for the next reboots.
Mark
> i checked all the dns settings using my kde Network Device Control
> interface. the dns name server settings are exactly the ones shown in
> my router's configuration page (192.168.1.1). and also the
> /etc/resolv.conf has exactly these nameserver entries.
>
> i get really pi** off that this linux machine can not get to internet!
> your help is greatly appreciated. i have done all the basic checkings
> on my linux so please give me some really helpful suggestions.