I have followed the latest guide about changing the /etc/dhcpcd.conf file, and successfully set a static ip address, but then I can't reach the pi through ssh or a browser (it's a server). Any body else experience this?
1 Answer
As you know, networking configuration in Raspbian Jessie has moved to /etc/dhcpcd.conf .
Try the following steps to troubleshoot the issue:
- Restart networking:
sudo ifdown eth0 && sudo ifup eth0
- Check if your interface is configured:
ifconfig
Does eth0 have the address you specified?
- Did you format the address in /etc/dhcpcd.conf with CIDR subnet mask notation, and does the subnet mask match your local area network (/24 is equivalent to 255.255.255.0):
static ip_address=10.0.1.59/24
?
-
O.k. I tried number 1 with no luck. Number 2 is a yes (I have to plug in a monitor and keyboard to access the config files. and the address I specified in the dhcpd.conf file was : 192.168.1.1/24. On a side note,( I am not trying to correct you - I promise) I may have a newer version of jessie, but my file is named /etc/dhcpcd. I don't have anything with the shorter name. :( Commented Mar 18, 2016 at 11:34
-
Hello, it's working. I tried 192.168.0.201/24 instead of 192.168.1.1/24 and it worked perfectly. I don't know why, though. Maybe it has to do with them being on different subnets? Anywho, thank you for your help! Commented Mar 18, 2016 at 11:42
-
Apologies, you are correct, my memory failed me. Answer has beed edited.– medbotCommented Mar 18, 2016 at 19:13
-
1Regarding your fix, it did not work prior because network hosts on different subnets can not reach each other without a router between.– medbotCommented Mar 18, 2016 at 19:14
-
/etc/network/interfaces
. Can youping
the static IP address up configured?