3

I am trying to understand why I would choose an ER-X (Internal switch, yes, all ports) vs an ER-4 (Internal switch, no)

My understanding is both routers and switches can be used to connect multiple computers to a network (while routers can also connect that network to the Internet).

I am struggling to understand why switches are so prevalent.

sunknudsen
  • 1,060

3 Answers3

3

My understanding is both routers and switches can be used to connect multiple computers to a network (while routers can also connect that network to the Internet).

Routers with internal switches, yes. Otherwise no – a router only sits at the boundary between networks, but all of its ports are completely independent from each other.

The question sounds like you're mostly familiar with home routers, which almost always have an integrated switch for the LAN ports – that's why they can connect multiple computers to a network. They just don't explicitly advertise having a switch, whereas multi-purpose routers do.

Though, if a router doesn't have an internal hardware switch, it can still bridge multiple ports "in software" i.e. forwarding packets through the CPU, just like what you'd get when creating a 'bridge' on Linux. However, this will not provide nearly as good performance as you'd get from hardware switching. (It might be just fine for bridging 2 ports, less so for 8 or 16 or even 48 ports.)


In general, routers are not limited to connecting "a network to the Internet". They just forward packets according to specified rules, so they can connect any number of networks. Indeed the Internet itself consists of networks interconnected using routers, many of which might have 10–20 independent ports and be connecting as many networks in one place. (It is not quite like "having multiple WAN" ports – routers don't actually care about whether any of those networks is a "WAN" or a "LAN", and in many cases none of those labels apply.)

So the EdgeRouter devices and their firmwares are built for flexibility. Note how the ER-4 does not have any markings like "└──LAN──┘" – its three Ethernet ports are meant to belong to three separate networks. For example, they could be regular "WAN + LAN#1 + LAN#2" if you want to have two independent LANs (family/guest or secure/IoT or your/roommate's or whatever), but they could also be three different LANs (with Internet access provided by another router further away... or with no Internet access at all).

so by default, a router with a WAN port and two LAN ports would be used to connect two separate networks to the internet

If you are talking about the ER-4, it doesn't specifically have "a WAN port and two LAN ports" – it has three equal ports, which you configure in whichever way you need. But yes, you can use it to connect two LANs to the Internet, and that's probably what most people use it for.

What makes an Ethernet port "WAN" is not hardware but the configuration: 1) a "default route" pointing via this port; 2) firewall rules to block incoming connections from the Internet; and 3) NAT applied to packets going out of this port.

(both networks potentially using the same subnet)?

No – different networks are meant to use different IP subnet numbers. If you try to configure two separate interfaces to simultaneously be e.g. in the 192.168.1.0/24 network, only one will work correctly.

can computers on both networks "see" each other?

In general, any network can communicate with any other network (as long as routes are configured correctly). The only exception is that routers won't forward broadcast packets.

The exact answer depends on what you exactly mean by "see", as I've seen people ask this question having two very different things in mind:

  • Can they send packets directly to each other? Yes, definitely.

    For example, when you run ping 192.168.7.5 or visit http://192.168.43.99/, the directed packets will be forwarded to the correct network. That's what a router does, literally.

  • Can they discover each other using broadcast packets? Probably not.

    For example, when you open the "Network" section in Windows Explorer, it sends out a broadcast packet asking all other computers to respond. This packet will not be forwarded by routers, so only computers within the same LAN will show up in the list.

grawity
  • 501,077
1

Its a matter of convenience.

If you already have a switch in place, where all your devices are connected, then all you need as the router. You would then connect that router to the switch, thereby giving all those devices connectivity.

However, if you do not have a switch, a router with one integrated, saves you the need to buy a separate one, since everything would be connected to the switch portion of the router/switch combo.

Keltari
  • 75,447
0

I have seen Modems (normally ISP property) without Router and now commonly with Routers.

But any router I have seen / used in the last couple of decades includes a switch as part of being a Router. You put a router in to connect to a Modem (homeowner, small environment) to usually connect more than one device. Hence the need for an embedded switch.

Sometimes you need more LAN ports than the router offers so you may need to add an additional switch. A business may need to add a switch with a dozen or more ports.

To your question: If a router were available without a switch, the router component is "standard" and would be the same as if this router had a switch.

If you have no need for the combined switch, order it without.