LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-16-2007, 07:13 AM   #1
maxsanders
Member
 
Registered: Jan 2006
Location: Southeast US
Distribution: Kubuntu Edubuntu Suse10.2
Posts: 53

Rep: Reputation: 15
Switch vs router?


Network switches typically have one "uplink" port and several other ports.

The difference is apparently one of "crossover".

My http server/firewall/router signal is distributed to the "uplink" port...then to two tiers of network switch through the uplink ports.

My problem is that I need to attach my Linux Terminal server/ DHCP server at the opposite end of the stream from my firewall/dhcp server/router.

This seems not to work. Do I need routers in place of the network switches to allow routing is both directions?

Here is the diagram:
Code:
                         WAN   internet
                          ||
                         HTTP server/router/firewall
                         ||
                   network switch
              ||            ||           ||
            client         client       client
                             ||
                           network switch
                             ||                         ||
                      DHCP server/terminal server      client
Can this be made to work? I know I could move up the DHCP/terminal server, but I am trying to understand possible network configurations and how these switches work. Thanks

Last edited by acid_kewpie; 07-16-2007 at 07:22 AM.
 
Old 07-16-2007, 07:29 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
The client with two switches is a gateway between networks and so will have to do NAT and some routing. Is that the idea?
 
Old 07-16-2007, 08:54 AM   #3
maxsanders
Member
 
Registered: Jan 2006
Location: Southeast US
Distribution: Kubuntu Edubuntu Suse10.2
Posts: 53

Original Poster
Rep: Reputation: 15
Bizarre network architecture

The box with HTTP server/ router/firewall does NAT/masquerading to get data from the modem IP passthrough (192.168.1.100) eth0
to the The second NIC on this box for the private network (192.168.2.100) eth1

Everything works....internet and file sharing works on everything except the data distribution from the DHCP server on the end of the line.

I know the network architecture is strange...it just evolved this way as I learned this stuff one project at a time (Apache/NAT/firewall/DHCP server/Terminal server.)


My switches are inexpensive Linksys/ Dlink consumer level items. They are not programmable so far as I know. Do I need a router at these points instead of switches if I want to distribute the DHCP data from the box at the end of the private network?



Thanks.
 
Old 07-16-2007, 10:26 AM   #4
Crito
Senior Member
 
Registered: Nov 2003
Location: Knoxville, TN
Distribution: Kubuntu 9.04
Posts: 1,168

Rep: Reputation: 53
The terminology you're using confuses the !@#$ out of me. I'm still trying to figure out what "at the opposite end of the stream" and "modem IP passthrough" means.

Anyway, an uplink port, as you discovered, just crosses the TX/RX pairs. You can use a regular crossover cable plugged into a regular port and it'll do the exact same thing. So just plug the switches into the router and the clients into the switches.
Code:
          router
            |
 client-- switch --client
            |
 client-- switch -- DHCP server
Ethernet with CAT5 uses a star topology, so there are no "ends" to terminate as with coaxial cable.
 
Old 07-16-2007, 11:00 AM   #5
maxsanders
Member
 
Registered: Jan 2006
Location: Southeast US
Distribution: Kubuntu Edubuntu Suse10.2
Posts: 53

Original Poster
Rep: Reputation: 15
Star topology

For some reason I was not thinking clearly about the star topology and had a linear model in mind. Things work great now, and thanks again.
 
  


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
Switch or router? Need the firewall? mawkish Linux - Security 7 05-10-2006 02:11 PM
Network Switch or Router? rat General 6 02-19-2006 07:42 AM
ipcop: a router into a switch curos Linux - Security 1 08-29-2005 04:01 PM
>1 router, one switch glj Linux - Networking 4 10-01-2002 02:32 PM
>1 router, one switch glj Linux - Networking 3 09-30-2002 03:25 PM

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

All times are GMT -5. The time now is 03:15 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