Serveur DHCP

De wikilivois
Aller à la navigationAller à la recherche


http://www.gentoo.org/doc/en/home-router-howto.xml

Package Gentoo: dhcp

<licode file=/etc/dhcp/dhcp.conf>

  1. dhcpd.conf
  2. Sample configuration file for ISC dhcpd
  1. option definitions common to all supported networks...

option domain-name "livois.com"; option domain-name-servers 192.168.10.1;

default-lease-time 600; max-lease-time 7200;

  1. If this DHCP server is the official DHCP server for the local
  2. network, the authoritative directive should be uncommented.

authoritative;

  1. Use this to send dhcp log messages to a different log file (you also
  2. have to hack syslog.conf to complete the redirection).

log-facility local7;

ddns-update-style interim; subnet 192.168.10.0 netmask 255.255.255.0 {

   range 192.168.10.30 192.168.10.39;
   default-lease-time 259200;
   max-lease-time 518400;
   option subnet-mask 255.255.255.0;
   option broadcast-address 192.168.10.255;
   option routers 192.168.10.1;
   option domain-name-servers 192.168.10.1;

} </licode>

<licode file=/etc/conf.d/dhcp>

  1. Configure which interface or interfaces to for dhcpd to listen on.
  2. List all interfaces space separated. If this is not specified then
  3. we listen on all interfaces.
DHCPD_IFACE="eth1"

</licode>

Une alternative est dnsmasq qui est à la fois :

  • serveur DHCP
  • serveur DNS

Copyright

© 2006 Christophe de Livois

Tête de GNU Vous avez l'autorisation de copier, distribuer et/ou modifier ce document suivant les termes de la GNU Free Documentation License, Version 1.2 ou n'importe quelle version ultérieure publiée par la Free Software Foundation; sans section invariante, sans page de garde, sans entête et sans page finale. Pour plus d'informations consulter le site de l'APRIL.