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>
- dhcpd.conf
- Sample configuration file for ISC dhcpd
- 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;
- 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;
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>
- Configure which interface or interfaces to for dhcpd to listen on.
- List all interfaces space separated. If this is not specified then
- 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
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. |