Networking – How to securely run two LANs on a single ethernet cable

ethernetgigabit-ethernetlannetworking

there are two rooms (A and B) connected by an ethernet cable (~50 meters long). All the main appliances are in Room A (router, server, firewall, smart switch…).
Currently all the devices in both the rooms works on the Private LAN with subnet 192.168.0.1/24.

I need to add a WLAN for guests on the Room B with subnet 10.59.0.1/24 which has to be separated from the Private LAN.

Given the fact that the electrician says it is nearly impossible to run another cable between the two room
What is the best way to do it?

P.S.
– I already tried with two cheap Y Ethernet splitter without luck (and however this would reduce a lot the bandwidth)

Thanks

Best Answer

It will need two things:

  • Switches that support VLANs and VLAN trunking.
  • The router must have more than one ethernet port.

You have to create two VLANs and one Trunk on each switch :

Room B:

VLAN A - Ports that connect internal users
VLAN B - Port to Wireless access point
Trunk - Port to the only ethernet cable going to Room A

Room A:

VLAN A - Ports that connect file, server, firewall and router
VLAN B - Port that connect to second ethernet port on router
Trunk - Port to the ethernet cable coming from Room B

In this way, both VLANs share the ethernet cable through the Trunk.

The second port on the router must be on the 10.59.0.1/24 network and there should be only one route pointing outside, to avoid that guests can go to the internal network.

enter image description here

Related Question