Can a router receive WAN from a switch while also routing through the same switch?

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).

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).

3

1 Answer

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.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like