[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 255.255.255.0;
default-lease-time 600;
max-lease-time 7200;

shared-network HOME {
  option broadcast-address 10.0.0.255;
  option domain-name-servers 216.xxx.xxx.xxx, 216.xxx.xxx.xxx;
  option routers 10.0.0.1;
  subnet 10.0.0.0 netmask 255.255.255.0 {
    range 10.0.0.8 10.0.0.254;
  }

  # Jess's machine
  host tiamat {
    hardware ethernet 00:80:ae:08:07:23;
    fixed-address 10.0.0.2;
    option host-name "tiamat";
  }
  # Rhe's machine
  host fred {
    hardware ethernet 00:6a:97:7e:1a:71;
    fixed-address 10.0.0.3;
    option host-name "fred";
  }
  # Jess's 305CDS Laptop
  host pong {
    hardware ethernet 00:E0:68:A2:D3:8A;
    fixed-address 10.0.0.4;
    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: pgpqOgCLwz5zN.pgp
Description: PGP signature


Reply to: