I'm trying to configure my Rpi so that it first tries to get IP configuration data from a DHCP server and falls back to a static configuration if there is no server.
After searching the Arch Linux wiki, I figured that using dhcpcd would probably be the easiest way to accomplish this (though if anyone has any other method, I'm all ears). Following the instructions I found here: https://wiki.archlinux.org/index.php/Dh ... ic_profile
I added the following to /etc/dhcpcd.conf (which is otherwise the default/unmodified configuration file):
Code: Select all
# define static profile
profile static_eth0
static ip_address=10.43.86.250
static routers=10.43.86.50
static domain_name_servers=10.43.86.50
# fallback to static profile on eth0
interface eth0
fallback static_eth0From what I can see, dhcpcd seems to be just looking for a DHCP server without falling back to the static configuration.
Can anyone tell me what I am doing wrong? I also notice that the wiki page doesn't specify a parameter for subnet masks (mine has to be 255.255.254.0). Do I just add a line saying static subnet_mask=255.255.254.0 to the profile? Help will be greatly appreciated.
