LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Basic Kubuntu router, DHCP functioning. What about internet accessK (http://www.linuxquestions.org/questions/linux-networking-3/basic-kubuntu-router-dhcp-functioning-what-about-internet-accessk-887816/)

TwoGuesses 06-22-2011 05:34 PM

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

T3RM1NVT0R 06-22-2011 05:40 PM

@ Reply
 
Hi there,

Welcome to LQ!!!

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/

TwoGuesses 06-22-2011 11:09 PM

Thanks for the welcome! I will check out that page, thanks for the quick reply!
I will follow up, thanks!

TwoGuesses 06-23-2011 11:20 AM

Sorry for the delay, but here's where I stand.

I added
Quote:

net.ipv4.conf.default.forwarding=1
to /etc/sysctl.conf,

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?

TwoGuesses 06-25-2011 06:58 PM

Quote:

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.
Thanks for this, it pointed me in the right direction.
I found this page, and was able to get Internet on the client machines.

Thanks!

T3RM1NVT0R 06-26-2011 01:25 AM

@ Reply
 
You're welcome. Enjoy Linux!!!


All times are GMT -5. The time now is 11:18 AM.