Router vs switch

thatoneguy

Joined Feb 19, 2009
6,359
A router is used to connect two different networks, in TCP/IP, two different subnets, such as 192.168.1.0/24 and 192.168.2.0/24. Systems on those two networks that want to communicate need to have a router between them.

A standard switch (not a layer 3 "routing switch") separates the collision domains of Ethernet, but lets all the systems connected to it share the same network, e.g. 192.168.1.0/24 would all plug into 1 or more switches, depending on the number of systems.

Prior to Gigabit, there were Ethernet "hubs" that connected systems on a network, the difference being that a hub is a single collision domain (see Wiki on Ethernet).

Any computer plugged into a hub can see all the traffic to all the computers on a network. A computer plugged into a switch can only see the traffic it is sending and receiving.
 
Top