I have configured a static IP on my PI 3 adding this in dhcpcd.conf
:
static ip_address=192.168.1.200/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1
It works well when it is plugged in my home router. But if I unplug the Ethernet cable, then there is no IP assigned anymore when I check with ifconfig
. Is it normal? Can I have a static IP assigned even when there is no cable plugged?
I have also set the embeded wifi interface as a WIFI hotspot following this tutorial:
Maybe it could explain this behavior.