Re: hostname is being reset, killing net on reboot
On Tuesday, January 25, 2022 11:36:05 PM EST David Wright wrote:
> 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.
>
`twould indeed be clear David, but man keeps telling me no such file.
> 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".
The responses I get from this list or any list positively reeks of NIH
syndrome if you want to do something different for a home net that
doesn't depend on dhcp. hosts files existed and ran the internet before
dhcp. I remember using them on both pc's and amiga's 30 years ago. Its
the short term memory that is plaguing me now. Can you remember using
trumpet on a pc? I can. The amiga's had miami for a net driver but I
can't recall if I used it when I wrote our first web page server in ARexx
we used when we went live on the net for news, pulling the text from the
teleprompter. WDTV was in the first 5 tv stations in the country that had
a web page that went live as the live tv news show closed. It also demo'd
the atrocious spelling of our journalists which got rather hilarious at
times. :o)
At 87, I spend a lot of time contemplating the hereafter, I get up to go
get a tool, and when I get to where the tool might be, I have to stop
until I can remember what I'm hereafter. ;-)
> Cheers,
> David.
>
> .
Take care and stay well David.
Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>
Reply to: