Ok, I am trying to set a static IP for my Pi3 and i use Raspbian Jessie OS. I know that we need to modify the dhcpcd.conffile within /etc/ location. I have had two additions to it - namely eth0 and wlan0. My pi is connected to my laptop using an ethernet cable. Now for the interface eth0 part what should be the value of the static routers and static_domain_name entries? Should it be set to the ip of my laptop or the router?

1 Answer 1


You may not need all that. Just edit /etc/network/interfaces to have:

auto eth0 iface eth0 inet static address netmask gateway

instead of

auto eth0 iface eth0 inet dhcp

Change this entry for your numbers, obvisouly. Here's the wiki for Debian networking if you need more.

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.