erondem
Posts: 23
Joined: Wed Jul 11, 2018 12:19 pm

Defining multiple static ip

Fri Apr 12, 2019 7:25 am

Hi,

I am wondering this, I am defining static ip using /etc/dhcpdc.conf file with this syntax

Code: Select all

interface wlan0

static ip_address=10.0.2.20
static routers=10.0.2.1
static domain_name_servers=192.168.10.45 192.168.15.10
My customer changes network's dhcp rules without letting me know I am getting unable to reach my device. When raspberry can not get pre configured static IP from network, I want raspberry to try second one. Is it possible or is it called "fallback" ?

Summary: I want to define two static ip in case on of them fails.

epoch1970
Posts: 5203
Joined: Thu May 05, 2016 9:33 am
Location: Paris, France

Re: Defining multiple static ip

Fri Apr 12, 2019 12:50 pm

"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

Return to “Beginners”