Serverdienste - DHCP
Benötigt werden
- Der DHCP-Server (dhcpd)
- Die Konfigurationsdatei /etc/dhcpd.conf mit Einträgen
für jedes verwendete Interface der Servermaschine.
- Die Datei dhcpd.leases, üblicherweise in /var/lib/dhcpd.leases (muss existieren)
Die Datei /etc/dhcpd.conf
# dhcpd.conf
#
# Sample configuration file for ISC dhcpd
#
# option definitions common to all supported networks...
option domain-name "mopag.de";
#option domain-name-servers 10.1.1.253;
option netbios-name-servers 10.1.1.1;
#ddns-update-style ad-hoc;
option subnet-mask 255.255.255.0;
default-lease-time 43200;
max-lease-time 86400;
subnet 10.1.1.0 netmask 255.255.255.0 {
# range 10.2.100.1 10.2.100.254;
range dynamic-bootp 10.1.1.100 10.1.1.200;
# range dynamic-bootp 193.196.134.191 193.196.134.191;
option broadcast-address 10.1.1.255;
option routers 10.1.1.1;
}
# Hosts which require special configuration options can be listed in
# host statements. If no address is specified, the address will be
# allocated dynamically (if possible), but the host-specific information
# will still come from the host declaration.
#host passacaglia {
# hardware ethernet 0:0:c0:5d:bd:95;
# filename "vmunix.passacaglia";
# server-name "toccata.fugue.com";
#}
# Fixed IP addresses can also be specified for hosts. These addresses
# should not also be listed as being available for dynamic assignment.
# Hosts for which fixed IP addresses have been specified can boot using
# BOOTP or DHCP. Hosts for which no fixed address is specified can only
# be booted with DHCP, unless there is an address range on the subnet
# to which a BOOTP client is connected which has the dynamic-bootp flag
# set.
#host k3301ps {
# hardware ethernet 00:d0:b7:6f:13:02;
# fixed-address 193.196.134.191;
#}
# If a DHCP or BOOTP client is mobile and might be connected to a variety
# of networks, more than one fixed address for that host can be specified.
# Hosts can have fixed addresses on some networks, but receive dynamically
# allocated address on other subnets; in order to support this, a host
# declaration for that client must be given which does not have a fixed
# address. If a client should get different parameters depending on
# what subnet it boots on, host declarations for each such network should
# be given. Finally, if a domain name is given for a host's fixed address
# and that domain name evaluates to more than one address, the address
# corresponding to the network to which the client is attached, if any,
# will be assigned.
#host confusia {
# hardware ethernet 02:03:04:05:06:07;
# fixed-address confusia-1.fugue.com, confusia-2.fugue.com;
# filename "vmunix.confusia";
# server-name "toccata.fugue.com";
#}
#host confusia {
# hardware ethernet 02:03:04:05:06:07;
# fixed-address confusia-3.fugue.com;
# filename "vmunix.confusia";
# server-name "snarg.fugue.com";
#}
#host confusia {
# hardware ethernet 02:03:04:05:06:07;
# filename "vmunix.confusia";
# server-name "bb.home.vix.com";
#}
Inhalt
Letzte Änderung am
Don Mär 7 11:30:17 CET 2002
von Adrian Reyer