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):
I then tried to test my configuration by running dhcpcd eth0. Unfortunately, I get the following output in the CLI: https://onedrive.live.com/redir?resid=E ... hoto%2cjpg
Code: Select all
# define static profile
# fallback to static profile on eth0
From 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.