DHCP 서버 설정도와주세요..
dhcpd 실행하면 아래와같은 메시지가 나옵니다.
고수님 제발도와주세요.
[root@localhost init.d]# dhcpd restart Internet Software Consortium DHCP Server V3.0pl2 Copyright 1995-2003 Internet Software Consortium. All rights reserved. For info, please visit http://www.isc.org/products/DHCP Wrote 1 leases to leases file. No subnet declaration for restart (0.0.0.0). ** Ignoring requests on restart. If this is not what you want, please write a subnet declaration in your dhcpd.conf file for the network segment to which interface restart is attached. ** Not configured to listen on any interfaces! If you did not get this software from ftp.isc.org, please get the latest from ftp.isc.org and install that before requesting help. If you did get this software from ftp.isc.org and have not yet read the README, please read it before requesting help. If you intend to request help from the dhcp-server@isc.org mailing list, please read the section on the README about submitting bug reports and requests for help. Please do not under any circumstances send requests for help directly to the authors of this software - please send them to the appropriate mailing list as described in the README file. exiting.
=========
설정들은..
[root@localhost etc]# vi dhcpd.conf
ddns-update-style interim;
subnet 192.168.1.0 netmask 255.255.255.0
{
range 192.168.1.2 192.168.1.60;
default-lease-time 86400;
max-lease-time 86400;
option routers 192.168.1.1;
option broadcast-address 192.168.1.255;
option subnet-mask 255.255.255.0;
option domain-name-servers 192.168.1.1;
}
~
[root@localhost etc]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
255.255.255.255 * 255.255.255.255 UH 0 0 0 eth1
localhost.local * 255.255.255.255 UH 0 0 0 lo
220.88.46.128 * 255.255.255.128 U 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
127.0.0.0 - 255.0.0.0 ! 0 - 0 -
default 220.88.46.254 0.0.0.0 UG 0 0 0 eth0
[root@localhost etc]#
============================
도대체 뭐가 문제죠???
isc-dhcpd를 사용하고 계시는군요..저도 잠깐 본적이 있어 올립
isc-dhcpd를 사용하고 계시는군요..
저도 잠깐 본적이 있어 올립니다.
현재 eth1이 내부(dhcpd를 구동하려는)인터페이스이고 eth0은 외부인
것으로 사료되옵니다만..
dhcpd restart를 하더라도 eth0와 eth1 양쪽모두 dhcpd관할하에
IP를 할당해 주게 됩니다.
만약 eth1에 서브넷을 구성하려 한다면
sh> dhcpd eth1으로 구동해주세요
메세지의 내용은 interface를 찾지 못해 생기는 문제인것 같습니다.
기본적으로 eth1에 미리 192.168.1.1이 셋팅되어 있어야합니다.
또한 rm -rf /var/state/dhcp/dhcpd.leases후
다시 touch /var/starte/dhcp/dhcpd.leases로 leases파일을 빈파일로
만들어준다음 dhcpd eth1해보세요..
------------------Signature
바늘속에서 사막찾기 0.o
저같은 경우는...
제 dhcpd.conf
별탈없이 잘 돕니다.
레댓 배포본 따라오는거 쓴다면 /etc/sysconfig/dhcpd 파일을 열어보면
DHCPDARGS=xxxx 줄이 보일겁니다.
여기다 설정하셔도 됩니다. eth1으로만 한다면 eth1 넣고....
직접 깔았거나 /etc/sysconfig/dhcpd가 없다면
윗님처럼 직접 실행시키는것이 좋고요.
(이때 부팅할때마다 실행하길 원한다면 /etc/rc.d/rc.local에 넣으세요)
Written By the Black Knight of Destruction
문제해결..
일단 답해주신님들 모두 감사요..
님들의 답변을 읽다보니.. 저의 착각을 알게 됬군요..
문제는바로
1. 맨첨에.. dhcpd.conf 의 내용을 실수로
빠트렸었고..(하도오래전에 하다보니.. 내용을적은줄로착각)
2. dhcpd.conf 작성후에는 ddns-update-style interim;
이옵션을 추가하라는 메시지를 1번문제와 같은내용으로 착각 ㅡ,.ㅡ;;
3. 2번옵션까지 넣고 실행하는데 dhcpd start 로 실행을하니..
interface 가 없다는 메지지가나와 헤멧던것입니다.
dhcpd start 로 하는것이 아니라. /etc/rc.d/init.d/ 에서 ./dhcpd start
로 해야해더군요..
dhcpd start 로 실행한것이 패스잡혀있는 바이너리실행파일을 직접
실행해버리니 당연 옵션이 틀렸던것이었던거시였습니다.ㅡ,.ㅡ
이글을 읽는 다른사람은 이런착각과 실수를 하지마세요..
----------------------------------------------------------------------------
댓글 달기