LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 06-22-2011, 05:34 PM   #1
TwoGuesses
LQ Newbie
 
Registered: Jun 2011
Distribution: Arch
Posts: 16

Rep: Reputation: Disabled
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 05:36 PM.
 
Old 06-22-2011, 05:40 PM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, Ubuntu, SLES, CentOS
Posts: 1,790

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
@ 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/
 
Old 06-22-2011, 11:09 PM   #3
TwoGuesses
LQ Newbie
 
Registered: Jun 2011
Distribution: Arch
Posts: 16

Original Poster
Rep: Reputation: Disabled
Thanks for the welcome! I will check out that page, thanks for the quick reply!
I will follow up, thanks!
 
Old 06-23-2011, 11:20 AM   #4
TwoGuesses
LQ Newbie
 
Registered: Jun 2011
Distribution: Arch
Posts: 16

Original Poster
Rep: Reputation: Disabled
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?
 
Old 06-25-2011, 06:58 PM   #5
TwoGuesses
LQ Newbie
 
Registered: Jun 2011
Distribution: Arch
Posts: 16

Original Poster
Rep: Reputation: Disabled
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!
 
Old 06-26-2011, 01:25 AM   #6
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, Ubuntu, SLES, CentOS
Posts: 1,790

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
@ Reply

You're welcome. Enjoy Linux!!!
 
  


Reply

Tags
client, dhcp, network, router, server


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problems configuring internet - kubuntu - dhcp xcorsary Linux - Newbie 2 09-18-2008 11:42 AM
No internet through linksys router on Kubuntu Gutsy lady_chance Linux - Networking 3 11-24-2007 03:15 PM
internet via dhcp from a linksys router GeNeSISSIE Linux - Networking 6 11-24-2004 09:36 AM
Yikes! No one can get Internet thru Linux gateway/router/firewall/DHCP Avatar Linux - Networking 14 02-11-2004 09:50 PM
DHCP using eth1 for internet eht0 for router... Zero-0-Effect Linux - Networking 12 01-17-2004 05:06 PM


All times are GMT -5. The time now is 02:22 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration