dhcpd/dhcpd.conf

Fri, 16 Jan 2009 10:58:21 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2009 10:58:21 +0100
changeset 92
645923d1e875
permissions
-rw-r--r--

Correct and improve code logic, buildconf, and packaging. In particular:
1. Use descriptive variable names <var>libs instead of just <var>.
2. Although Nokia states in all Qt builds that 'NOTE: When linking
against OpenSSL, you can override the default library names
through OPENSSL_LIBS.' and even gives an example, their own
configuration logic rejects such an attempt. Correct this by
hard coding the OpenSSL library string in the configure script.
3. Consistently use the whitespace substitution [\t ] throughout.
4. Patch the buggy INCPATH of SQL plugin Qmake project files.
5. Add the 'x11' configuration variable to the qtconfig Qmake
project using the src/gui/gui.pro file as a model. This is
needed for qtconfig although not in other tools, because
the qtconfig buildconf indirectly includes qt_x11_p.h which
is dependent on X11 headers.
6. Avoid 'ld.so: fatal: hardware capability unsupported: SSE2 AMD_3DNow'
on platforms for which the config.tests/unix/[3dnow|sse2] succeed
although unsopported at run time by testing for the x86-64
instruction set at build time and regulating hardware capabilities.
7. Correctly install the desinger plugin by explicitly building it.
8. Remove custom plugin installation logic which is unnecessary.
9. Correct removal of temporary paths from shared object files.

     1 ##
     2 ##  dhcpd.conf -- ISC DHCP Daemon Configuration
     3 ##
     5 #   Options applicable to all subnets
     6 option domain-name "example.com";
     7 authoritative;
     8 default-lease-time 600;
     9 max-lease-time 7200;
    10 ddns-update-style none;
    11 use-host-decl-names on;
    13 #   Define some non-standard options
    14 option freebsd-swappath code 128 = text;
    15 option freebsd-rootopts code 130 = text;
    16 option freebsd-swapopts code 131 = text;
    18 #   Test drive using loopback
    19 subnet 127.0.0.0 netmask 255.0.0.0 {
    20 }
    22 #   Define a particular sample subnet
    23 subnet 192.168.1.0 netmask 255.255.255.0 {
    25     #   Options applicable to this particular subnet
    26     option broadcast-address 192.168.1.255;
    27     option subnet-mask 255.255.255.0;
    28     option routers 192.168.1.1;
    29     option domain-name-servers 192.168.1.2;
    31     #   Dynamic DNS (DDNS) Updating
    32     ddns-updates off;
    33     ddns-domainname "example.com";
    34     ddns-rev-domainname "in-addr.arpa";
    36     #   Pool of known clients (i.e. MAC known but IP not specified)
    37     pool {
    38         range 192.168.1.100 192.168.1.149;
    39         min-lease-time      600;   # 10min
    40         default-lease-time  43200; # 12hour
    41         max-lease-time      86400; # 24hour
    42         deny unknown clients;
    43     }
    45     #   Pool of unknown clients (i.e. MAC not known)
    46     pool {
    47         range 192.168.1.150 192.168.1.199;
    48         min-lease-time      300;   # 5min
    49         default-lease-time  3600;  # 1hour
    50         max-lease-time      10800; # 3hour
    51         allow unknown clients;
    52     }
    53 }
    55 #   The list of clients we explicitly configure
    56 group {
    57     #   Just assign a fixed IP address for machine "quux1"
    58     host quux1 {
    59         hardware ethernet 01:02:03:00:00:01;
    60         fixed-address 192.168.1.3;
    61     }
    63     #   Provide full boot information for a FreeBSD diskless client "quux2":
    64     #   On the server, create a 32MB swapfile /dlc/fs/swap/swap.192.168.1.4
    65     #   with `dd if=/dev/zero of=swap.192.168.1.4 bs=1m count=32' and the
    66     #   filesystem /dlc/fs/quux2 with `cd /usr/src; make buildworld; make
    67     #   installworld DESTDIR=/dlc/fs/quux2'. Then use Etherboot for booting.
    68     host quux2 {
    69         hardware ethernet 01:02:03:00:00:02;
    70         fixed-address 192.168.1.4;
    71         next-server 192.168.1.2;
    72         option tftp-server-name "192.168.1.2";
    73         filename "kernel.quux";
    74         always-reply-rfc1048 on;
    75         option root-path "192.168.1.2:/dlc/fs/quux2";
    76         option freebsd-rootopts "rw,noatime";
    77         option swap-server 192.168.1.2;
    78         option freebsd-swappath "192.168.1.2:/dlc/fs/swap";
    79         option freebsd-swapopts "sw";
    80     }
    81 }
    83 #   The list of clients we know, but which get IP addresses from pool
    84 group {
    85     host quux3 { hardware ethernet 01:02:03:00:00:03; }
    86     host quux4 { hardware ethernet 01:02:03:00:00:04; }
    87 }

mercurial