openplotter icon indicating copy to clipboard operation
openplotter copied to clipboard

Unable to access to internet with USB Wifi dongle randomly

Open pkernevez opened this issue 6 years ago • 4 comments

Hi all,

I have a Wifi USB dongle. During the first boots I don't have issues, I was able to connect to internet and update openplotter. But now I lost the capacity to connect to internet. This is due to the definition of 2 default IP routes. Now the interface that win is not the internet interface.

My model : Raspberry Pi 3 Model B Rev 1.2 My configuration: wlan 0 : my dongle wlan 1 : board Wifi Openplotter : 1.2.0 alpha

My Wifi configuration : image

My routes just after the boot:

$ ip route show
default via 10.10.10.1 dev wlan1 src 10.10.10.1 metric 303
default via 192.168.1.1 dev wlan0 src 192.168.1.131 metric 304
10.10.10.0/24 dev wlan1 proto kernel scope link src 10.10.10.1 metric 303
192.168.1.0/24 dev wlan0 proto kernel scope link src 192.168.1.131 metric 304

My pb and the solution:

pi@openplotter:~ $ ping google.com
ping: google.com: Temporary failure in name resolution
pi@openplotter:~ $ sudo ip route delete default via 10.10.10.1 dev wlan1 src 10.10.10.1
pi@openplotter:~ $ ping google.com
PING google.com (216.58.215.238) 56(84) bytes of data.
64 bytes from zrh11s02-in-f14.1e100.net (216.58.215.238): icmp_seq=1 ttl=53 time=15.6 ms
64 bytes from zrh11s02-in-f14.1e100.net (216.58.215.238): icmp_seq=2 ttl=53 time=21.7 ms

I don't know why with the configuration : AP + Client the access point has a default route.

Thank to the team for this beautiful tool ! Philippe

pkernevez avatar Jan 16 '19 21:01 pkernevez

I there a public forum somewhere to ask for question before creating an issue ?

pkernevez avatar Jan 16 '19 21:01 pkernevez

Absolutely! We are at forum.OpenMarine.net

Sent from my Verizon, Samsung Galaxy smartphone

-------- Original message -------- From: Kernevez [email protected] Date: 1/16/19 16:01 (GMT-05:00) To: sailoog/openplotter [email protected] Cc: Subscribed [email protected] Subject: Re: [sailoog/openplotter] Unable to access to internet with USB Wifi dongle randomly (#232)

I there a public forum somewhere to ask for question before creating an issue ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/sailoog/openplotter/issues/232#issuecomment-454939772, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AGEzfnXpDpwhDGN6wpY2_0uA85vQ8vLhks5vD5MzgaJpZM4aD8Ve.

richardmbell avatar Jan 17 '19 10:01 richardmbell

After some new tests. It seems that the default routes are applied in a random order. Half of the time the first default route is the route of the AP (wlan1) instead the internet client (wlan0). An idea of the root cause ?

pkernevez avatar Jan 20 '19 15:01 pkernevez

Udev node attribution is first up first attributed. Relying on wlanX is not a stable way to do it.

Writing udev rules that use manifacturer+ model version or MAC address would be the proper way fingerprint your devices.

This said, IDK how openplotter do it. It's just my 2 cents on the topic.

FredericGuilbault avatar Feb 13 '19 16:02 FredericGuilbault