3

I found this method for connecting two machines together using a crossover cable. Would I be able to do this using a Raspberry PI running Raspberrian and a Windows or Ubuntu Laptop?

Sometimes I like to read stuff offline, and this would give me a method of doing so, while still being able to use a server-based wiki on the pi.

leeand00
  • 704
  • 2
  • 9
  • 23

2 Answers2

4

Yes, but it is pointless, unless all you have is a cross-over cable. I.e., it will work, but you can use any normal ethernet cable instead. The method in your link is outdated in so far as contemporary equipment (including all models of pi, and almost certainly your laptop) have ethernet jacks that can detect when connected this way and deal with crossing the lines appropriately. There is actually a footnote on the accepted answer there mentioning this.

This answer describes how to connect two pis together via ethernet and share the wifi connection on one with the other, which is a fairly similar use case.

goldilocks
  • 58,859
  • 17
  • 112
  • 227
2

An easy option on a Linux system with NetworkManager

  1. Edit Connections > Add > Create "Ethernet"
  2. (tab) Ethernet > Device (dropdown) = SELECT NIC
  3. (tab) IPv4 Settings > (dropdown) Method = "Link-Local Only"

Or to share internet from this host, change last setting to

  1. (tab) IPv4 Settings > (dropdown) Method = "Shared to other computers"

Then simply connect from either laptop or pi with: ssh USER@HOSTNAME.local

earcam
  • 121
  • 3