RAK7258 - Use WiFi as WAN

I have a new RAK7258 factory default settings and upgraded to 1.1.0037 r159.

I am trying to setup the WiFi in client mode as the WAN interface. That way I do not have to have it hard wired to my router. I’m sure it can do this but I can not work it out. I have attached pictures of the settings I have changed.

When I test ping from the diagnostics page it fails.

If I ssh in to the router I can force pings out of the WiFi interface and it works…

root@RAK7258:~# ping -I apcli0 google.com
PING google.com (216.58.203.110): 56 data bytes
64 bytes from 216.58.203.110: seq=0 ttl=53 time=675.371 ms
64 bytes from 216.58.203.110: seq=1 ttl=53 time=209.334 ms
64 bytes from 216.58.203.110: seq=2 ttl=53 time=401.180 ms
64 bytes from 216.58.203.110: seq=3 ttl=53 time=55.647 ms
64 bytes from 216.58.203.110: seq=4 ttl=53 time=55.428 ms

the lan…

image

This is a bit of a hack but I made it work with a static route for TTN server (thethings.meshed.com.au) whose domain resolved to 52.62.83.250 - Although if they change IP it will break. I still can’t get DNS but at the very least my LoRaWAN traffic is going out the WiFi interface.

Would still love to know how this should be done.

You only need to change the protocol of the wan interface connection to none.

Thanks Nicholas, that was simple after all.

I think this is a common use case? I just want LAN to configure the device and have everything else go out through the wifi. Would be cool to see this in the pdf documentation.

Thanks again.