LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 03-29-2006, 06:47 PM   #1
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
gateway -> switch -> network.. suggestions


Hey,

Networking has never been my strong point as I've never had more than one computer to experiment with. I do now though and the first thing I want to do it use it to replace my crappy modem/router that keeps dropping my ADSL connection at very inoppertune times I have a USB modem that I've already configured, here is a quick pic of my network setup:
Code:
              modem
                |
             gateway
                |
             router
               /|\
              / | \
             /  |  \
           PC1 PC2 PC3
Rather than buy any more network cards I just want to use my 4-port router as a switch. Yesterday I had a play around and I turned off the NAT and all that sort of jazz in the router, got the gateway PC connected and online and then set it's IP as my gateway but I couldn't access the outside world from PC1 at all. Ummm, not sure what to try next

If anyone knows of any guides, software etc that I'd need links would be appreciated. My main problem I think is I don't know how to make the router transparent or make PC{1,2,3} see through it to gateway to get their net access. I'll find something to run on the gateway to handle routing etc but yeah, any pointers would be appreciated as this is my first real play in networking and I'm stumped

Thanks
 
Old 03-29-2006, 08:48 PM   #2
WRSpithead
Member
 
Registered: Mar 2005
Posts: 60

Rep: Reputation: 15
Umm... I'm a bit confused with your diagram. Do you have a modem and a router between your computers and the internet or do you also have a "gateway". In other words, do you have 5 devices (including computers) or 6.

What kind of modem (let me guess, Actiontec?)
What kind of router?
 
Old 03-29-2006, 08:54 PM   #3
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Original Poster
Rep: Reputation: 57
Alright, the diagram could suck. The modem is just a stock ADSL USB modem, I've got that working so that's all good. Gateway is just a computer, I was originally planning to chuck some more ethernet cards in it and lose the router but if I can use the 4-port switch in my router to save $30 then that sounds good to me. All up I have 6 devices including the modem, basically I just want the router/switch to be transparent to PC{1,2,3} because they're accessing the internet through all of that. I don't know if running a dhcp server on the gateway (PC) would work because they'd have to go through the switch first.

Am I making any sense or should I just buy some PCI ethernet cards so then I know what I'm doing?
 
Old 03-29-2006, 09:33 PM   #4
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
Even if you turn off NAT, your router is still a router and not a switch. So PC1,2,3 still have to have the address ofthe router as the gateway. The only thing you do by turning off NAT is expose the downstream address space of that router to upstream systems. The downstream systems still use the router as their gateway.

If you want a switch, buy a switch. Personally, I would just use the router.
 
Old 03-30-2006, 05:53 PM   #5
WRSpithead
Member
 
Registered: Mar 2005
Posts: 60

Rep: Reputation: 15
I'm a bit confused as to why the "gateway" computer is there. Are you trying to set it up as a router or a proxy server? If so, what OS does it have?

Some other questions:

Do you know the router's IP address and are your computers on the same subnet? (192.168.1.* or 192.168.2.* or 10.0.0.* etc.)

Can you ping the router from any of the PC's?

Can you reach the internet with "gateway"?
 
Old 03-30-2006, 06:52 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
If you just want to use your router as a switch then plug the gateway into one of the LAN ports and do not use the WAN port.
 
  


Reply



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
gateway setting ./network-scripts/ifcfg-eth1 and ./network joshfields Linux - Networking 1 04-29-2012 04:27 AM
Suggestions on network plan logosys Linux - Networking 3 02-14-2006 05:45 PM
I'm tired of Mandrake and need some suggestions concerning good distro to switch to. Belegdol Linux - Distributions 1 03-25-2005 05:33 AM
suggestions for a KVM switch illtbagu Linux - Hardware 0 11-30-2003 04:57 PM
Apache-linux gateway to NT file server NEED SUGGESTIONS josephswagner Linux - Software 5 04-25-2003 02:05 PM

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

All times are GMT -5. The time now is 07:12 AM.

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
Open Source Consulting | Domain Registration