Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
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.
OK, chimps on a keyboard would be doing better than me. I have 2 computers and a linksys router (BEFSR41, I think, the one with the firewall and the VPN). Earthlink DSL is working fine and I share the connection thru the router; everything works fine with Win98SE. Pretty standard stuff, I think.
Redhat 8 is up and running as a dual boot on one of the computers. I can do what I need to do ( C++ and perl), but I would like to connect to the internet thru the linksys router. I have seen this thread several times, but it always seems to end "tweak a few settings, simple as pie".
So, on to the question: what precise actions are needed?
I can ping the router just fine, and the connection is stable. The browser will bring up the linksys screen just fine. However, when I point the browser to, say, redhat, it reports the site is not available. I can ping the other computer on the network just fine.
ifconfig reports the connection is up, and it seems fine. I have tried 'route add default gw 192.168.1.1 eth0' which would seem to be the right command, and then route -n gives 192.168.1.1 as the default gw. /etc/resolv.conf is empty, but how do I fill it in? domain, search and nameserver fields are needed, I guess, but how do I find out what they are ( earthlink seems to have lots of entry points, which makes sense).
The more I read about iptables, dns and dhcp the more I want to know, but it is about time for a little positive feedback (like getting to the internet with RH8)
Thanks!
OK. Start with the Linksys router. Go to the web interface and click on the DHCP tab, make sure that "Enable DHCP server" is selected. Save your changes. Now click on the Status Tab. In the WAN subsection, make sure that you have a public ipaddress assigned and that there are ip addresses for the DNS servers of your ISP.
So far, so good.
Now fire up X and run neat (start-button -> System Settings -> Network). It will prompt for the root password. You should see you interfaces listed. Click on your external interface (eth0 more than likely) so that it's highlighted. Now click edit. Under the General settings you need to click the radio button that says "Automatically obtain IP address settings with" and make sure that the drop down window says "dhcp". Also make sure that "activate device when computer starts" is selected. Click OK. Now click the "Apply" button.
Restart mozilla and try to navigate to a URL. You might have to reboot, but I doubt it.
OK, so I whip over to the linksys router, and DHCP server is already enabled. In the WAN subsection, there are public IP addresses and DNS servers already (makes sense). Fire up the network and eth0 is indeed the interface, and the radio buttons that says "automatically obtain IP address setting with" already says DHCP. The "activate device when computer starts" and "allow any user" buttons are checked.
It would seem no changes are needed, yet the browser connects just fine. Go figure. I have been fooling with this for a week, off and on, perhaps I just needed that one more reboot...
I will continue reading and learning, and I'm sure I will be back.
FWIW (literally) I made a contribution to this board. Capt_Caveman, think about an affero nickname. thanks again
Glad you got it to work! Remember when all else fails, reboot and if that doesn't work a swift kick helps sometimes. This is a great forum to learn linux, so come back and post again. Thanks for the kind words, just happy I could help.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.