ISC-DHCPD (Linux): Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 7: | Zeile 7: | ||
== Konfiguraration == | == Konfiguraration == | ||
Die Datei ''/etc/dhcp/dhcpd.conf'' anpassen: | |||
<pre> | <pre> | ||
sudo nano /etc/dhcp/dhcpd.conf | sudo nano /etc/dhcp/dhcpd.conf | ||
</pre> | </pre> | ||
Foldende Konfiguration beinhaltet nur alle einkommentierten Optionen: | |||
<pre> | |||
# The ddns-updates-style parameter controls whether or not the server will | |||
# attempt to do a DNS update when a lease is confirmed. We default to the | |||
# behavior of the version 2 packages ('none', since DHCP v2 didn't | |||
# have support for DDNS.) | |||
ddns-update-style none; | |||
# option definitions common to all supported networks... | |||
option domain-name "kirner.or.at"; | |||
option domain-name-servers 10.0.0.100; | |||
default-lease-time 600; | |||
max-lease-time 7200; | |||
# If this DHCP server is the official DHCP server for the local | |||
# network, the authoritative directive should be uncommented. | |||
authoritative; | |||
# Use this to send dhcp log messages to a different log file (you also | |||
# have to hack syslog.conf to complete the redirection). | |||
log-facility local7; | |||
subnet 10.0.0.0 netmask 255.255.255.0 { | |||
range 10.0.0.2 10.0.0.100; | |||
option routers 10.0.0.1; | |||
} | |||
</pre> | |||
Danach den den DHCP-Server neustarten: | |||
<pre> | <pre> | ||
sudo /etc/init.d/isc-dhcp-server restart | sudo /etc/init.d/isc-dhcp-server restart |
Version vom 5. September 2016, 21:20 Uhr
Installation
sudo apt-get install isc-dhcp-server
Konfiguraration
Die Datei /etc/dhcp/dhcpd.conf anpassen:
sudo nano /etc/dhcp/dhcpd.conf
Foldende Konfiguration beinhaltet nur alle einkommentierten Optionen:
# The ddns-updates-style parameter controls whether or not the server will # attempt to do a DNS update when a lease is confirmed. We default to the # behavior of the version 2 packages ('none', since DHCP v2 didn't # have support for DDNS.) ddns-update-style none; # option definitions common to all supported networks... option domain-name "kirner.or.at"; option domain-name-servers 10.0.0.100; default-lease-time 600; max-lease-time 7200; # If this DHCP server is the official DHCP server for the local # network, the authoritative directive should be uncommented. authoritative; # Use this to send dhcp log messages to a different log file (you also # have to hack syslog.conf to complete the redirection). log-facility local7; subnet 10.0.0.0 netmask 255.255.255.0 { range 10.0.0.2 10.0.0.100; option routers 10.0.0.1; }
Danach den den DHCP-Server neustarten:
sudo /etc/init.d/isc-dhcp-server restart
Links
https://wiki.ubuntuusers.de/ISC-DHCPD/
Zurück zu Ubuntu