Skip to content
Contents
GuidesOpenWrt

One cable to the living-room router: carry WAN out and LAN back

Record how the router gets online when connected directly to the modem. Keep a patch cable for rollback. This layout uses both the WAN and a LAN port on the living-room router.

Record how the router gets online when connected directly to the modem. Keep a patch cable for rollback. This layout uses both the WAN and a LAN port on the living-room router.

Wiring and port membership

Edit the service bridge on each switch and enable bridge VLAN filtering. Add one row per VID. Tag both ends of the trunk. Put each ordinary edge port in its own row as untagged with that PVID. Keep a separate management port. A transit bridge needs no additional DHCP server.

Port VID 100 VID 200
Modem broadband ↔ router WAN U/P —
Room LAN ↔ router LAN — U/P
A ↔ B trunk T T

T carries a tag. U/P strips it on egress and assigns the PVID on untagged ingress. A dash excludes the port.

LuCI · br-sw · VID 10 / 20 · eth1 T · eth2 / eth3 U*
OpenWrt 25.12.6 · x86/64 QEMU · LuCI · br-sw · VID 10 / 20 · eth1 T · eth2 / eth3 U*

Test WAN and LAN separately

Use two distinct test pools to verify the broadcast domains before connecting the modem. Bring up the original WAN service and check the room PC’s DHCP server and gateway. If WAN works but the PC gets no lease, inspect the return VID. If home DHCP appears on WAN, disconnect the uplink and correct the ports. Restore direct wiring to roll back.

What the lab showed

Two OpenWrt 25.12.6 x86/64 software bridges carried separate pools on VIDs 10 and 20. Removing VID 20 from the far trunk stopped leases on the second port. Restoring it restored DHCP. ISP authentication, physical port throughput and picture quality were outside this test.

DHCP · eth1 → 10.107.10.1 · eth2 → 10.107.20.1
OpenWrt 25.12.6 · x86/64 QEMU · DHCP · eth1 → 10.107.10.1 · eth2 → 10.107.20.1
VID 20 · udhcpc: no lease
OpenWrt 25.12.6 · x86/64 QEMU · VID 20 · udhcpc: no lease

Plan four VLANs on OpenWrt and map each managed switch port

How to carry home Ethernet and ISP IPTV to the living room on one cable

Reference

Check the model, region and hardware revision on the label before selecting firmware.

Explore hardware

Comments