0

Simplified:

I been wondering on how to connect my Macbook and Raspberry Pi together over ethernet ( I do not have access to a crossover atm). I've set up, on the Pi side, by typing

sudo ip add *insert Pi ip here*/24 dev eth0

but when I attempt to use this exact line (changed ip), Macbook doen't connect. At all. Anyone know how to fix this?

Init User
  • 1
  • 1
  • I will suggest to ask this question on a MAC blog. From Rasbian is easy. Just make sure you have the SSH option enabled on your raspi-config -> Advanced Options. – fcm Dec 09 '15 at 02:40
  • Crossover Ethernet cables have not been needed for decades. – joan Dec 09 '15 at 09:59
  • If you want an easy way to connect directly to the pi, and you got a usb-serial converter, you can just connect tx and rx on the pi GPIO14 and GPIO15, and usb to mac, than make a serial connection. like screen, or something – el3ien Dec 09 '15 at 11:44
  • The following instructables helped me achieve this task using a standard Ethernet cable ... http://www.instructables.com/id/Configuring-the-Raspberry-Pi-ethernet-port-for-rem/?ALLSTEPS – Kolban Dec 09 '15 at 15:11
  • @Kolban Doing that on recent (post May) Raspbian will break things. – Milliways Dec 09 '15 at 22:53

1 Answers1

3

Recent versions of Raspbian (which use dhcpcd) allow ssh to work over a link-local address and avahai (which is a zeroconf implementation) enables programs to discover hosts running on a local network.

This means you can plug the Pi into a Computer (with an Ethernet cable) or a local network router and connect without knowing the IP address.

You can easily connect from OS X with ssh pi@hostname.local (the default hostname is raspberrypi)

You can use a crossover cable, but you don't need one (most modern interfaces automatically detect).

I think this answers the question I think you are asking. See How do I set up networking/WiFi/static IP address? if you want more detail.

Milliways
  • 59,890
  • 31
  • 101
  • 209