zondag 13 november 2016

Direct Connect over Ethernet

For my PiDP8 ( a replica of the PDP8 computer) I used a Rasberry Pi model B, running pipaOS. Since the Pi is inside the box, and I did not want a monitor connected all the time the best way to connect to is would be using a direct cable connection from my laptop.
 So I followed all the instructions on ModMyPi, but could not succeed. I edited the /etc/network/interfaces file and gave it a static IP address as follows:

allow-hotplug eth0
iface eth0 inet static
address 192.168.0.200
netmask 255.255.255.0
broadcast 192.168.0.255
network 192.168.0.0
gateway 192.168.0.1

but I never found the Pi from my computer. And the 'sudo ifconfig' command on the Pi only showed the 'local loopback' connection (127.0.0.1)

By using the 'dmesg | more' command I tried to see what happened at startup, and I found  the following line:

:renamed network interface eth0 to eth1

I have no idea why he does this, but apparently the interface name is now eth1. And after modifying the interfaces file to :

allow-hotplug eth1
iface eth1 inet static
address 192.168.0.200
(...etc..)

it all seemed to work fine. That's to say, ifconfig now showed an active ethernet connection, eth1, on 192.168.0.200.
Next I modified the IPV4 settings om my laptop so it also uses a static IP address :


And now I can actually 'ping'the pi:
 And by using 'PuTTy'I can connect and login: