Page 1 of 1

Wlan0 fallback -- is this possible?

Posted: Wed Dec 26, 2018 7:50 pm
by Cj98261
Hi -- new to this forum

I have Stretch on a 3B.

My use case involves using SSH on wifi when no router is available. I need to connect from my iPad to the Pi with SSH while on top of a mountain. I am aware of a fallback option for eth0. Since I don't think the iPad can connect to eth0(?), this approach does not help. So I am wondering if a wlan0 fallback can also be implemented? While at home I use the wifi connection through my router to perform maintenance.

My networking experience is limited -- but I've read somewhere that eth0 will default to a "local link" after 30 seconds (?). Is there a default wifi IP that I could use?

Re: Wlan0 fallback -- is this possible?

Posted: Fri Dec 28, 2018 3:52 pm
by chadk5utc
"mountain top" communication can be tricky. is Clear Line of Sight(los) possible at this location from point "A" to point "B"? whats the distance to your primary network connection? what are you doing ie what kinda of bandwidth/throughput are you going to require to do it? There are options available but there are many variables to consider. if you are using wifi and tell any device to connect to an AP it will only connect or stay connected as long as it is within usable range. When no connection detected or available it simply wont do anything. Typical off the shelf wifi gear wont do much more than 150feet. If you need longer range than this consider something like
https://www.amazon.com/High-Gain-Long-R ... e+usb+wifi

or if you need really long range
https://www.amazon.com/BulletM2-HP-Base ... th+antenna
https://www.amazon.com/Bullet-PRE-CONFI ... th+antenna

Re: Wlan0 fallback -- is this possible?

Posted: Fri Dec 28, 2018 11:58 pm
by Cj98261
Thanks for the response. Looks like I was not clear enough in my original post.

I assume there will not be any connection to a distant router. I want the RPi to offer an IP that I can use to connect using SSH. The connection isdirec b/w an SSHclient on my iPad and and the RPi. So distance is not a problem -- it is only a foot or two.

Clark

Re: Wlan0 fallback -- is this possible?

Posted: Sat Dec 29, 2018 12:42 pm
by chadk5utc
Ok sorry in that case it should be quite simple. you can setup raspi as AP
https://www.raspberrypi.org/documentati ... s-point.md

Re: Wlan0 fallback -- is this possible?

Posted: Sat Dec 29, 2018 10:48 pm
by Cj98261
Yes -- an access point is the solution. In addition I've located this

http://www.raspberryconnect.com/network ... et-routing

which shows how to have the access point enabled when no router connection is found. Works great

Clark