Installing and Configuring DHCP Server (DHCPd) on FreeBSD Instalar y configurar el servidor DHCP (DHCPd de) en FreeBSD

DHCP, the Dynamic Host Configuration Protocol, describes the means by which a system can connect to a network and obtain the necessary information for communication upon that network. DHCP, Dynamic Host Configuration Protocol, se describen los medios por los cuales un sistema puede conectarse a una red y obtener la información necesaria para la comunicación a la red.

When dhclient, the DHCP client, is executed on the client machine, it begins broadcasting requests for configuration information. Cuando dhclient, el cliente DHCP, se ejecuta en la máquina cliente, comienza la radiodifusión solicitudes de información de configuración. By default, these requests are on UDP port 68. Por defecto, estas peticiones están en el puerto UDP 68. The server replies on UDP 67, giving the client an IP address and other relevant network information such as netmask, router, and DNS servers. El servidor de respuestas UDP 67, dando al cliente una dirección IP y otras redes de información tales como la máscara de red, el router y los servidores DNS. All of this information comes in the form of a DHCP ?lease? Toda esta información viene en forma de un protocolo DHCP de arrendamiento? and is only valid for a certain time (configured by the DHCP server maintainer). y sólo es válida durante un determinado tiempo (configurado por el servidor DHCP mantenedor). In this manner, stale IP addresses for clients no longer connected to the network can be automatically reclaimed. De esta manera, las direcciones IP rancia ya no para los clientes conectados a la red pueden ser regeneradas.

DHCP Server (or DHCPd) is the server that provides the DHCP client the information it needed, and it's the server portion of the suite is not provided as part of FreeBSD, and so it needs to install from the net/isc-dhcp3-server port to provide this service. Servidor DHCP (o DHCPd de) es el servidor que proporciona el cliente DHCP de la información que necesita, y es el servidor de parte de la suite no está prevista como parte de FreeBSD, por lo que requiere la instalación de la net/isc-dhcp3-server puerto para proporcionar este servicio.

FreeBSD comes with ISC DHCP, and it comes with FreeBSD as ports net/isc-dhcp3-server. FreeBSD viene con ISC DHCP, y viene con FreeBSD como puertos net/isc-dhcp3-server.

To install it, change to ports net/isc-dhcp3-server directory and execute the following command: Para instalarlo, cambiar a los puertos net/isc-dhcp3-server directorio y ejecutar el siguiente comando:

# make install clean # Make install limpio

DHCPd is configured by using a configuration file, normally dhcpd.conf located at /usr/local/etc directory. DHCPd de está configurado por medio de un archivo de configuración, normalmente dhcpd.conf localizado en / usr / local / etc directorio. Normally there is an example configuration file which is dhcpd.conf.example at the directory. Normalmente hay un archivo de configuración de ejemplo que se dhcpd.conf.example en el directorio. Copy dhcpd.conf.example to dhcpd.conf or create a new dhcpd.conf before proceeding to make changes on DHCP Server. Copia a dhcpd.conf.example dhcpd.conf o crear una nueva dhcpd.conf antes de proceder a realizar cambios en el servidor DHCP.

dhcpd.conf is comprised of declarations regarding subnets and hosts, and is perhaps most easily explained using an example : dhcpd.conf se compone de declaraciones relativas a las subredes y los ejércitos, y es quizás el más fácil de explicar mediante un ejemplo:

option domain-name “example.com”; (1) option domain-name "example.com"; (1)
option domain-name-servers 192.168.4.100; (2) option domain-name-servers 192.168.4.100; (2)
option subnet-mask 255.255.255.0; (3) opción máscara de subred 255.255.255.0, (3)

default-lease-time 3600; (4) default-lease-time 3600; (4)
max-lease-time 86400; (5) Max-lease-time 86400; (5)
ddns-update-style none; (6) ddns-update-style none; (6)

subnet 192.168.4.0 netmask 255.255.255.0 { subred 192.168.4.0 netmask 255.255.255.0 (
range 192.168.4.129 192.168.4.254; (7) rango 192.168.4.129 192.168.4.254; (7)
option routers 192.168.4.1; (8) option routers 192.168.4.1; (8)
} )

host mailhost { acogida mailhost (
hardware ethernet 02:03:04:05:06:07; (9) hardware ethernet 02:03:04:05:06:07; (9)
fixed-address mailhost.example.com; (10) fixed-address mailhost.example.com; (10)
} )

(1) This option specifies the domain that will be provided to clients as the default search domain. (1) Esta opción especifica el dominio que se proporcionará a los clientes como el dominio de búsqueda por defecto.
(2) This option specifies a comma separated list of DNS servers that the client should use. (2) Esta opción especifica una lista separada por comas de los servidores DNS que el cliente debe utilizar.
(3) The netmask that will be provided to clients. (3) La máscara de red que se proporcionará a los clientes.
(4) A client may request a specific length of time that a lease will be valid. (4) Un cliente puede solicitar un determinado período de tiempo que un contrato de arrendamiento será válido. Otherwise the server will assign a lease with this expiry value (in seconds). En caso contrario el servidor asigna un contrato de arrendamiento con vencimiento este valor (en segundos).
(5) This is the maximum length of time that the server will lease for. (5) Esta es la longitud máxima de tiempo que el servidor de arrendamiento. Should a client request a longer lease, a lease will be issued, although it will only be valid for max-lease-time seconds. En caso de que una solicitud de un cliente ya un arrendamiento, un contrato de arrendamiento será publicada, a pesar de que sólo será válido para max-lease-time segundos.
(6) This option specifies whether the DHCP server should attempt to update DNS when a lease is accepted or released. (6) Esta opción especifica si el servidor DHCP debe intentar actualizar DNS cuando se acepta un contrato de arrendamiento o en libertad. In the ISC implementation, this option is required. En la aplicación de ISC, esta opción es obligatorio.
(7) This denotes which IP addresses should be used in the pool reserved for allocating to clients. (7) Esto significa que las direcciones IP deben ser utilizados en la piscina reservada para la asignación a los clientes. IP addresses between, and including, the ones stated are handed out to clients. Entre las direcciones IP, y entre ellos, los que dijo son entregados a los clientes.
(8) Declares the default gateway that will be provided to clients. (8) Declara la puerta de enlace predeterminada que se proporcionará a los clientes.
(9) The hardware MAC address of a host (so that the DHCP server can recognize a host when it makes a request). (9) El hardware dirección MAC de un host (de forma que el servidor DHCP puede reconocer una serie cuando hace una solicitud).
(10) Specifies that the host should always be given the same IP address. (10) Especifica que el anfitrión siempre debe tener la misma dirección IP. Note that using a hostname is correct here, since the DHCP server will resolve the hostname itself before returning the lease information. Tenga en cuenta que el uso de un nombre de host es correcto, ya que el servidor DHCP resolverá el nombre de la máquina en sí, antes de regresar el arrendamiento de información.

Once you have finished writing your dhcpd.conf, you can proceed to start the server by issuing the following command: Una vez que haya terminado de escribir su dhcpd.conf, puede proceder a iniciar el servidor mediante la emisión de los siguientes comandos:

# /usr/local/etc/rc.d/isc-dhcpd.sh start # / Usr / local / etc / rc.d / ISC-dhcpd.sh inicio

Should you need to make changes to the configuration of your server in the future, it is important to note that sending a SIGHUP signal to dhcpd does not result in the configuration being reloaded, as it does with most daemons. Si necesita hacer cambios a la configuración de su servidor en el futuro, es importante señalar que el envío de una señal SIGHUP a dhcpd no da lugar a la configuración de ser cargados de nuevo, como ocurre con la mayoría de los demonios. A SIGTERM signal to stop the process, and then restart it using the command above. Una señal SIGTERM para parar el proceso y, a continuación, reinicie utilizando el comando de arriba. For example: Por ejemplo:

# ps wax | grep dhcpd # Ps cera | grep dhcpd
pid of dhcpd will be shown pid de dhcpd se mostrará

# kill -15 (pid of dhcpd) # Kill -15 (pid de dhcpd)

IMPORTANT : The page is machine translated and provided "as is" without warranty. IMPORTANTE: La página está traducida máquina y proporciona "tal cual" sin garantía. Machine translation may be difficult to understand. La traducción automática puede resultar difícil de entender. Please refer to Por favor, consulte original English article artículo original Inglés whenever possible. siempre que sea posible.


Leave a Reply Deje una contestación

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> Usted puede utilizar estas etiquetas: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. Suscribirse a los comentarios Se ha desactivado la característica. To receive notification of latest comments posted, subscribe to Para recibir la notificación de la última envió comentarios, suscribirse a My Digital Life Comments RSS feed Mi vida digital Comentarios RSS or o register to receive registrarse para recibir new comments in daily email digest. nuevos comentarios en el email diario digerir.
Custom Search

New Articles Nuevos artículos

Incoming Search Terms for the Article Próximos Términos de búsqueda para el artículo

freebsd dhcpd freebsd dhcpd - -- dhcpd freebsd freebsd dhcpd - -- dhcp freebsd freebsd dhcp - -- freebsd dhcp server freebsd servidor dhcp - -- freebsd dhcp freebsd dhcp - -- freebsd dhcp configuration freebsd configuración DHCP - -- dhcp+freebsd dhcp + freebsd - -- dhcp server mysql mysql servidor dhcp - -- bsd configuring dchp bsd configurar DCHP - -- how to configure dhcp server in windows vista cómo configurar el servidor dhcp en windows vista - -- how to setup DHCPv6 on freeBSD 7 como configurar DHCPv6 en FreeBSD 7 - -- dhcp server freebsd servidor dhcp freebsd - -- freebsd dhcp.conf freebsd dhcp.conf - -- installing and configuring DHCP la instalación y configuración de DHCP - -- freebsd in my server freebsd en mi servidor - -- isc dhcpd same ip el dhcpd de ISC misma ip - -- dhcp di freebsd dhcp di freebsd - -- freebsd isc-dhcpd freebsd-ISC dhcpd - -- configuration dhcp server et client freebsd configuración de cliente y servidor dhcp freebsd - -- configurer server dhcp freebsd configurar el servidor dhcp freebsd - -- dhcp server + mysql servidor dhcp + mysql - -- dhcp на freebsd на freebsd dhcp - -- dhcp3 web based dhcp3 basado en la Web - -- freebsd setting dhcp freebsd configuración de DHCP - -- freebsd restart dhcpd FreeBSD reiniciar dhcpd - -- freebsd how to configure dhcp freebsd cómo configurar dhcp - -- isc-dhcpd freebsd dhcpd de ISC-freebsd - -- dhcpd freebsd install freebsd instalar dhcpd - -- dhcpd install dhcpd de instalar - -- isc dhcp.conf options ISC dhcp.conf opciones - -- openbsd dhcpd primary OpenBSD dhcpd de primaria - -- configure ISC DHCPd configurar el ISC DHCPd - -- configuring DHCP Server in FreeBSD configurar el servidor DHCP en FreeBSD - -- dhcpd.conf vista dhcp offer dhcpd.conf vista dhcp oferta - -- dhcp freebsd server freebsd servidor dhcp - -- dhcp freebsd 7 dhcp freebsd 7 - -- dhcpd windows search domains dhcpd de las ventanas de búsqueda dominios - -- freebsd dns dhcp client freebsd dns cliente dhcp - -- freebsd 7 dhcp howto freebsd 7 dhcp guía - -- freebsd dhcpserver freebsd dhcpserver - -- how to configure a DHCPv6 client and a DHCPv6 server using FreeBSD. cómo DHCPv6 para configurar un cliente y un servidor mediante DHCPv6 FreeBSD. - -- install dhcp server freebsd instalar servidor dhcp freebsd - -- installer dhcp freebsd instalador dhcp freebsd - -- lease expiry dhcp3-server arrendamiento expire dhcp3-server - -- MP.11 dhcp bug MP.11 dhcp error - -- "php" + "dhcpd" + "web" "php" + "dhcpd" + "web" - -- Configuring DHCP in freeBSD Configuración de DHCP en FreeBSD - -- dchp server freeBSD DCHP servidor FreeBSD - -- freebsd dhcpd server freebsd dhcpd servidor - -- freeBSD starting dhcp a partir de FreeBSD dhcp - --