Blue os 1.5 version / how to add gateway to eth0?

I am currently using BlueOS version 1.5, and I want to connect an LTE router to the eth0 interface for external communication. In this case, I need to configure a gateway on eth0 so that traffic can be routed to the external internet.

However, it seems that cable-guy does not support setting a gateway. Even if I configure the gateway using nmcli or netplan, the settings only persist temporarily, and after a reboot, they appear to be overwritten by cable-guy.

Is there a good solution to this problem?

Hi @leo_chang -
If your LTE router has a DHCP server running, it should just work! The Pi would get an IP address on the ethernet interface and reach the internet just fine.

If the router doesn’t have DHCP active, you’ll need to set a static-ip for the ethernet interface that is on the correct subnet that the router is already using - traditionally 192.168.1.X. To set the route, you can use the API. Navigate to:
http://192.168.2.2:9090/v1.0/docs#/default/add_route_route_post

And click “try it out” at the top. Then configure the text field as shown:

Destination is all 0s so you can reach all places on the internet. Gateway is your router’s IP, or whatever IP is providing internet access. Managed = true lets BlueOS restart the interface if it goes down.

The changes you make there should persist - just save /send once the text has been updated.

1 Like

When I set the gateway as you instructed, I can see that it is applied, but after rebooting, the setting is reset.

Hi @leo_chang -
That 's strange! Which beta 1.5 version are you using? Is there a reason you’re using beta and not stable 1.4.3?

i saw that precision landing with ardupilot can be used 1.5+ blue os version.
do you have plan to fix this problem?