[Dnsmasq-discuss] Re: Using Machine Name to Allocate IP Address Rather than MAC Address

Eldon Ziegler eldonz at atlanticdb.com
Fri Jan 12 14:26:14 GMT 2007


Eldon Ziegler (eldonz at atlanticdb.com) wrote on 11 January 2007 14:06:
 >The man page contains the statement, "--dhcp-host=lap,192.168.0.199
 >tells dnsmasq to always allocate the machine lap the ip address
 >192.168.0.199." Where on the target machine do I set the "lap" or
 >whatever to use this feature?

I should have been more specific.

1. This is running on Red Hat ES 4 or Fedora Core 5

2. We have multiple servers that are identical to share the load
   These are named like "server1", "server2", etc.

3. Today we copy the MAC addresses (each server has two NIC's) from each
server and enter these into dnsmasq.conf along with the IP address for
each.

   I am trying to simplify this since a server named "server1" always
gets the same two IP address (for example, 192.168.1.101 and
10.0.0.101), a server named "server2" always gets the same two IP
address (for example, 192.168.1.102 and 10.0.0.102), etc.






More information about the Dnsmasq-discuss mailing list