LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-20-2004, 10:17 AM   #1
glenn69
Member
 
Registered: Jul 2003
Location: Chicagoland
Distribution: ArchLinux
Posts: 261

Rep: Reputation: 32
Question Can I connect a switch to a router?


Our office consists of 1 file server (linux w/samba) and 3 client computers using Windows. All computers, as well as our internet connection, are connected through a 4 port router. I would like to be able to occasionally add a laptop to that network, primarily to access internet.

Without purchasing a new router with more connections, can I utilize the 4 port switch that we have in our office. in other words, can i connect our switch to one of the connections on the router? Also, if I do this, what affect will the new configuration have on our samba config?

Thanks
 
Old 10-20-2004, 11:31 AM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Yes, you can "daisy-chain" switches. The only issue to be aware of is that some times a normal Ethernet cable won't work to connect switches and in fact you need to use a cross-over cable (an Ethernet cable with some of the wires flipped). Try the normal cable first; if you don't get a link-light on the switch within a few seconds, try a cross-over cable.
 
Old 10-20-2004, 11:31 AM   #3
okmyx
Member
 
Registered: May 2004
Location: Cornwall, UK
Distribution: Ubuntu 8.04
Posts: 464

Rep: Reputation: 31
If you have a decent switch it should have an uplink port (sometimes labeled MDI/MDI-X).

With a standard piece of CAT5 (not cross-over) plug one end in the uplink port and the other in a free port on the router.

This should be all you need to do, the electronics in the switch n router will take care of the rest.
 
Old 10-20-2004, 12:34 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Check the manual some of the new switches can autosense cable type.
 
Old 10-20-2004, 01:32 PM   #5
glenn69
Member
 
Registered: Jul 2003
Location: Chicagoland
Distribution: ArchLinux
Posts: 261

Original Poster
Rep: Reputation: 32
If I daisy chain the switch and router, will that make the switch a subnet?
Will I have to change my samba settings to add those clients to the network?

Thanks again
 
Old 10-20-2004, 01:48 PM   #6
linuxistan
LQ Newbie
 
Registered: Oct 2004
Location: Canada
Posts: 18

Rep: Reputation: 0
You haven't specified what type of switch that is. If this is a layer 3 switch, e.g. capable of understanding IP, then you are okay.
 
Old 10-20-2004, 06:27 PM   #7
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
A switch is a physical device, so it doesn't have an IP address of it's own and doesn't do any kind of routing or translation, it simply forwards traffic. Chaining switches together does not require separate subnets or networks of any kind.
 
  


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
ipcop: a router into a switch curos Linux - Security 1 08-29-2005 04:01 PM
router switch on network sopiaz57 Linux - Networking 4 09-24-2003 11:58 AM
diff router and switch wincrk Linux - Networking 2 03-05-2003 08:16 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 08:53 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