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]#

============================
도대체 뭐가 문제죠???

syjeon의 이미지

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

Necromancer의 이미지

제 dhcpd.conf

option routers 172.16.0.1;
option domain-name-servers 168.126.63.1, 168.126.63.2;
option domain-name "robocop.pe.kr";
ddns-update-style ad-hoc;
max-lease-time 86400;
default-lease-time 43200;
subnet 172.16.0.0 netmask 255.255.0.0 {
        range 172.16.1.0 172.16.128.255;
}

별탈없이 잘 돕니다.

레댓 배포본 따라오는거 쓴다면 /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 로 실행한것이 패스잡혀있는 바이너리실행파일을 직접
실행해버리니 당연 옵션이 틀렸던것이었던거시였습니다.ㅡ,.ㅡ

이글을 읽는 다른사람은 이런착각과 실수를 하지마세요..


----------------------------------------------------------------------------

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.