-1

I'm working a project that requires the raspberry pi to be portable, and accessible via SSH (headless setup) in places where there is no internet connection (such as on the top of a hill with no buildings). I have a small low-power router (TP-link wr802n) that I want to use to set up a LAN. I'm having some separate issues SSHing into the Pi over the wireless network (Trouble autoconnecting to wireless network after automounting USB drive) so I'm hoping to connect to it via direct ethernet connection to my mac as a contingency.

However sharing my internet connection over the usual method (system preferences > sharing > share wifi over ethernet) only seems to work when (a) the mac is connected to a wifi network (duh) and (b) when the wifi network is connected to the internet. It does not work when I'm on a wireless local area network that does not have an internet connection (wan), as is typically the case in my situation (this is for a fieldwork research situation in a country with relatively little internet infrastructure).

I suspect this might be an issue with setting up a DHCP server. Do I need to install such a DHCP server on my mac, and how would I configure it to work as needed?

Note: this seems to be a similar issue to this 14 month old unresolved post: SSH Via Ethernet Without Internet Sharing

mtl_zack
  • 1
  • 2

1 Answers1

0

I would say as a general principle: if the set up is going to be that tricky with this system that is going to be remotely located, why make it more difficult with one additional variable (the presence/absence of a dhcp service somewhere). Just set up the rpi with a static address on a private network (say... inside segment 192.168.197.x/24) so that when you are in front of it you can set up your mac to have another address on the same segment and voila! You can both see each other.

But, just in case, it would help up a lot if you told us how each of the network interfaces of the rpi will be used (wireless? wired? will you use a GSM device for it to connect to internet, perhaps? you will be working with it remotely, do you have a vpn setup so that you can see each other?). Networking is tricky stuff.

eftshift0
  • 800
  • 1
  • 7
  • 13