[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bind for beginners

On Tue, 10 Jun 2003, Keith O'Connell wrote:

>         2: Can a network exist with some machines dictation their IP
>         address and other (windows) machines getting their addresses
>         from a dhcp server, and all of them play together nicely

The way I do this is to have dhcpd assign the entire 10.0.0.x address 
range to the home network, and certain machines (actually certain MAC 
addresses) always receive the same IP.

Rather simple, really.  Too bad that dnsmasq doesn't understand 
/etc/dhcpd.conf and instead relies on /var/lib/dhcp/dhcpd.leases 
for its information.  I'll probably have to end up adding all the 
names by hand.

=================== /etc/dhcpd.conf =======================
# dhcpd.conf

option subnet-mask;
default-lease-time 600;
max-lease-time 7200;

shared-network HOME {
  option broadcast-address;
  option domain-name-servers 216.xxx.xxx.xxx, 216.xxx.xxx.xxx;
  option routers;
  subnet netmask {

  # Jess's machine
  host tiamat {
    hardware ethernet 00:80:ae:08:07:23;
    option host-name "tiamat";
  # Rhe's machine
  host fred {
    hardware ethernet 00:6a:97:7e:1a:71;
    option host-name "fred";
  # Jess's 305CDS Laptop
  host pong {
    hardware ethernet 00:E0:68:A2:D3:8A;
    option host-name "pong";
===================== End of File ====================

         icq: 34583382 / msn: dasunt@hotmail.com / yim: tsunad

   "We are what we pretend to be, so we must be careful about what we 
    pretend to be." - Kurt Vonnegut Jr : Mother Night

Attachment: pgpdJowWCdCLo.pgp
Description: PGP signature

Reply to: