tftpboot 관련 질문입니다. 고수님들 도와주세요...

msthing의 이미지

저번에 글을 올렸는데 답이 없어 다시 올립니다. 증상을 더 자세히 적습니다....ㅜㅜ
안녕하십니까? 저는 이번에 dhcp서버를 이용해서 연결된 단말들을 tftpboot으로 부팅을 시도하고 있는데요...

dhcp서버는 이상하게도 config파일을 여러 군데에서 참고 하여 만들었는데 제대로 작동을 하지 않더라고요.

그러다 혹시나 싶어서 client의 MAC Address를 넣었더니 dhcp 할당은 잘 이루어지는거 같은데

tftpboot 에서 실패를 하더라구요....localhost로 tftp접속해서 파일가져오는거는 잘됩니다.ㅠㅠ

증세는 dhcp 할당을 마친후 tptp를 연결하는 부분에서 timeout이 걸려버립니다.

이유는 잘 모르겠어요...시키는 대로 잘 따라했는데...

혹시 이유를 아시는 분 있으시면 도움좀 받고 싶어서 이렇게 글을 올립니다.

또 MAC Address 넣지 않고 dhcp ip할당이 이루어 지는 것을 알고 싶은데 고수님들 도움좀 주십시오...

MAC Address 부분만 주석 처리 하면 안되고 추가만 하면 할당이 됩니다...

기본으로 하고 해도 안되네여...

tftpboot/ 디렉토리는 물론 커널들은 권한을 다준 상태고

사용자 권한도 nobody로 주고 테스트 하였습니다.

nmap과 syslog를 보면 아래와 같습니다.

******************************************************************************************
Starting Nmap 4.62 ( http://nmap.org ) at 2008-05-28 18:42 KST
Interesting ports on faoserver (10.10.10.1):
Not shown: 1477 closed ports
PORT STATE SERVICE
67/udp open|filtered dhcps
68/udp open|filtered dhcpc
69/udp open|filtered tftp
111/udp open|filtered rpcbind
631/udp open|filtered unknown
679/udp open|filtered unknown
707/udp open|filtered unknown
835/udp open|filtered unknown
838/udp open|filtered unknown
2049/udp open|filtered nfs
32768/udp open|filtered omad*********************nmap으로 알아본 포트 정보

May 28 18:40:08 faoserver xinetd[2885]: START: tftp pid=2893 from=10.10.10.1
May 28 18:40:08 faoserver in.tftpd[2893]: cannot bind to local socket: Permission denied
May 28 18:40:08 faoserver xinetd[2885]: EXIT: tftp status=71 pid=2893 duration=0(sec)
May 28 18:40:08 faoserver rpc.statd[1931]: recv_rply: can't decode RPC message!
May 28 18:40:09 faoserver rpc.statd[1931]: recv_rply: can't decode RPC message!
May 28 18:40:10 faoserver xinetd[2885]: START: tftp pid=2894 from=10.10.10.1
May 28 18:40:10 faoserver in.tftpd[2894]: cannot bind to local socket: Permission denied
May 28 18:40:10 faoserver xinetd[2885]: EXIT: tftp status=71 pid=2894 duration=0(sec)
May 28 18:40:10 faoserver xinetd[2885]: START: tftp pid=2895 from=10.10.10.1
May 28 18:40:10 faoserver in.tftpd[2895]: cannot bind to local socket: Permission denied
May 28 18:40:10 faoserver xinetd[2885]: EXIT: tftp status=71 pid=2895 duration=0(sec)
May 28 18:40:11 faoserver in.tftpd[2896]: cannot bind to local socket: Permission denied
May 28 18:40:11 faoserver xinetd[2885]: START: tftp pid=2896 from=10.10.10.1
May 28 18:40:11 faoserver xinetd[2885]: EXIT: tftp status=71 pid=2896 duration=0(sec)
May 28 18:40:13 faoserver rpc.statd[1931]: recv_rply: can't decode RPC message!
May 28 18:40:59 faoserver vsftpd[2901]: warning: can't get client address: Connection reset by peer
May 28 18:41:44 faoserver in.tftpd[2904]: cannot bind to local socket: Permission denied
May 28 18:41:44 faoserver xinetd[2885]: START: tftp pid=2904 from=10.10.10.1
May 28 18:41:44 faoserver xinetd[2885]: EXIT: tftp status=71 pid=2904 duration=0(sec)

****************systemlog를 보니 저런 에러 문구가 나와 구글에서 검색해 봐도 딱히 자료가 없어 이렇게 올리게 되었습니다.

그럼 언제나 건강하길 바라며, 세부사항을 적어 보겠습니다.

컨피그 파일은 다음과 같이 설정하였습니다.

*******************************/etc/dhcpd.conf*******************************

ddns-update-style interim;
#ignore client-updates;

option domain-name "localhost";
option domain-name-servers 10.10.10.1;
option routers 10.10.10.1;

default-lease-time 600;
max-lease-time 7200;

allow booting;
allow bootp;

subnet 10.10.10.0 netmask 255.255.255.0 {
range 10.10.10.0 10.10.10.20;
option broadcast-address 10.10.10.255;
option subnet-mask 255.255.255.0;
}

group{
next-server 10.10.10.1;
host tftpclient {
hardware ethernet 00:04:75:C1:88:5F;
filename "pxelinux.0";
}
}

*******************************/etc/sysconfig/dhcpd*******************************
# Command line options here
DHCPDARGS=eth1

*******************************/etc/sysconfig/network-scripts/ifcfg-eth1*******************************
# Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+
DEVICE=eth1
BOOTPROTO=static
HWADDR=00:04:CA:10:38:51
IPADDR=10.10.10.1
NETWORK=10.10.10.0
NETMASK=255.255.255.0
ONBOOT=yes

*******************************/etc/xinetd.d/tftp*******************************
# default: off
# description: The tftp server serves files using the trivial file transfer # protocol. The tftp protocol is often used to boot diskless # workstations, download configuration files to network-aware printers, # and to start the installation process for some operating systems.
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -l -s /tftpboot
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}

이렇게 설정하였습니다. tftboot에는 pxelinux.cfg/default 도 맞게 설정해 줬구...
usr/lib/syslinux/pxelinux.0 도 카피해 두었습니다.

버전은 Red Hat Enterprise Linux Server release 5.1 Beta(Tikanga)
커널은 Linux 2.6.18-36.el5 입니다.

rpm의 버전은 dhcp-3.0.5-7.el5
dhcp-devel-3.0.5-7.el5
tftp-server-0.34-0.2.el5.rf
tftp-0.34-0.2.el5.rf
nfs-utils-1.0.9-23.el5
nfs-utils-lib-1.0.8-7.2
xinetd-2.3.14-11.i386
이렇게 설치하였습니다.

댓글 달기

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
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.