I'm trying to connect my Raspberry Pi to my PC on eth1. On eth1 I have the following addresses:
auto eth1
iface eth1 inet static
address 192.168.1.1
netmask 255.255.255.0
gateway 192.168.1.1
Between PC and raspberry Pi I have a straight Ethernet cable, the lights from both Ethernet ports are on.
I tried nmap -sn 192.168.1.0/24
but I only get 192.168.1.1
address.
I tried arp -a
I get no result.
I tried ping -b 192.168.1.255
I get no result.
Here is the output of sudo netstat -rn
:
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 10.3.10.254 0.0.0.0 UG 0 0 0 eth0
10.3.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
At home, when I connect the cable between the Raspberry Pi and the LAN router port I can access 192.168.1.13
via ssh without doing anything else.
I'm out of ideas, what can I do?
Thank you!
192.168.1.1
is a poor choice as this is the gateway. If you left the settings the way they were you may be able to access via alink-local
address (discussed in the link). – Milliways Mar 24 '16 at 22:42