Skip to content
Contents
GuidesOpenWrt

How to turn a spare OpenWrt WAN port into a LAN port

If one LAN socket already connects your old router to the main router, you can reuse the spare WAN socket for a computer. Leave it alone if it still carries internet access, failover or IPTV.

If one LAN socket already connects your old router to the main router, you can reuse the spare WAN socket for a computer. Leave it alone if it still carries internet access, failover or IPTV.

Identify the physical socket

Disconnect the WAN feed and keep just one uplink. Manage through another LAN socket, note the node address and download a backup.

Disable Wi-Fi on a test PC. On a working LAN socket record the DHCP server, subnet and gateway with ipconfig /all on Windows. Resolve unexpected DHCP or IPv6 router advertisements first.

Open Network → Interfaces → Devices in LuCI. Plug and unplug the test cable and watch LOWER_UP in the SSH output. The screenshots use virtual ports on OpenWrt 25.12.6. Map your own sockets and set an administrator password on real equipment.

ip link show

LuCI · Devices · br-lan

Choose the matching port layout

For a dedicated NIC or DSA user port, follow @wan to the actual device. If you see eth0.2, check what else uses its parent. Never bridge the whole shared parent.

Review firewall rules tied to device names. Remove the WAN and WAN6 logical interfaces only if they serve the retired line alone. Edit the existing LAN bridge, usually br-lan, and add the identified socket under Bridge ports. Keep existing members.

LuCI · Network → Interfaces → Devices → Configure → Bridge ports

LuCI · br-sw · VLAN 10 · eth2

Leave VLAN filtering off if already off. Otherwise copy a normal access port. In the br-sw example, U and the star on eth2 in VLAN 10 mean untagged egress and PVID 10 for untagged ingress. Include the new port only in the desired row.

Preserve Local and the uplink. On legacy swconfig use the switch matrix instead. Move that socket from WAN to LAN, match the access PVID and preserve the CPU column. Stop if the mapping is unclear.

Test and roll back

LuCI · Save → Save & Apply

Save and apply. Confirm access through the original management socket. If locked out, let the LuCI rollback timer expire.

Move the test PC to the former WAN socket and renew DHCP. Compare server, subnet and gateway. The address may change. Test a LAN service and a domain name, then repeat after a maintenance reboot.

No link? Swap cables.

For 169.254.x.x check bridge membership, PVID and uplink. For a foreign subnet disconnect suspect feeds immediately and check old WAN membership and extra DHCP servers. To undo, unplug the converted socket, restore the backup over the management port and verify WAN has left LAN before reconnecting the feed.

OpenWrt switch mode: clients have internet but LuCI or package updates fail

Linux DSA · OpenWrt DSA

Explore hardware

Comments