[Dnsmasq-discuss] Static IP and hostname

Donnie Berkholz spyderous@gentoo.org
Thu, 31 Mar 2005 17:23:02 -0800


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Grant Coady wrote:
| I do it like this:
| dhcp-range=192.168.1.101,192.168.1.109,2h
| dhcp-host=magpie,192.168.1.31,2h
| dhcp-host=poohnt,192.168.1.32,2h
| dhcp-host=pooh98,192.168.1.42,2h
| dhcp-host=toshnt,192.168.1.35,2h
| dhcp-host=tosh98,192.168.1.45,2h
| dhcp-host=stinky,192.168.1.49,2h
| dhcp-option=42,0.0.0.0
|
| I know it is not quite what you asked for, but this works for me.
| Linux boxen have static IP, known windows boxen get DHCP static
| IP as above, unknown boxen get IP from dhcp-range.

Yeah, that's sort of orthogonal to what I'm trying to do. I want to set
the IP and hostname from the server based on the client's MAC, rather
than giving the client an IP based on what it thinks its hostname is.

I'm setting up a small diskless cluster, and I want all the
administration to be server-side. It already works fairly well with
dynamic DHCP, but I'd really prefer static.

Thanks,
Donnie
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCTKJ2XVaO67S1rtsRAnL+AJ4y7n0Yn5JeWsjXPYJzRHccWIruAgCfbh8Y
TdC4z6GcGUn/MNPW5KvErzo=
=pPFg
-----END PGP SIGNATURE-----