LinuxQuestions.org
Visit Jeremy's Blog.
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 12-21-2006, 09:57 PM   #1
jrtayloriv
Member
 
Registered: Jun 2004
Location: Inland NW, US
Distribution: Ubuntu
Posts: 366
Blog Entries: 1

Rep: Reputation: 44
using switch to share internet connection


I just configured a computer to be a dhcp server and use ip-masquerading. it is connected to the cable modem. I have a dss-16+ switch (d-link) which is connected to the second networking card on the above mentioned computer. I would like to get a second computer to receive an ip address via dhcp from the first computer through the switch. i do not have any crossover cable. can i use a switch to do this? i followed the instructions from the gentoo home router howto. is there anything else i need to set up? do i need to do anything for the client computer other than telling it to configure eth0 using dhcp?

thanks,
jrtaylor
 
Old 12-22-2006, 01:02 AM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,398
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Sure, you can share the connection through the Linux router by connecting everything to a switch or hub. There shouldn't be any configuration required at the client end (that, after all, is the point of using DHCP, right?). The server end can be a little more complex. Read, learn, read, learn, repeat until t works. Come back here with any more specific questions. Good luck.

--- rod.
 
Old 12-23-2006, 08:36 PM   #3
jrtayloriv
Member
 
Registered: Jun 2004
Location: Inland NW, US
Distribution: Ubuntu
Posts: 366

Original Poster
Blog Entries: 1

Rep: Reputation: 44
Solved

SOLVED: I got it to work. All I had to do was switch the cables to different ports on the switch. I got the switch for free, and I guess some of the ports being broken was the reason why...

Thanks anyway,
jrtayloriv
 
  


Reply


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
Cannot share internet connection? drogatoo Linux - Networking 2 12-01-2006 05:24 PM
Share Internet Connection sam_casperson Linux - Networking 3 02-03-2005 07:07 PM
Help! Cannot share my Internet connection... Domiriel Linux - Networking 2 11-25-2003 02:27 PM
how to share internet connection digihall7 Linux - Networking 5 10-23-2003 12:53 AM
HOW to share Internet connection zaldyd Linux - Newbie 1 07-25-2003 01:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:57 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration