I have the following configuration as the static IP in my dhcpcd.conf


interface wlan0
static ip_address=
static routers=
static domain_name_servers=

I got my router IP from

ip route | grep default | awk '{print $3}'

After I restarting PI I cannot connect to the internet and it wont connect to the router

This is my first attempt with PI. what could possibly go wrong here?


Your static IP and the rest of your config are on two different networks. You need to change the static IP assigned to your Pi to put it in the subnet.

Change this line:

static ip_address=

to something like:

static ip_address=

then reboot.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.