Networking Forums

Networking Forums > Computer Networking > Linux Networking > can not connect to internet via my linksys router on fedora linux desktop

Reply
Thread Tools Display Modes

can not connect to internet via my linksys router on fedora linux desktop

 
 
ihomestore@gmail.com
Guest
Posts: n/a

 
      04-09-2006, 02:13 AM
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!

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.

 
Reply With Quote
 
 
 
 
Mark
Guest
Posts: n/a

 
      04-09-2006, 02:47 AM
(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.


 
Reply With Quote
 
ihomestore@gmail.com
Guest
Posts: n/a

 
      04-09-2006, 04:03 AM
it works! thanks a lot.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to remotely (internet) connect to PC desktop in SE R2 domain John L Windows Networking 2 04-21-2009 05:18 AM
Cannot connect desktop PC to router but laptop can connect 405 TD Estate Broadband 6 05-14-2007 02:47 PM
SSH into Fedora 5 box and have different desktop jcw248 Linux Networking 0 06-29-2006 12:58 AM
Router won't connect immediately after booting desktop PC jcwhit Wireless Internet 7 10-06-2003 05:52 PM
Linux Box (Red Hat 9 Can't Connect to Internet DavidNoack Linux Networking 0 07-08-2003 01:04 AM



1 2 3 4 5 6 7 8 9 10 11