6

That title is admittedly a bit confusing so let me explain below. This is probably a rookie question but I cannot seem to find an answer on the internet.

Can the router in the following diagram provide routing and internet to the devices connected to the 'upstream' switch? The router is in a different room to the modem and switch. I know if we remove the modem from the picture it just becomes a normal and perfectly functioning LAN (without internet access).

https://i.sstatic.net/dDm0M.png

Yes I am aware that the easy answer is just to swap the position of the switch and router, but the router in the pictured position provides better WLAN coverage to the rest of the building.

The modem cannot be re-positioned. Plugging the modem directly into the router is also not ideal, as it requires running a long cable along the floor to the router (as the ethernet wall panels only have one RJ45 socket each).

sawdust
  • 18,591
yogalD
  • 61

2 Answers2

2

Not unless both the switch and the router are more sophisticated than typical SoHo devices. Both the switch and the router would need to support VLANs and the router would need to support a single port that has both LAN and WAN devices on it.

If the switch doesn't have VLAN support, nothing would stop the PCs connected to the switch from taking the single external address that the internet connection offers. And the router's single port to the switch needs to support both LAN and WAN traffic.

You could eliminate the complexities on the router by connecting both a LAN and WAN port to the switch. But if you could do that, you could probably just as well connect the modem directly to the router's WAN port.

0

It Depends, One idea could be to use a Static Ip on the Switch, Create a Dry VLAN (Lets say VLAN2) on the switch for simplicity I'm using an 8 port.

The prerequisite is the incoming WAN should come from an RJ-45 or SFP depending on the switch and cable type used for WAN.

Untag vlan2 on port 8 (wan IN) untag VLAN2 on Port 7 (WAN OUT) then run the line to your Router, (port 7 on switch to the router) then from the Router's LAN port, plug that into port 6 (Untagged VLAN1)

This logically separates the 2 networks and would allow you to have WAN and LAN on the same switch. I've seen this done in MDF's before. Just make sure the GUI and SSH aren't accessible on VLAN2 for security reasons, there's no firewall between the switch and WAN in this use case.