I have just tried to set static ip on my raspbian.
I have added those line into /etc/dhcpcd.conf
interface INTERFACENAME(ETH0/WLAN0)
static ip_address=192.168.101.46/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1
And then I've reboot the raspberry.
when the system start I can login via SSH to the new local ip, but when I try to ping google there is no response.
I have tried to put Google DNS 8.8.8.8
but I have not recevied any respond.
Thanks.
BTW - I've seen similar questions over here but I still unable to fix the problem.
192.168.101.46
in combination with the mask bit24
results in a CIDR address range of192.168.101.0 - 192.168.101.255
. Nice tool for this: CIDR Calculator. – Fabian Apr 12 '18 at 13:29