Installing and Configuring DHCP Server (DHCPd) on FreeBSD Instalando e configurando o servidor DHCP (dhcpd) no 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, o Dynamic Host Configuration Protocol, descreve os meios pelos quais um sistema pode se conectar a uma rede e obter as informações necessárias para a comunicação sobre a rede.

When dhclient, the DHCP client, is executed on the client machine, it begins broadcasting requests for configuration information. Quando dhclient, o cliente DHCP, é executado na máquina do cliente, começa a transmissão dos pedidos de informações de configuração. By default, these requests are on UDP port 68. Por padrão, esses pedidos estão na porta 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. O servidor responde na UDP 67, dando ao cliente um endereço IP e outras informações relevantes, como a máscara de rede, roteador, e servidores de DNS. All of this information comes in the form of a DHCP ?lease? Todas essas informações vem na forma de um DHCP? Locação? and is only valid for a certain time (configured by the DHCP server maintainer). e só é válida para um determinado tempo (configurado pelo mantenedor do servidor DHCP). In this manner, stale IP addresses for clients no longer connected to the network can be automatically reclaimed. Desta forma, stale endereços IP para clientes já não conectado à rede pode ser automaticamente valorizado.

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 (ou dhcpd) é o servidor que fornece o cliente DHCP a informação de que precisava, e é a porção do servidor suíte não é fornecida como parte do FreeBSD, e por isso necessita de instalar a partir do net/isc-dhcp3 Porta-servidor para prestar esse serviço.

FreeBSD comes with ISC DHCP, and it comes with FreeBSD as ports net/isc-dhcp3-server. FreeBSD vem com ISC DHCP, e ela vem com FreeBSD como portos net/isc-dhcp3-server.

To install it, change to ports net/isc-dhcp3-server directory and execute the following command: Para instalá-lo, mude para os portos net/isc-dhcp3-server diretório e execute o seguinte comando:

# make install clean # Make install clean

DHCPd is configured by using a configuration file, normally dhcpd.conf located at /usr/local/etc directory. Dhcpd está configurado usando um arquivo de configuração dhcpd.conf normalmente localizado em / usr / local / etc diretório. Normally there is an example configuration file which is dhcpd.conf.example at the directory. Normalmente há um arquivo de configuração exemplo, que é dhcpd.conf.example no diretório. Copy dhcpd.conf.example to dhcpd.conf or create a new dhcpd.conf before proceeding to make changes on DHCP Server. Dhcpd.conf.example dhcpd.conf para copiar ou criar uma nova dhcpd.conf antes de continuar a fazer alterações no servidor DHCP.

dhcpd.conf is comprised of declarations regarding subnets and hosts, and is perhaps most easily explained using an example : dhcpd.conf é composto de declarações relativas à sub-redes e hosts, e talvez seja mais facilmente explicado usando um exemplo:

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) opção à máscara subnet 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 { sub-rede 192.168.4.0 netmask 255.255.255.0 (
range 192.168.4.129 192.168.4.254; (7) gama 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 { acolhimento 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 opção especifica o domínio que será fornecido aos clientes como o domínio padrão de pesquisa.
(2) This option specifies a comma separated list of DNS servers that the client should use. (2) Esta opção especifica uma lista separada por vírgulas de servidores DNS que o cliente deve usar.
(3) The netmask that will be provided to clients. (3) A máscara que será prestado aos clientes.
(4) A client may request a specific length of time that a lease will be valid. (4) Um cliente pode solicitar um determinado período de tempo que um contrato de arrendamento será válido. Otherwise the server will assign a lease with this expiry value (in seconds). Caso contrário, o servidor irá atribuir um contrato de arrendamento com a expiração deste valor (em segundos).
(5) This is the maximum length of time that the server will lease for. (5) Este é o período máximo de tempo que o servidor irá para locação. Should a client request a longer lease, a lease will be issued, although it will only be valid for max-lease-time seconds. Caso um cliente solicitar um longo aluguer, de locação, será emitido, embora ela só será válida 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 opção especifica se o servidor DHCP deverá tentar atualizar o DNS quando um arrendamento é aceito ou libertados. In the ISC implementation, this option is required. Na execução do ISC, esta opção é necessária.
(7) This denotes which IP addresses should be used in the pool reserved for allocating to clients. (7) Esta denota que os endereços IP devem ser utilizados na piscina reservada para atribuição aos clientes. IP addresses between, and including, the ones stated are handed out to clients. Entre endereços IP e, inclusive, os que declararam, entregue a clientes.
(8) Declares the default gateway that will be provided to clients. (8) Declara o gateway padrão que será fornecido aos clientes.
(9) The hardware MAC address of a host (so that the DHCP server can recognize a host when it makes a request). (9) O endereço MAC de hardware, de um hospedeiro (de modo a que o servidor DHCP pode reconhecer um hospedeiro quando se faz um pedido).
(10) Specifies that the host should always be given the same IP address. (10) Especifica que o host deve semper ser dado o mesmo endereço IP. Note that using a hostname is correct here, since the DHCP server will resolve the hostname itself before returning the lease information. Note-se que utilizando um hostname aqui está corretos, uma vez que o servidor DHCP irá resolver o hostname si próprio antes de retornar à informação arrendamento.

Once you have finished writing your dhcpd.conf, you can proceed to start the server by issuing the following command: Depois de ter acabado de escrever o seu dhcpd.conf, você pode avançar para iniciar o servidor, emitindo o seguinte comando:

# /usr/local/etc/rc.d/isc-dhcpd.sh start # / Usr / local / etc / rc.d / ISC-dhcpd.sh começar

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. Caso você precise fazer alterações à configuração do seu servidor, no futuro, é importante notar que enviar um sinal SIGHUP para o dhcpd não resulte na configuração serem recarregados, como acontece com a maioria dos demónios. A SIGTERM signal to stop the process, and then restart it using the command above. Um sinal SIGTERM para interromper o processo e, em seguida, reiniciá-lo usando o comando acima. For example: Por exemplo:

# ps wax | grep dhcpd # Ps cera | grep dhcpd
pid of dhcpd will be shown pid do dhcpd serão mostrados

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

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. IMPORTANTE: Esta é uma máquina página traduzida que é fornecido "como está" sem garantia. Machine translation may be difficult to understand. A tradução automática pode ser difícil de entender. Please refer to Por favor referir-se original English article artigo original Inglês whenever possible. quando possível.

Share and contribute or get technical support and help at Compartilhe e contribuir ou obter assistência técnica e ajudar a My Digital Life Forums Minha vida digital Fóruns .



Leave a Reply Deixe uma Resposta

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> Você pode usar estas tags: <a href="" title="Avião"> <abbr title="Avião"> <acronym title="Avião"> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q Cite=""> <strike> <strong>

Subscribe without commenting Subscrever sem comentar


Custom Search

New Articles Novos artigos

Incoming Search Terms for the Article Incoming Pesquisa Termos para o artigo

dhcp freebsd dhcp FreeBSD - -- dhcpd freebsd dhcpd FreeBSD - -- freebsd dhcpd FreeBSD dhcpd - -- DHCP server FreeBSD Servidor DHCP FreeBSD - -- freebsd dhcp server FreeBSD servidor dhcp - -- dhcp on freebsd dhcp no FreeBSD - -- dhcp server mysql dhcp server mysql - -- freebsd dhcp FreeBSD dhcp - -- freebsd restart dhcpd FreeBSD reiniciar dhcpd - -- configuring DHCP on FreeBSD configurar o DHCP no FreeBSD - -- install dhcp server freebsd instalar o servidor DHCP FreeBSD - -- install DHCP freebsd instalar o DHCP FreeBSD - -- dhcp mysql dhcp mysql - -- freebsd dhcp release FreeBSD dhcp release - -- freebsd install dhcpd FreeBSD instalar dhcpd - -- dhcpd vista dhcpd vista - -- vmware freebsd dhcp VMware FreeBSD dhcp - -- isc dhcpd option 66 ISC dhcpd opção 66 - -- dhcpd signal dhcpd sinal - -- isc dhcp vista ISC dhcp vista - -- dhcp+freebsd acupuntura + FreeBSD - -- freebsd reload dhcpd FreeBSD recarregar dhcpd - -- servidor dhcp no freebsd nenhum servidor dhcp FreeBSD - -- ISC dhcp option 66 ISC dhcp opção 66 - -- restart dhcp freebsd reiniciar o dhcp FreeBSD - -- dhcp no freebsd dhcp não FreeBSD - -- restart dhcpd freebsd reiniciar dhcpd FreeBSD - -- vista dhcpd Vista dhcpd - -- freebsd dhcpcd FreeBSD dhcpcd - -- installing and configuring dhcp instalar e configurar o dhcp - -- dhcpd option 249 dhcpd opção 249 - -- vista dhcp server Vista dhcp server - -- dhcpd mysql dhcpd mysql - -- freebsd dhcpd.conf FreeBSD dhcpd.conf - -- freebsd change dhcp FreeBSD mudança dhcp - -- 192.168.4.254 192.168.4.254 - -- dhcpd list connected ip dhcpd lista ligada ip - -- dhcpd default search domain dhcpd pesquisa padrão domínio - -- dhcpd assign hostname by mac dhcpd atribuir hostname pelo mac - -- dhcpd 9 dhcp 8 client dhcpd 9 dhcp cliente 8 - -- dhcpd freebsd restart FreeBSD reiniciar dhcpd - -- freebsd dhcp and dns server FreeBSD dhcp e servidor DNS - -- freebsd dhcpd ports dhcpd FreeBSD portos - -- freebsd dhcpd manage FreeBSD dhcpd gerir - -- freebsd dhcp server FreeBSD servidor dhcp - -- freebsd install dhcpcd FreeBSD instalar dhcpcd - -- how to kill the server in dhcpd como matar o servidor em dhcpd - -- windows vista dhcp isc dhcp O Windows Vista dhcp ISC dhcp - -- +dhcpd +mysql + + mysql dhcpd - -- bsd dhcpd restart bsd reiniciar dhcpd - --