This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
No gateway after reboot when AP + client is active
Every time I boot Raspbian / Openplotter it seems to "forget" the standard gateway.
I have to run the command sudo ip route add default via every time I boot to get internet.

I have this setting in Openplotter 1.2.0 Alpha, on a Pi3B+

Network tab:

RPi3+: AP + client


Multiplexed NMEA 0183:

 Signal K Server:

 VNC remote desktop:


 MQTT local broker:

Status info:

wlan1 is AP
up network: wlan0 wlan1 
dnsmasq (dhcp-server): running
hostapd (AP): running
dhcpcd: running
avahi-daemon: running
IP address wlan0 wlan1

Hardware info:

Raspberry 3B+
Internal wifi is the AP
External USB dongle (Edimax) is working fine

I have tried:

- Re-installing hostapd, dhcpcd
- Editing the verious files in /etc/network/interfaces.d to static values, or dynamic
- Seeing if it is an external cause (repeater, router/modem, I even tried by using a mobile hotspot on smarphone)
- Problem realy only seems to exist when having an AP and client together.
- Testing if the system has enough power 

Weird thing is, it worked fine for ages! Nothing seemed updated. Maybe has to do with dchp leases / timers.

Internet is OK when:

- Using client mode only, gateway is assigned automatically, and internet is OK
- Manually assigning a gateway with the command sudo ip route add default via

Hope there is someone with a solution like:

- Automatic gateway assigned
- Alternative solution, automatically run the command sudo ip route add default via when booting? (don't know how to do this, but also not preferred)

Forum Jump:

Users browsing this thread: 1 Guest(s)