Can I connect a switch to a router?

5

Ok sorry if this is the most basic question in the world but for years I have needed more ethernet ports in my room and my whole house is wired with 1 ethernet port in each room, I also wanted to be able to plug into the room ethernet port with another router to get more plugins and that wasn't possibe I don't think. So can you plug a switch into this and have more ports with just as much speed?

JasonDavis

Posted 2010-01-04T03:09:38.867

Reputation: 4 852

Answers

12

Yes. In fact, I have a gigabit switch connected to my 100 router. All the gigabit computers are connected to the switch. When two of those computers want to talk to each other, they bypass the router and talk at gigabit speeds (sadly, well short of theoretical, but much faster than 100). And of course they talk to the rest of the LAN and the internet just fine.

Ken

Posted 2010-01-04T03:09:38.867

Reputation: 7 497

the tricky part is to understand how networking works... without that: all black magic. – akira – 2010-03-18T14:56:13.997

thats is great I wish I knew this about 8 years ago =) by any chance would each line you run from a switch have a seperate IP or I wuld imgaine they are all the same IP? – JasonDavis – 2010-01-04T03:19:08.773

6Every computer, whether connected to the switch or directly to the router, has its own IP address, provided by the router's DHCP/NAT function. That's on the "inside" of the LAN. From the outside world, it appears as just one address, assigned by the ISP. In other words, the switch simply "extends" the router, adding more ports -- nothing tricky to it. – Ken – 2010-01-04T03:28:48.650

1

Yes. Things would be quite complicated if the internet had a router somewhere with 1,000,000,000 ports in it that every device in the country had to connect to.

user23307

Posted 2010-01-04T03:09:38.867

Reputation: 5 915

It's basically how the phone system worked before it went digital. – LawrenceC – 2013-02-24T21:02:23.780

1

Yes, this is how a lot of enterprise networks are set up actually. There is typically a border router which is the gateway to the internet, then switches section things off into their own collision domains.

So can you plug a switch into this and have more ports with just as much speed?

If you're referring to LAN speed, then yes, assuming the switch's speed is at least the same as the router, and it is a non-blocking switch.

John T

Posted 2010-01-04T03:09:38.867

Reputation: 149 037

1

Yes. You can connect as many as you want as long as they are downstream to add more ports and extend the client base; albeit taking into account limitations and constraints of CAT/Ethernet IEEE standards and practical signal attenuation.

If you added switches upstream it would be for whole different set of reasons that is beyond the scope of this question.

To better illustrate I share a diagram of the Home 'Media' Network I put in place almost a decade back that illustrates Switches, Routers & Wireless APs/ Routers. It will help you plan and visualize how you wish to add switches and equipment to extend your network and ports.

I will write more about it later today. I figured this should help for now.

enter image description here

Here's another one from a fellow (Sunil) here on this forum. enter image description here

Alex S

Posted 2010-01-04T03:09:38.867

Reputation: 811