우분투 서버 11.04에 dhcp3-server를 설치했습니다.
apt-get install dhcp3-server
그러나 설치 중 오류 메시지가 나타납니다.
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
말한다:
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"
파일에 액세스하고 싶은데 /etc/dhcp3/dhcpd.conf
파일을 찾을 수 없지만 패키지 dhcp-server
는 설치되어 있습니다.
root@srv:/etc/dhcp3#ls -l total 4 drwxr-xr-x 2 root root 4096 2011-09-01 06:42 dhclient-enter-hooks.d
답변1
대신 편집해 보세요 /etc/dhcp/dhcpd.conf
. isc-dhcp-server 패키지 및 이에 종속된 dhcp3-server 패키지와 함께 설치되어야 합니다.
$ 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
답변2
DHCP 서버를 실행하려면 먼저 파일을 편집 /etc/default/dhcp
하고 활성 네트워크 인터페이스 목록을 설정해야 합니다. 해당 인터페이스에서 DHCP는 요청을 처리합니다. 그런 다음 /etc/dhcp/dhcpd.conf
적절한 "서브넷" 항목을 편집하고 추가하여 서버를 구성해야 합니다 .
답변3
나는 너에게 제안한다Ubuntu Wiki의 이 가이드를 따르세요.