dhcpd/dhcpd.conf

changeset 606
c93d7930a2da
parent 605
04069b15fd9c
child 607
3f80fa12b972
     1.1 --- a/dhcpd/dhcpd.conf	Tue Aug 28 18:52:30 2012 +0200
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,88 +0,0 @@
     1.4 -##
     1.5 -##  dhcpd.conf -- ISC DHCP Daemon Configuration
     1.6 -##
     1.7 -
     1.8 -#   Options applicable to all subnets
     1.9 -option domain-name "example.com";
    1.10 -authoritative;
    1.11 -default-lease-time 600;
    1.12 -max-lease-time 7200;
    1.13 -ddns-update-style none;
    1.14 -use-host-decl-names on;
    1.15 -
    1.16 -#   Define some non-standard options
    1.17 -option freebsd-swappath code 128 = text;
    1.18 -option freebsd-rootopts code 130 = text;
    1.19 -option freebsd-swapopts code 131 = text;
    1.20 -
    1.21 -#   Test drive using loopback
    1.22 -subnet 127.0.0.0 netmask 255.0.0.0 {
    1.23 -}
    1.24 -
    1.25 -#   Define a particular sample subnet
    1.26 -subnet 192.168.1.0 netmask 255.255.255.0 {
    1.27 -
    1.28 -    #   Options applicable to this particular subnet
    1.29 -    option broadcast-address 192.168.1.255;
    1.30 -    option subnet-mask 255.255.255.0;
    1.31 -    option routers 192.168.1.1;
    1.32 -    option domain-name-servers 192.168.1.2;
    1.33 -
    1.34 -    #   Dynamic DNS (DDNS) Updating
    1.35 -    ddns-updates off;
    1.36 -    ddns-domainname "example.com";
    1.37 -    ddns-rev-domainname "in-addr.arpa";
    1.38 -
    1.39 -    #   Pool of known clients (i.e. MAC known but IP not specified)
    1.40 -    pool {
    1.41 -        range 192.168.1.100 192.168.1.149;
    1.42 -        min-lease-time      600;   # 10min
    1.43 -        default-lease-time  43200; # 12hour
    1.44 -        max-lease-time      86400; # 24hour
    1.45 -        deny unknown clients;
    1.46 -    }
    1.47 -
    1.48 -    #   Pool of unknown clients (i.e. MAC not known)
    1.49 -    pool {
    1.50 -        range 192.168.1.150 192.168.1.199;
    1.51 -        min-lease-time      300;   # 5min
    1.52 -        default-lease-time  3600;  # 1hour
    1.53 -        max-lease-time      10800; # 3hour
    1.54 -        allow unknown clients;
    1.55 -    }
    1.56 -}
    1.57 -
    1.58 -#   The list of clients we explicitly configure
    1.59 -group {
    1.60 -    #   Just assign a fixed IP address for machine "quux1"
    1.61 -    host quux1 {
    1.62 -        hardware ethernet 01:02:03:00:00:01;
    1.63 -        fixed-address 192.168.1.3;
    1.64 -    }
    1.65 -
    1.66 -    #   Provide full boot information for a FreeBSD diskless client "quux2":
    1.67 -    #   On the server, create a 32MB swapfile /dlc/fs/swap/swap.192.168.1.4
    1.68 -    #   with `dd if=/dev/zero of=swap.192.168.1.4 bs=1m count=32' and the
    1.69 -    #   filesystem /dlc/fs/quux2 with `cd /usr/src; make buildworld; make
    1.70 -    #   installworld DESTDIR=/dlc/fs/quux2'. Then use Etherboot for booting.
    1.71 -    host quux2 {
    1.72 -        hardware ethernet 01:02:03:00:00:02;
    1.73 -        fixed-address 192.168.1.4;
    1.74 -        next-server 192.168.1.2;
    1.75 -        option tftp-server-name "192.168.1.2";
    1.76 -        filename "kernel.quux";
    1.77 -        always-reply-rfc1048 on;
    1.78 -        option root-path "192.168.1.2:/dlc/fs/quux2";
    1.79 -        option freebsd-rootopts "rw,noatime";
    1.80 -        option swap-server 192.168.1.2;
    1.81 -        option freebsd-swappath "192.168.1.2:/dlc/fs/swap";
    1.82 -        option freebsd-swapopts "sw";
    1.83 -    }
    1.84 -}
    1.85 -
    1.86 -#   The list of clients we know, but which get IP addresses from pool
    1.87 -group {
    1.88 -    host quux3 { hardware ethernet 01:02:03:00:00:03; }
    1.89 -    host quux4 { hardware ethernet 01:02:03:00:00:04; }
    1.90 -}
    1.91 -

mercurial