WE826 (RV Wifi+4GX) running OpenWRT 18.06 WAN Port with Starlink

We have a WE826 (RV Wifi+4GX) running OpenWRT 18.06 which has the following configured.

We are trying to define a physical WAN0 port (Wan is currently used by WWAN0 which is the 4G), want to uplink a Starlink Dishy which has been setup as ethernet ( to be physically connected to WAN port on the router, it isnt defined anywhere even like eth0.2 for wan, could i get some pointers on how we can add the physical wan port into the configuration and define it, also we need to setup dual routes with metrics, 0 and 10, preferring the starlink connection and if starlink is down route via 4G interface.

root@rvwifi:/etc/config# cat network

config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr ''
option netmask ''

config interface 'lan'
option ifname 'eth0'
option type 'bridge'
option proto 'static'
option netmask ''
option ip6assign '60'
option ipaddr ''

config interface 'wan'
option proto 'qmi'
option device '/dev/cdc-wdm0'

config globals 'globals'
option ula_prefix 'fd67:259e:cc26::/48'


root@rvwifi:/etc/config# uci show network
root@rvwifi:/etc/config# ubus list network.interface.*

This is a very old version that is EOL and unsupported. I'd recommend that you upgrade to 22.03 which is the current stable release, and your device is supported. In the process, you'll need to reset to defaults, so this should restore the wan port in the config, and then you should be good to go (you'll need to install the QMI packages and then reconfigure, of course, but that shouldn't be much of an issue; make a backup of your 18.06 config and you can use that as a reference while you reconfigure from scratch).

Thanks Mate. T it is. I just need to find out about the config and QMI Packages. I'll give it a crack after doing some more reading.

Ok so a bit of an Issue. The setup I am trying to achieve is 4G failback with Starlink as the primary. I think Openwrt 22.03.5 has a routing bug. When the router is configured without 4g The default route works fine through wwan0.
As soon as 4G is configured it takes over the default route and the wwan0 route is not re-issued.
Kernel IP routing table
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default UG 10 0 0 wwan0 * U 10 0 0 wwan0 * UH 0 0 0 eth0.2 * U 0 0 0 eth0.2 * U 0 0 0 br-lan * UH 0 0 0 eth0.2

Now if I disable "Use Default Gateway on the 4G WWAN0 interface. A default route is not added for eth0.2

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default UG 10 0 0 wwan0 * U 10 0 0 wwan0 * UH 0 0 0 eth0.2 * U 0 0 0 eth0.2 * U 0 0 0 br-lan * UH 0 0 0 eth0.2

No traffic is routed out either of the gateways. Tried to configure Mwan3 but that failed with routing also. Surely there is a simpler way than Mwan3 to have a primary route out eth0.2 and if i power off the starlink due to the monthly costs or in a populated area. I can have the data routed out the 4G wwan0 interface.

Thanks for all your help!

@Aussie Did you get this working?
I have the same router, and am looking to do the same upgrade so I can put Starlink on the WAN as primary and 4G as fail-over.