I installed OpenWRT 19.07.3 on TP-LInk RE450, a device with only one LAN RJ45 network connector, which I am planning to use as MESH to extend my network. The problem is that there is no WAN and I need to upgrade and install a few packages.
I want to avoid bricking the RE450 which could happen very easily because there is only one LAN. What is the best and easiest approach?
Now how do I declare the Wireless client as WAN in OpenWRT? I tried to create a bridge interface, but it did not succeed in receiving a DHCP address. Can anyone guide me, thanks ...
You've created a wifi client but not attached it to any network. Add option network 'wan' in /etc/config/wireless. In /etc/config/network, create a non-bridge 'wan' network with proto DHCP. A regular STA cannot be in a bridge. It doesn't need to be a bridge because everything will be NAT to the one IP you have on the upstream network.
The default /etc/config/firewall that installs with every OpenWrt includes rules to forward from 'lan' to 'wan'. So as long as you name your networks that the firewall is ready.