Skip to content
Contents
GuidesOpenWrt

Run two WANs and a LAN on one OpenWrt trunk without mixing VLANs

Connect Optical Modems A, B, and the client to designated ports, each on a separate VLAN; the trunk link to OpenWrt carries multiple VLAN tags.

Connect Optical Modems A, B, and the client to designated ports, each on a separate VLAN; the trunk link to OpenWrt carries multiple VLAN tags. The physical bandwidth of a single port is shared among these VLANs, and bandwidth allocation is handled according to actual routing policies.

Write the same port table on both switch and router sides

Define the tagged, untagged, and PVID for each port to prevent operator lines from entering the management VLAN. On OpenWrt, each WAN is assigned to its own logical device, with LAN handling DHCP and VLAN regions separately. Connect only one optical modem at a time, and verify it operates only within the designated VLAN.

Verify the WAN and LAN interfaces on the uplink single-arm connection one by one

Connect a test host sequentially to the WAN and LAN ports of a router configured with VLANs. The router examines the source of each packet through the VLAN device. Identify which port is connected to the Internet service provider.

Terminals route through A and B, respectively, with routing and exit addresses compared. Disconnect the primary line and verify the backup line resumes new requests, and that the management path remains active. To determine concurrent throughput limits, test the same trunk under continuous traffic from other VLANs.

There is no overlap between WAN and internal network interfaces; management access is restricted to trusted interfaces only. During cross-network testing, physically disconnect the optical modem or line, then restore port marking.

Compare how management and isolated networks are bound to interfaces.
Compare how management and isolated networks are bound to interfaces. · OpenWrt 25.12.6 x86/64 (LuCI, QEMU/KVM)
Compare how management and isolated networks are bound to interfaces. · OpenWrt 25.12.6 x86/64 (LuCI, QEMU/KVM) Open the original image

Reference

Related guides

Reference

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

Explore hardware

Comments