Linuxhotel Wiki

Wie ging das nochmal?

Benutzer-Werkzeuge

Webseiten-Werkzeuge


fortgeschrittene:dhcp

Dies ist eine alte Version des Dokuments!


DHCP-Dienst mit festen IP-Adressen

/etc/dhcpd.conf :

authoritative;
ddns-update-style none;

log-facility local7;

subnet 192.168.1.0 netmask 255.255.255.0 {
  option domain-name-servers 192.168.1.4;
  option domain-name "linuxhotel.de";
  option routers 192.168.1.1;
  option broadcast-address 192.168.1.255;
  default-lease-time 600;
  max-lease-time 7200;

}

use-host-decl-names on;

host notebook03 {
  hardware ethernet 00:a0:cc:d5:52:e4;
  fixed-address 192.168.1.203;
  option domain-name-servers 192.168.1.6;
}

host notebook06 {
  hardware ethernet 00:a0:cc:d5:53:0c;
  fixed-address 192.168.1.206;
}

SuSE

/etc/sysconfig/dhcpd:

DHCPD_INTERFACE="eth0"
DHCPD_RUN_CHROOTED="yes"
DHCPD_RUN_AS="dhcpd"

CentOS

/etc/sysconfig/dhcpd :

# Command line options here
DHCPDARGS="eth0"

Testen

Debian

dhcpd3 -t

SuSE

rcdhcpd check-syntax

CentOS 5.3

dhcpd -t

Tools

OMAPI / omshell

Ist eine Möglichkeit einen laufenden DHCP-Server ohne Neustart zu steuern ( leases, etc. ).

mehrere Domains per DHCP

dhcpd.conf:

domain-name "main.domain" 
domain-search "additional.domain"

With 3.1.0, if the domain-search option is set, then the search directive is set to this. If the domain-name option is set, this is prepended to the list of domains in the domain-search option.

fortgeschrittene/dhcp.1289249856.txt.gz · Zuletzt geändert: 2011/04/16 22:24 (Externe Bearbeitung)