quick_silver
Posts: 1
Joined: Tue Jul 16, 2019 2:03 pm

Headless with Wifi Unable to ssh/ping

Sun Mar 22, 2020 5:08 pm

Hi,

My setup
PI 3B+
OS : Raspian

Trying to connect the pi headless using my laptop.
Both Pi and Laptop are connected to same wireless router.

Added the below config in wpa_supplicant.conf with correct credentials

Code: Select all

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=<Insert country code here>

network={
 ssid="<Name of your WiFi>"
 psk="<Password for your WiFi>"
}
Also added ssh file to boot folder fo SD card.

On bootup can see Pi is connected to Wifi, router lists the Pi with IP address(192.168.0.101)
When I try to ping the Pi from Laptop using this IP, get below error

Code: Select all

Pinging 192.168.0.101 with 32 bytes of data:
Reply from 192.168.0.104: Destination host unreachable.
please help in setting the Pi in headless mode correctly.
Thanks

PhatFil
Posts: 1640
Joined: Thu Apr 13, 2017 3:55 pm
Location: Oxford UK

Re: Headless with Wifi Unable to ssh/ping

Sun Mar 22, 2020 6:33 pm

Assuming you have
<inserted Your Country code and wifi creds..>

before you pull your hair out give the router a reboot ;)

even after investing in a netgear RX7000 ac router i still have occasional dhcp issues when adding new devices to my network that resolve with a router restart but otherwise confuse and befuddle me.

To check validate that you pi picked up the ssh and network config from you ssh and wpa_supplicant.conf file, inspect the boot partition If successfully processed these files will have been deleted from your boot partition. If still present they were not processed correctly as expected.

Return to “Beginners”