On Nov 29, 2023, gene heskett wrote:
> On 11/29/23 21:40, Charles Curley wrote:
> > On Wed, 29 Nov 2023 20:53:19 -0500
> > gene heskett <gheskett@shentel.net> wrote:
> >
> > > > A changing network is exactly what dhcp is for. With it you will
> > > > not need to do anything when you add a machine.
> > >
> > > Does it always lock the address to that MAC? ISTR a time long ago
> > > when it didn't.
> >
> > Normally DHCP does not lock a given IP address to a given MAC address.
> > However, you can do so on a per machine basis with the fixed-address
> > option. E.g:
> >
> > host hawk # new (2016) desktop
> > {
> > option host-name "hawk";
> > hardware ethernet 30:5a:3a:81:83:79;
> > fixed-address 192.168.100.6;
> > option domain-name-servers 192.168.100.30, 127.0.0.1; # chaffee, localhost
> > ddns-hostname hawk;
> > }
> In what file do I place similar info to this for eth0?
You don't set it on a client, but the DHCP Server itself.
Specific network host (if Debian or a derivative) would be
/etc/network/interfaces.
--
|_|O|_|
|_|_|O| Github: https://github.com/dpurgert
|O|O|O| PGP: DDAB 23FB 19FA 7D85 1CC1 E067 6D65 70E5 4CE7 2860
Attachment:
signature.asc
Description: PGP signature