Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-02-2002, 02:13 PM
|
#1
|
LQ Guru
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280
Rep:
|
DSL/ Linksys DSL Router/ Linux cant see the network...
THE SCENARIO
I have a DSL line going into a Linksys 4-port DSL Router. Connected to it are 4 computers. A Win 98 box (mom's), a Win 2K box (dad's), and win 2k server box (just sits there doing nothing), and my computer (runnin Win2K, XP, 98 and RedHat 7.2). The DSL line doesnt use my phone lines (straight ethernet line into the house due to fiber optic phone lines). The router holds all the info about the ISP including DNS info, mail server info and it also logs into the ISP on demand (dynamic IP, using bellsouth fast access....they drop the connection when inactive ). Basically the router is a gateway.
THE PROBLEM
When running Linux i cant get online. If I ping...let's say.. yahoo.com , it times our or says unknown host or whatever it says that lets me know im not connected to the outside world. How to i configure Linux to see the internet.
Thanks for any replies.
|
|
|
04-02-2002, 02:20 PM
|
#2
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
add your DNS servers to the /etc/resolv.conf file..
and make sure you can ping the router..
-trickykid
|
|
|
04-02-2002, 04:03 PM
|
#3
|
LQ Guru
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280
Original Poster
Rep:
|
Didnt Work
Well I rebooted my computer, started Linux, edited my resolv.conf file to include the ISP provided nameservers, opened up Netscape..couldn't connect to yahoo.com (my favorite test site). i then opened up the console, pinged a few computers on my network including the router itself....all were pingable...pinged yahoo.com....nothing. Went to my dads computer, tried to ping the Linux box....nothing, tried to telnet to it.....nothing. Is there a way to tell Linux to Obtain IP address and DNS info automaticaly much like the way Windows does???? That would make everything work seeing as how the router willingly supplies that information to any computer connected to it.
Distro: RedHat 7.2
Another side question....how do you get into KDE from console mode...when i type startx it defaults to gnome. I like gnome and it has KDE menus, but i'd still like to use KDE seeing as how it is taking up space on the HDD.
|
|
|
04-02-2002, 04:05 PM
|
#4
|
Member
Registered: Dec 2000
Location: Indiana
Distribution: Red Hat 7.3/Mandrake 8.2/9.0
Posts: 154
Rep:
|
one other suggestion...
make sure your gateway is set to the internal address on the router. You can see this by doing a netstat -r or route command. Your "default" destination should be the internal address of your router. i.e. 192.168.1.1. I would also follow the suggestions from the previous post.
|
|
|
04-02-2002, 04:08 PM
|
#5
|
Member
Registered: Dec 2000
Location: Indiana
Distribution: Red Hat 7.3/Mandrake 8.2/9.0
Posts: 154
Rep:
|
strange..
Our replies were only 2 minutes apart...anyway...so...you could ping internal machines from the linux box, but not the other way? Can you post the output from "ifconfig" and "route". Those may be helpful to see. Just from what you have said if you can ping internal machines, but not external it sounds like a gateway problem to me.
|
|
|
04-02-2002, 04:34 PM
|
#6
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
how are you setting up your network from the router.. static or dhcp ?? what output are you getting with the ifconfig command ??
-trickykid
|
|
|
04-02-2002, 07:24 PM
|
#7
|
LQ Guru
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700
Rep:
|
Re: Didnt Work
Quote:
Originally posted by Robert0380
Is there a way to tell Linux to Obtain IP address and DNS info automaticaly much like the way Windows does????
|
Absolutely, as root:
dhcpcd eth0
If the Linksys router is set to run dhcp that should set the route to the gateway in your table, overwrite /etc/resolv.conf, and give you an IP.
Cheers,
Finegan
|
|
|
04-03-2002, 12:32 AM
|
#8
|
LQ Guru
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280
Original Poster
Rep:
|
Thanks for the help....will try
I have just read all the posts, I will try out the different suggestions, just wanted to say thanks in advance.
|
|
|
04-03-2002, 02:13 AM
|
#9
|
LQ Guru
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280
Original Poster
Rep:
|
dhcpcd worked!!!!!!!!!!
dhcpcd worked, thanks a million....im using Linux and Netscape to do this post. My 1st online activity with Linx since installing it months ago...now on to that Web Server...thanks guys.
|
|
|
04-03-2002, 04:09 AM
|
#10
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
put this line in /etc/rc.d/rc.local or run it somewhere to keep your connection up
you should probably use the ip of your isp default gateway if you know it, or use an external site that's always up
ping -i 30 xxx.xxx.xxx.xxx > /dev/null &
or
ping -i 30 yahoo.com > /dev/null &
|
|
|
All times are GMT -5. The time now is 08:11 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|