Skip to content
Contents
GuidesOpenWrt

Redmi AX6 as a switch: why do LAN2 and LAN3 fail when the main router can dial in?

The main router can connect to the ISP and serve Wi-Fi even if the home LAN never makes it back to the AX6. Check the return VLAN on both ends of the cable. This guide covers bridge VLAN layouts such as those in ImmortalWrt 23.05.7 and 24.10.4.

The main router can connect to the ISP and serve Wi-Fi even if the home LAN never makes it back to the AX6. Check the return VLAN on both ends of the cable. This guide covers bridge VLAN layouts such as those in ImmortalWrt 23.05.7 and 24.10.4.

Identify the VLAN carrying the home LAN back

In this example VID 10 carries broadband and VID 100 returns the home LAN. Check the main router's subinterfaces and swap the columns if your assignments are reversed. Connect the dial-up interface to 10 and the home bridge to 100; the home network provides DHCP. Tag both VLANs on the trunk to the AX6. Give ordinary PCs on LAN2 and LAN3 untagged egress and PVID 100, with no membership in 10. If the optical modem delivers tagged frames, check its actual handoff before configuring that port.

AX6 Port Broadband 10 Home LAN 100
Trunk to router Tagged Tagged
LAN2 / LAN3 Excluded Untagged, PVID 100
Untagged modem handoff Untagged, PVID 10 Excluded
Back up first and keep a management port available. Read this screen for port roles only. The virtual trunk is eth1. Here eth2 and eth3 serve different VLANs, 10 and 20. In the AX6 table above, both PC ports belong to the home LAN.
OpenWrt 25.12.6 · QEMU · Back up first and keep a management port available. Read this screen for port roles only. The virtual trunk is eth1. Here eth2 and eth3 serve different VLANs, 10 and 20. In the AX6 table above, both PC ports belong to the home LAN.

Renew the lease on each port with the same computer

Back up the configuration and keep a management port available. In LuCI open Network → Interfaces → Devices and edit the actual bridge. Unplug and reconnect one cable to identify the port whose state changes. Disable the computer's Wi-Fi and renew its lease on each port. If both fail, check VID 100 on the shared uplink and the home interface on the main router. If just one fails, swap cables and check its PVID. If a home address is assigned but web access fails, test the gateway and then DNS.

Verify both access ports and keep a way back

For each port record the DHCP server, default gateway and web access result. Both should use the intended home network. Keep the PC ports out of the broadband VLAN. If necessary restore the port table and subinterfaces and test the main router's LAN directly with a separate cable. In the virtual-switch example, removing one VID from one end of the trunk affected only the corresponding client. This does not diagnose a hardware fault in an AX6.

Switching test in QEMU: removing VID 20 from the trunk stopped lease acquisition on only that client. The AX6 example uses different VLAN IDs.
Switching test in QEMU: removing VID 20 from the trunk stopped lease acquisition on only that client. The AX6 example uses different VLAN IDs.

Plan four VLANs on OpenWrt and map each managed switch port

Explore hardware

Devices mentioned

Comments