Page 1 of 1

Dynamic AND static IP for Pi Zero W

Posted: Thu Sep 21, 2017 6:46 am
by manish.karnik
Hello friends,

Is it all possible to have/assign a dynamic AND a static IP address to a Pi Zero W ?
If yes the how ?

Thanks

Manish

Re: Dynamic AND static IP for Pi Zero W

Posted: Thu Sep 21, 2017 7:07 am
by RaTTuS
do it on your DHCP server [i.e. router] set it to be a static value at home [on the router] and then it will use whatever when you move to another location as long as that other router will give you an IP

Re: Dynamic AND static IP for Pi Zero W

Posted: Thu Sep 21, 2017 7:32 am
by MaxK1
An easy way to have 2 IP addresses is to have your router assign a DHCP adress as usual (wlan0 or eth0) and then set an IP address (with ifconfig) for wlan0:1 or eth0:1. If you do it that way, make sure you stay away from the pool of DHCP addresses that can be assigned, otherwise you may end up with a network nightmare... :o