[SOLVED] Basic Kubuntu router, DHCP functioning. What about internet accessK
Linux - NetworkingThis 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.
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.
Basic Kubuntu router, DHCP functioning. What about internet accessK
Hello!
I'm setting up a network for a project I'm working on. This network is to contain one primary computer with two NIC's, one to the interner one to a switch for several other computers (basically a router).
I have set up DHCP properly on Kubuntu, and it's working well. All of the clients are running Linux as well. However, what would be the best way to set up internet access on the client machines inside the network?
The primary machine itself is actually behind another Linksys router. Would this impede internet connection?
Thanks ahead of time.
**.... sorry about the extra "K" in the title... :P
Last edited by TwoGuesses; 06-22-2011 at 04:36 PM.
You have to enable packet forwarding on your DHCP server so that it can forward the packet that are destined for internet to your linksys router. Refer to this documentation: http://www.cyberciti.biz/faq/rhel-fe...sharing-howto/
I'm using Kubuntu, so I'm thinking that's why the stop/save/start commands for iptables didn't work, but I issued
Quote:
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
.
So, on my client machines the DNS server is set up in /etc/resolv.conf, but prior to mentioning this it says, "Open your Windows / Mac / Linux computer networking GUI tool and point router IP to 192.168.1.254 (eth0 Linux IP)." In my situation, eth0 is to the router and eth1 is to a switch, and the static ip for eth1(underlined to show I did change the above command) is 10.0.0.1.
How exactly would I point the router ip to, presumably, 10.0.0.1?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.