<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="es">
	<id>https://manuais.iessanclemente.net/index.php?action=history&amp;feed=atom&amp;title=Configuraci%C3%B3n_de_DHCP_Server_en_Debian</id>
	<title>Configuración de DHCP Server en Debian - Historial de revisiones</title>
	<link rel="self" type="application/atom+xml" href="https://manuais.iessanclemente.net/index.php?action=history&amp;feed=atom&amp;title=Configuraci%C3%B3n_de_DHCP_Server_en_Debian"/>
	<link rel="alternate" type="text/html" href="https://manuais.iessanclemente.net/index.php?title=Configuraci%C3%B3n_de_DHCP_Server_en_Debian&amp;action=history"/>
	<updated>2026-10-21T18:44:12Z</updated>
	<subtitle>Historial de revisiones de esta página en la wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://manuais.iessanclemente.net/index.php?title=Configuraci%C3%B3n_de_DHCP_Server_en_Debian&amp;diff=28923&amp;oldid=prev</id>
		<title>Veiga: /* Instalación de DHCP3 */</title>
		<link rel="alternate" type="text/html" href="https://manuais.iessanclemente.net/index.php?title=Configuraci%C3%B3n_de_DHCP_Server_en_Debian&amp;diff=28923&amp;oldid=prev"/>
		<updated>2012-10-01T18:04:38Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Instalación de DHCP3&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nueva&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== Teoría de DHCP ===&lt;br /&gt;
[[Servizo_DHCP]]&lt;br /&gt;
&lt;br /&gt;
=== Instalación de DHCP3  ===&lt;br /&gt;
*  Atención si estamos trabajando en una red con VLAN y el servidor DHCP está fuera del alcance de nuestra VLAN, necesitaremos configurar en el switch que gestiona la VLAN un IP_Helper para redireccionar las peticiones DHCP al servidor DHCP central.&lt;br /&gt;
&lt;br /&gt;
* Instalar dhcp3-server:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# Para instalarlo:&lt;br /&gt;
apt-get install dhcp3-server&lt;br /&gt;
&lt;br /&gt;
# Los ficheros de configuración se encuentran en:&lt;br /&gt;
/etc/dhcp3/  y  /etc/default/isc-dhcp-server&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Editar el fichero /etc/default/isc-dhcp-server para indicar la interfaz de escucha del DHCP:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
nano /etc/default/isc-dhcp-server&lt;br /&gt;
&lt;br /&gt;
# Defaults for dhcp initscript&lt;br /&gt;
# sourced by /etc/init.d/dhcp&lt;br /&gt;
# installed at /etc/default/isc-dhcp-server by the maintainer scripts&lt;br /&gt;
#&lt;br /&gt;
# This is a POSIX shell fragment&lt;br /&gt;
#&lt;br /&gt;
&lt;br /&gt;
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?&lt;br /&gt;
#       Separate multiple interfaces with spaces, e.g. &amp;quot;eth0 eth1&amp;quot;.&lt;br /&gt;
INTERFACES=&amp;quot;eth0&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Ejemplo del fichero por defecto /etc/dhcp/dhcpd.conf:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# Sample configuration file for ISC dhcpd for Debian&lt;br /&gt;
#&lt;br /&gt;
#&lt;br /&gt;
&lt;br /&gt;
# The ddns-updates-style parameter controls whether or not the server will&lt;br /&gt;
# attempt to do a DNS update when a lease is confirmed. We default to the&lt;br /&gt;
ddns-update-style none;&lt;br /&gt;
&lt;br /&gt;
# option definitions common to all supported networks...&lt;br /&gt;
option domain-name &amp;quot;example.org&amp;quot;;&lt;br /&gt;
option domain-name-servers ns1.example.org, ns2.example.org;&lt;br /&gt;
&lt;br /&gt;
default-lease-time 600;&lt;br /&gt;
max-lease-time 7200;&lt;br /&gt;
&lt;br /&gt;
# If this DHCP server is the official DHCP server for the local&lt;br /&gt;
# network, the authoritative directive should be uncommented.&lt;br /&gt;
#authoritative;&lt;br /&gt;
&lt;br /&gt;
# Use this to send dhcp log messages to a different log file (you also&lt;br /&gt;
# have to hack syslog.conf to complete the redirection).&lt;br /&gt;
log-facility local7;&lt;br /&gt;
&lt;br /&gt;
# No service will be given on this subnet, but declaring it helps the &lt;br /&gt;
# DHCP server to understand the network topology.&lt;br /&gt;
&lt;br /&gt;
#subnet 10.152.187.0 netmask 255.255.255.0 {&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
# This is a very basic subnet declaration.&lt;br /&gt;
&lt;br /&gt;
#subnet 10.254.239.0 netmask 255.255.255.224 {&lt;br /&gt;
#  range 10.254.239.10 10.254.239.20;&lt;br /&gt;
#  option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org;&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
# This declaration allows BOOTP clients to get dynamic addresses,&lt;br /&gt;
# which we dont really recommend.&lt;br /&gt;
&lt;br /&gt;
#subnet 10.254.239.32 netmask 255.255.255.224 {&lt;br /&gt;
#  range dynamic-bootp 10.254.239.40 10.254.239.60;&lt;br /&gt;
#  option broadcast-address 10.254.239.31;&lt;br /&gt;
#  option routers rtr-239-32-1.example.org;&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
# A slightly different configuration for an internal subnet.&lt;br /&gt;
#subnet 10.5.5.0 netmask 255.255.255.224 {&lt;br /&gt;
#  range 10.5.5.26 10.5.5.30;&lt;br /&gt;
#  option domain-name-servers ns1.internal.example.org;&lt;br /&gt;
#  option domain-name &amp;quot;internal.example.org&amp;quot;;&lt;br /&gt;
#  option routers 10.5.5.1;&lt;br /&gt;
#  option broadcast-address 10.5.5.31;&lt;br /&gt;
#  default-lease-time 600;&lt;br /&gt;
#  max-lease-time 7200;&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
# Hosts which require special configuration options can be listed in&lt;br /&gt;
# host statements.   If no address is specified, the address will be&lt;br /&gt;
# allocated dynamically (if possible), but the host-specific information&lt;br /&gt;
# will still come from the host declaration.&lt;br /&gt;
&lt;br /&gt;
#host passacaglia {&lt;br /&gt;
#  hardware ethernet 0:0:c0:5d:bd:95;&lt;br /&gt;
#  filename &amp;quot;vmunix.passacaglia&amp;quot;;&lt;br /&gt;
#  server-name &amp;quot;toccata.fugue.com&amp;quot;;&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
# Fixed IP addresses can also be specified for hosts.   These addresses&lt;br /&gt;
# should not also be listed as being available for dynamic assignment.&lt;br /&gt;
# Hosts for which fixed IP addresses have been specified can boot using&lt;br /&gt;
# BOOTP or DHCP.   Hosts for which no fixed address is specified can only&lt;br /&gt;
# be booted with DHCP, unless there is an address range on the subnet&lt;br /&gt;
# to which a BOOTP client is connected which has the dynamic-bootp flag&lt;br /&gt;
# set.&lt;br /&gt;
#host fantasia {&lt;br /&gt;
#  hardware ethernet 08:00:07:26:c0:a5;&lt;br /&gt;
#  fixed-address fantasia.fugue.com;&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
# You can declare a class of clients and then do address allocation&lt;br /&gt;
# based on that.   The example below shows a case where all clients&lt;br /&gt;
# in a certain class get addresses on the 10.17.224/24 subnet, and all&lt;br /&gt;
# other clients get addresses on the 10.0.29/24 subnet.&lt;br /&gt;
&lt;br /&gt;
#class &amp;quot;foo&amp;quot; {&lt;br /&gt;
#  match if substring (option vendor-class-identifier, 0, 4) = &amp;quot;SUNW&amp;quot;;&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
#shared-network 224-29 {&lt;br /&gt;
#  subnet 10.17.224.0 netmask 255.255.255.0 {&lt;br /&gt;
#    option routers rtr-224.example.org;&lt;br /&gt;
#  }&lt;br /&gt;
#  subnet 10.0.29.0 netmask 255.255.255.0 {&lt;br /&gt;
#    option routers rtr-29.example.org;&lt;br /&gt;
#  }&lt;br /&gt;
#  pool {&lt;br /&gt;
#    allow members of &amp;quot;foo&amp;quot;;&lt;br /&gt;
#    range 10.17.224.10 10.17.224.250;&lt;br /&gt;
#  }&lt;br /&gt;
#  pool {&lt;br /&gt;
#    deny members of &amp;quot;foo&amp;quot;;&lt;br /&gt;
#    range 10.0.29.10 10.0.29.230;&lt;br /&gt;
#  }&lt;br /&gt;
#}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Fichero de logs del dhcp server:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
Se encuentra en /var/log/syslog&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Para iniciar / parar el servicio DHCP:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
service isc-dhcp-server start | stop | status&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
--[[Usuario:Veiga|Veiga]] 20:04 1 oct 2012 (CEST)&lt;/div&gt;</summary>
		<author><name>Veiga</name></author>
	</entry>
</feed>