Eu instalei o servidor dhcp3 no servidor Ubuntu 11.04
apt-get install dhcp3-server
No entanto, uma mensagem de erro durante a instalação:
Traitement des actions différées (« triggers ») pour « man-db »...
Traitement des actions différées (« triggers ») pour « ureadahead »...
Paramétrage de isc-dhcp-server (4.1.1-P1-15ubuntu9.1) ...
Generating /etc/default/isc-dhcp-server...
* Starting ISC DHCP server dhcpd
* check syslog for diagnostics [fail]
invoke-rc.d: initscript isc-dhcp-server, action "start" failed.
Paramétrage de dhcp3-server (4.1.1-P1-15ubuntu9.1) ...
tail -f /var/log/syslog
diz:
Sep 2 03:29:20 srv dhcpd: Internet Systems Consortium DHCP Server 4.1.1-P1
Sep 2 03:29:20 srv dhcpd: Copyright 2004-2010 Internet Systems Consortium.
Sep 2 03:29:20 srv dhcpd: All rights reserved.
Sep 2 03:29:20 srv dhcpd: For info, please visit https://www.isc.org/software/dhcp/
Sep 2 03:29:20 srv dhcpd: Internet Systems Consortium DHCP Server 4.1.1-P1
Sep 2 03:29:20 srv dhcpd: Copyright 2004-2010 Internet Systems Consortium.
Sep 2 03:29:20 srv dhcpd: All rights reserved.
Sep 2 03:29:20 srv dhcpd: For info, please visit https://www.isc.org/software/dhcp/
Sep 2 03:29:20 srv dhcpd: Wrote 0 leases to leases file.
Sep 2 03:29:20 srv dhcpd:
Sep 2 03:29:20 srv dhcpd: No subnet declaration for eth0 (192.168.1.1).
Sep 2 03:29:20 srv dhcpd: ** Ignoring requests on eth0. If this is not what
Sep 2 03:29:20 srv dhcpd: you want, please write a subnet declaration
Sep 2 03:29:20 srv dhcpd: in your dhcpd.conf file for the network segment
Sep 2 03:29:20 srv dhcpd: to which interface eth0 is attached. **
Sep 2 03:29:20 srv dhcpd:
Sep 2 03:29:20 srv dhcpd:
Sep 2 03:29:20 srv dhcpd: Not configured to listen on any interfaces!
Sep 2 03:29:23 srv kernel: [ 1625.286737] type=1400 audit(1314930563.298:18) apparmor="STATUS" operation="profile_replace" name="/usr/sbin/dhcpd" pid=2045 comm="apparmor_parser"
quando quero acessar o arquivo /etc/dhcp3/dhcpd.conf
não consigo encontrá-lo mas o pacote dhcp-server
está instalado.
root@srv:/etc/dhcp3#ls -l total 4 drwxr-xr-x 2 root root 4096 2011-09-01 06:42 dhclient-enter-hooks.d
Responder1
Tente editar /etc/dhcp/dhcpd.conf
. Ele deve ser instalado junto com o pacote isc-dhcp-server e o pacote dhcp3-server que depende dele.
$ dpkg -S dhcpd.conf
isc-dhcp-server: /usr/share/doc/isc-dhcp-server/examples/dhcpd.conf
isc-dhcp-server: /etc/dhcp/dhcpd.conf
isc-dhcp-server: /usr/share/man/man5/dhcpd.conf.5.gz
Responder2
Para executar um servidor DHCP, você precisa /etc/default/dhcp
primeiro editar o arquivo e definir a lista de interfaces de rede ativas. Nessas interfaces, o DHCP atenderá às solicitações. Então você deve configurar o servidor editando /etc/dhcp/dhcpd.conf
e adicionando a entrada de "sub-rede" apropriada.
Responder3
Eu te sugirosiga este guia do Ubuntu Wiki.