Saturday, October 31, 2015

How to extend the number of ports on a Switch (connecting the switches together)?

How to extend the number of ports on a Switch (connecting the switches together)?

Connect another switch to your current switch. Either by cascading switches, where the uplink (if present) of the new switch is connected to a port on the original switch. Or by using stackable switches.

Cost/Needs are relative, based on the equipment you already have, bandwidth needs per machine, future expansion, etc. Remember, if you are cascading switches, the sum bandwidth total on the second switch will be limited to the speed of the port on the first switch. If this is not acceptable and your switch is not stackable, then you have to replace the switch with one with more ports.

What is the disadvantage to cascading multiple switches?

We did this in an office where we were stuck with 1 port in each room, and we put a 100Mb switch in each room. It was OK for basic tasks, web surfing, email, etc - but the BIG downside is that if you start doing heavy network traffic (for example, copying a multi-gig file from one office to another) you chew up ALL the bandwidth for two offices, because each office is sharing a single uplink.

You are almost describing the cisco multi-tier model. You have a 'core' layer connected to 'distribution' switches (or a 'head' switch in each closet) that will connect to 'access' switches that will finally distribute to the end users/servers/devices.

If you use switches and not hubs on all your network, there's not much of a problem doing that (it's even recommended to do it that way). Just remember the uplinks. If you have 48 ports running at 1GB most of the time and your uplink from access to distribution is only 1 GB, you can suffer of lack of bandwidth, so it's better that the uplinks from access to distribution to core to be larger than the average speed of the access ports (in my network now I have access ports at 1GB and 10GB fiber uplinks)

Also, remember to use STP (Spanning Tree Protocol) to prevent loops and provide failover configs on your network.

port expand

So you've run out of ports on your hub or switch! Or maybe that 4 port router you bought can't handle your growing network. Fortunately, there's an easy fix, but you need to follow some simple rules.

If your network is small, you can always connect two hubs or switches together. You do this by one of two ways:

1) Use a "crossover" cable to connect a "Normal" port on one hub to a "Normal" port on the other.

2) Use a regular UTP (Unshielded Twisted Pair) cable to connect the "Uplink" port on one hub to a "Normal" port on the other.

TIP: (In the following info, we'll refer to "hubs", but the same information applies to switches, and devices with built-in hubs or switches such as routers, gateways, etc.. You can mix hubs and switches, but you can't mix fixed 10BaseT and 100BaseT equipment. If you want to mix 10BaseT and 100BaseT components, make sure they're all 10/100 autosensing.)

TIP: A port on a hub or switch is considered to be "Normal" unless otherwise marked.

Some hubs and switches have a switch next to a port that controls whether it's a normal or uplink port.

Others have two connectors on one port circuit. The "Uplink" connector has the connections for the Receive and Transmit wire pairs reversed from the "Normal" connector's wiring (just like using a "crossover" cable). The "Uplink" allows you to use a normal UTP cable to connect two hubs/switches together.

Don't connect cables in both the "Uplink" and the port connector next to it at the same time! Your network will not work correctly and you'll give yourself a very confusing troubleshooting problem!

Finally, some hubs have neither a switch or Uplink port. If you have two of this type, you'll need to use a crossover cable to connect port to port.

TIP: Let the "link" light be your guide

If you are properly connected, the "Link" light on the port at both ends of your connection should be lit.

You might not need a crossover cable!

Some routers such as the 2Wire HP100 and NETGEAR RP114, have "auto-MDI/MDI-X sensing" ports. It doesn't matter whether you use a straight or crossover cable, or whether you daisy-chain to a normal or uplink port -- the LAN ports will automatically adjust! Very handy!

For larger sized networks...

If your network is larger than two hubs can handle, you can still expand, but you need to watch how you do it. The easiest thing to do is to take one hub and plug each expansion hub or switch into it, creating a "star" configuration of hubs. The diagram below shows such a configuration, connected to a router.

Hub cascading with router

You can repeat the "star" to one more level as shown below, but don't go to three levels or you may have speed, corruption or functionality problems with the resulting network.

Two level cascaded network diagram

Supersize it!

If you need even more ports, you may want to use a "stackable" hub or switch. "Stackable" hubs have a special connector on them that allow the internal circuitry to be connected together via a special cable. By connecting together the internal circuitry, the stacked hubs act as one hub with a lot of ports, instead of smaller hubs connected together. This Linksys page has more info if you want it.

Crossover cable

A "crossover" cable is just a normal 10/100BaseT UTP cable that is wired so that the Receive signal pins on one connector are connected to the Transmit signal pins on the other connector. A "crossover" cable can be purchased from a computer supply store, or you can make one, using the diagram below.

A nicer diagram of both normal and crossover UTP cables can be found on this Linksys page.

An excellent step-by-step how-to on making your own UTP cables can be found here at the Dux Computer Digest site. (Thanks to Julien Levi for the tip!)

TIP:Crossover cables are not just used for connecting hubs together. You sometimes need to use them to connect a cable or DSL modem to a router or gateway, due to the way that the 10/100BaseT jack on some modems is wired. As we said before, let the "Link" light be your guide!

Reference:

http://superuser.com/questions/628004/how-to-extend-the-number-of-ports-on-a-switch
http://serverfault.com/questions/163962/what-is-the-disadvantage-to-cascading-multiple-switches
https://en.wikipedia.org/wiki/Private_VLAN
http://www.practicallynetworked.com/networking/port_expand.htm

No comments: