This is more for curiosity than anything.
By following the steps in this awesome guide. I managed to get remote connection working with the Pi and my MBP so that I could SSH into my Pi using the MBP's ethernet port, and live Pi-monitor free.
It's working pretty reliability. What's befuddling is why the IP address on the ethernet (eth0) of the Pi always stays static at 169.254.149.192?
This is with DHCP on my MBP's Ethernet (via Thunderbolt).
As expected, the DHCP assigns a new IP address to my MBP every time the Pi boots up (169.254.X.Y, changing X and Y every time) - one example is below:
But the Pi somehow retains the same address every time. I don't have a static IP as far as I can see:
/boot/cmdline.txt
has no IP address specifiedcontents of
/etc/network/interfaces
below - everything seem to be onauto
address assignment:auto eth0 allow-hotplug eth0 iface eth0 inet manual auto wlan0 allow-hotplug wlan0 iface wlan0 inet manual wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf auto wlan1 allow-hotplug wlan1 iface wlan1 inet manual wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
Not that I'm complaining about having the convenience of a static IP address to keep SSH / iTerm2 settings consistent. But it bugs me that the MBP address assignment works as I expect, but the Pi works in mysterious ways
;)
Appreciate any info.
inet manual
). Seems to me this is as likely to do with the "mysterious ways" of the software on the laptop: Yes, it gets a DHCP address, but this is not evidence of the fact that it assigns that to the attached pi. It may in fact keep it consistent based on MAC address, which would be a feature. Of course you'd have to do some research on OSX to find that out...see Ask Different. – goldilocks♦ Aug 5 '15 at 13:20iface eth0 inet manual
on the RPi in/etc/network/interfaces
, you are directing it not to use dhcp. – bobstro Aug 5 '15 at 14:11inet manual
. So it's definitely not using DHCP. So where would the static IP address come from? – snowbound Aug 11 '15 at 10:48