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:
Geen opmerkingen:
Een reactie posten