On Tue 25 Jan 2022 at 21:27:17 (-0500), gene heskett wrote: > On Tuesday, January 25, 2022 7:35:54 PM EST David Wright wrote: > > I can't speak to Gene's wanting a static network configured by his > > method, but I'm happy to defend my choice. > > > It works fine with no complaints.
OK. I've already forgotten what you complained in this thread's OP. > Here is the bottom of /etc/dhcpcd.conf: > > # Example static IP configuration: > #interface eth0 > #static ip_address=192.168.0.10/24 > #static ip6_address=fd51:42f8:caae:d92e::ff/64 > #static routers=192.168.0.1 > #static domain_name_servers=192.168.0.1 8.8.8.8 fd51:42f8:caae:d92e::1 > > # It is possible to fall back to a static IP if DHCP fails: > # define static profile > profile static_eth0 > static ip_address=192.168.71.13/24 > static routers=192.168.71.1 > static domain_name_servers=192.168.71.1 > > # fallback to static profile on eth0 > interface eth0 > fallback static_eth0 > > So if dhcpd fails, it uses the above, and it Just Works. > And I've not found any reference to it in the man page. So I've no clue > why it seems to be such a huge, no one knows about it secret. Drum roll … … CONTENTS/usr/share/man/man5/dhcpcd.conf.5.gz DHCPCD.CONF(5) BSD File Formats Manual DHCPCD.CONF(5) NAME dhcpcd.conf — dhcpcd configuration file [ … ] profile name Subsequent options are only parsed for this profile name. [ … ] static value Configures a static value. If you set ip_address then dhcpcd will not attempt to obtain a lease and will just use the value for the address with an infinite lease time. If you set ip6_address, dhcpcd will continue auto-configuation as normal. [ … ] interface eth0 [ … ] static ip_address=192.168.0.10/24 [ … ] static routers=192.168.0.1 static domain_name_servers=192.168.0.1 [ … ] fallback profile Fall back to using this profile if DHCP fails. This allows you to configure a static profile instead of using ZeroConf. /That/ seems clear enough to me. But excuse me if I was labouring under the impression that you wanted to nuke DHCP lest "some coder dinking around in dhcp code thinks the whole world is volatile". Cheers, David.