I just configured my Raspberry Pi with Raspbian. I want to SSH into it with my laptop, so I connected my laptop and the pi with an Ethernet cable. Then, I went to the raspberry pi command line to get the IP address using
ifconfig. There was no IP address (similar to the problem here). So, I tried the solution offered on that post and ran:
sudo ip addr add 192.168.x.x/24 dev eth0
ifconfig again and saw the IP was set, so I went to my laptop and tried to ping the IP address I set for the pi. The following happened:
Pinging (Pi IP address) with 32 bytes of data: Reply from (Computer IP address) Destination host unreachable. Ping Statistics for (Pi Ip Address): Packets: Sent = 4, Received = 4, Lost = 0 (0% Loss).
I tried Putty to see if I could get the SSH to work (even though ping didn't...I thought it might be worth trying), and I get this error:
Network Error: Connection Timed Out
Is there something I am doing wrong to SSH into the Pi? Or could this be a hardware problem like explained here?
I found other ways to set static IPs, but from my understanding, you have to have a working dhcp address. I don't have that.