Oft geht es ja von allein. Für die wenigen Fälle dann hier einige Spickerl
http://albatross.madduck.net/pipermail/debian-unizh/2004-February/000219.html
My config files are below:
/etc/dhcp3/dhcpd.conf :
ddns-update-style interim;
ignore-client-updates;
option domain-name "ddd.lokal";
option domain-name-servers 192.168.1.1;
default-lease-time 600;
max-lease-time 7200;
authoritative;
log-facility local7;
subnet 192.168.1.0 netmask 255.255.255.0 {
range dynamic-bootp 192.168.1.20 192.168.1.39;
option subnet-mask 255.255.255.0;
option netbios-name-servers 192.168.1.1;
option routers 192.168.1.2;
option broadcast-address 192.168.1.255;
}
http://www.bcgreen.com/knoppix/terminal-server/knoppix-terminalserver
cat >/etc/dhcp3/dhcpd.conf <<EOT
# dhcpd.conf for KNOPPIX terminalserver
# global settings
allow booting;
allow bootp;
default-lease-time 600;
max-lease-time 7200;
$DHCP_PORTS
subnet ${NETWORK}.0 netmask ${NETMASK} {
next-server $IP;
# if substring (option vendor-class-identifier, 0, 9) = "Etherboot" { filename "etherboot.nbi"; }
# else { filename "pxelinux.0"; }
filename "pxelinux.0";
option subnet-mask ${NETMASK};
range ${IPRANGE_FROM} ${IPRANGE_TO};
${ALLNAMESERVERS:+option domain-name-servers $ALLNAMESERVERS;}
${ALLGATEWAYS:+option routers $ALLGATEWAYS;}
}
EOT
http://www.johncooke.info/linux/dhcpdconf.html
Example dhcpd.conf
Based on my network settings heres is a simple subnet declaration. You will need to edit this depending on what subnet you use.
subnet 192.168.0.0 netmask 255.255.255.0 { This is a subnet which the dhcpd server controlls, note the { this is required
default-lease-time 345600; Sets the time loan time in seconds before computers must renew thier leases
max-lease-time 691200; Set the maximum amount of time a pc can hold a lease for
option domain-name "supaweb.local"; Sets the domain name
option domain-name-servers 192.168.0.2; Sets the dns servers you can have one or multiple ones ip address"s seperated by commas
option routers 192.168.0.2; Set the network gateway / router
option broadcast-address 192.168.0.255; Sets the network broadcast address
range 192.168.0.20 192.168.0.30; Defines a range of ips to be used as leases
}
http://docs.solstice.nl/index.php/DNS/DHCP-server
-- macdet 2006-10-07 09:29:46
Linux/Netzwerk/dhcpd (last modified 2008-11-04 07:00:03)