Linuxdoc Sgml/DHC Pd
<!doctype linuxdoc system>
<article>
<title>
DHCPd mini HOWTO
<author>ÀúÀÚ : Paul Makeev <<url url="mailto: mac@RoSprint.net" name="mac@RoSprint.net" >>
<date> v1.2, 1997.6.24
<trans> ¿ªÀÚ : ½É»óÇö <<url url="mailto: artsilly@ee.korea.ac.kr" name="artsilly@ee.korea.ac.kr" >>
<tdate> v1.2-0.9, 1998.3.25
<abstract>
À̹®¼´Â DHCPd¸¦ »ç¿ëÇϱâ À§ÇÑ °£·«ÇÑ Á¤º¸¿Í ³»¿ëÀ» ´ã°íÀÖ´Â mini HOWTO ÀÌ´Ù.
</abstract>
<toc>
<sect> ¼Ò°³
<p>DHCP(Dynamic Host Configuration Protocol)´Â °¢°¢ÀÇ È£½ºÆ®ÀÇ ³×Æ®¿öÅ© ÆÄ¶ó¹ÌÅÍ
¹× ¼³Á¤ »çÇ×µéÀ» ¼¹öÀÇ ¼¼ÆÃÀ» »ç¿ëÇÏ¿© ¿ø°ÝÀ¸·Î ¼³Á¤ÇØÁÖ´Â ÇÁ·ÎÅäÄÝÀÌ´Ù. DHCP
´Â BOOTP¿Í ȣȯÀ» À¯ÁöÇÑ´Ù. ÀÌÁ¡¿¡ ´ëÇØ¼´Â RFC 2131(ÀçºÐ·ù ÀÌÀüÀÇ RFC 1531)
¸¦ Âü°íÇϱ⠹ٶõ´Ù. ±×¹ÛÀÇ ¹®°Çµé¿¡ ´ëÇØ¼´Â À̹®¼ ¸»¹ÌÀÇ URLµéÀ» ÀÌ¿ëÇÏ¿© ã
¾Æº¼ ¼ö ÀÖ´Ù.
ÀÌ ¹Ì´Ï-ÇÏ¿ìÅõ ¹®¼´Â DHCP ¼¹ö µ¥¸ó¿¡ ´ëÇÑ ³»¿ëÀÌ´Ù. DHCP Ŭ¶óÀÌ¾ðÆ® µ¥¸ó¿¡
´ëÇØ¼´Â DHCPcd-mini-HOWTO¸¦ Âü°íÇϱ⠹ٶõ´Ù. DHCPcd ÆÐŰÁö´Â ´ÙÀ½ »çÀÌÆ®¿¡¼
½±°Ô ±¸ÇÒ ¼ö ÀÖ´Ù.
¹èÆ÷ »çÀÌÆ®: <url url="ftp:// ftp.kobe-u.ac.jp /pub/PC-UNIX/Linux/network/dhcp
32kB dhcpcd-0.65.tar.gz" name="ftp.kobe-u.ac.jp /pub/PC-UNIX/Linux/network/dhcp
32kB dhcpcd-0.65.tar.gz" >
º¸Á¶ »çÀÌÆ®: <url url="http://sunsite.unc.edu /pub/Linux/system/network/daemons
32kB dhcpcd-0.65.tar.gz" name="sunsite.unc.edu /pub/Linux/system/network/daemons
32kB dhcpcd-0.65.tar.gz" >
</p>
<sect> ¸®´ª½º¿¡¼ÀÇ DHCP ¼¹ö
<p>ÈçÈ÷ ¸»ÇÏ´Â Unix½ºÅ¸ÀÏÀÇ OS¿¡¼ »ç¿ëÇÒ ¼ö ÀÖ´Â DHCP ¼¹öÀÇ Á¾·ù´Â ´Ù¾çÇÏ´Ù.
À̰͵éÀº »ó¿ë ¶Ç´Â ¹«·á¼ÒÇÁÆ®¿þ¾îÀÇ ÇüÅ·Π¹èÆ÷µÈ´Ù. ÀÌ ÇÏ¿ìÅõ ¹®¼¸¦ ÀÛ¼ºÇϸç
Paul Vixie/ISC DHCPD ¼¹ö µ¥¸óÀ» ÀÌ¿ëÇÏ¿© Å×½ºÆ® ÇÏ¿´´Ù. ÀÌ ÆÐŰÁö´Â ¸®´ª½º¿¡
¼¸¸ ¾µ ¼ö ÀÖµµ·Ï Á¦ÀÛµÈ °ÍÀº ¾Æ´ÏÁö¸¸ º° °í»ý¾øÀÌ ÄÄÆÄÀÏÇϰí ÀνºÅç ÇÒ ¼ö ÀÖ
´Ù.
´ÙÀ½ »çÀÌÆ®¿¡¼ Á¦°øµÇ´Â ÃֽŹöÀüÀ» ÀÌ¿ëÇϰųª ÀÌ ¹®¼¸¦ ÀÛ¼ºÇϸç È®ÀεÈ
5.0.9-º£Å¸¹öÀüÀ» ±¸Çؼ »ç¿ëÇÏ¸é µÈ´Ù.
¹èÆ÷ »çÀÌÆ® :<url url=" ftp://ftp.isc.org/isc/dhcp/DHCPD-BETA-5.16.tar.gz" name="ftp.isc.org/isc/dhcp/DHCPD-BETA-5.16.tar.gz" >
5.0.9-º£Å¸¸¦ ±¸ÇÒ ¼ö Àִ°÷ : <url url="http://www.isc.org/dhcp/dhcp-beta.html" name="www.isc.org/dhcp/dhcp-beta.html" >
<url url="ftp://ftp.vix.com" name="ftp.vix.com" >¿¡¼´Â ´õÀÌ»ó DHCPD ÆÐŰÁö¸¦ ±¸ÇÒ ¼ö ¾øÀ» °ÍÀÌ´Ù.(¿À·¡µÈ ÇÏ¿ìÅõ ¹®
¼¸¦ º¸°í ¾ÆÁ÷µµ ÀÌ »çÀÌÆ®¸¦ ã¾Æ¿À´Â »ç¶÷ÀÌ ÀÖ´ÂÁöµµ ¸ð¸£°Ú´Ù. :-)
ftp.isc.org¿¡¼ ÆÐŰÁö¸¦ ã¾Æ »ç¿ëÇϱ⠹ٶõ´Ù.
* ÄÄÆÄÀÏ ÇÏ°í »ç¿ëÇϱâÀü¿¡ ¹Ýµå½Ã README ÈÀÏÀ» ¼÷ÁöÇϱ⠹ٶõ´Ù. ¸®´ª½ºÀÇ °æ
¿ì¿¡ ÄÄÆÄÀÏÇÏ´Â ¹æ¹ý¿¡ ´ëÇØ ³ª¿ÍÀÖÀ» °ÍÀÌ´Ù.
</p>
<sect> Ä¿³Î ¼³Á¤Çϱâ
<p>Ä¿³Î¿¡¼ÀÇ MULTICAST, Socket Filtering ¿É¼ÇÀ» Ȱ¼ºÈ ½ÃÄÑÁÖ¾î¾ß ÇÑ´Ù. ¹°·Ð TCP/IP ³×Æ®¿öÅ© ¼³Á¤
À» ÇØÁÖ¾î¾ß ÇÏ´Â °ÍÀº ´ç¿¬ÇÑ ÀÏÀÌ´Ù. ^.^
</p>
<sect>¼³Á¤Çϱâ
<p>[<url url="mailto: artsilly@ee artsilly" name="artsilly@ee artsilly" >]# ifconfig -a
À§ ¸í·ÉÇàÀ» ÅëÇØ¼ ´ÙÀ½°ú ºñ½ÁÇÑ ³»¿ëÀ» º¼ ¼ö ÀÖÀ» °ÍÀÌ´Ù.
<verb>
eth0 Link encap:10Mbps Ethernet HWaddr 00:C0:4F:D3:C4:62
inet addr:183.217.19.43 Bcast:183.217.19.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2875542 errors:0 dropped:0 overruns:0
TX packets:218647 errors:0 dropped:0 overruns:0
Interrupt:11 Base address:0x210
</verb>
¸¸ÀÏ 3¹øÂ° ¶óÀο¡ ÀÖ´Â MULTICAST¶ó´Â ´Ü¾î°¡ º¸ÀÌÁö ¾Ê´Â´Ù¸é 3Àý¿¡¼ ¾ð±ÞÇÑ Ä¿
³Î ¼³Á¤À» ÇØÁÖ¾î¾ß ÇÑ´Ù. MULTICAST°¡ µÇ°í ÀÖ´Â Ä¿³ÎÀ̶ó¸é ´ÙÀ½ÀÇ ¸í·ÉÀ» ÅëÇØ
¾Æ·¡¿Í ºñ½ÁÇÑ ³»¿ëÀÌ ³ª¿Í¾ß ÇÑ´Ù.
[<url url="mailto: artsilly@ee artsilly" name="artsilly@ee artsilly" >]# netstat -rn
<verb>
Kernel routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
255.255.255.255 0.0.0.0 255.255.255.255 UH 0 0 101 eth0
</verb>
ÀÌ ³»¿ëÀº ¸ÖƼij½ºÆ® ¶ó¿ìÆÃÀ» ¼³Á¤ÇØ ³õ¾Æ¾ßÇÑ´Ù.
</p>
<sect>¸ÖƼij½ºÆ®ÀÇ ¼³Á¤ ¹× ±× ¹®Á¦Á¡
<p>
´ÙÀ½ÀÇ ¸í·ÉÇà
[<url url="mailto: artsilly@ee artsilly"name="artsilly@ee artsilly">]# route add -host 255.255.255.255
À¸·Î 4Àý¿¡¼ ¸»ÇÑ ¸ÖƼij½ºÆ®À» ¼¼ÆÃÇÒ ¼ö ÀÖ´Ù. ¸¸¾à À̰æ¿ì "Unknown host"¶ó´Â
¿¡·¯°¡ ³ª¿Â´Ù¸é "route add -host hostname eth0" °°Àº ¸í·Éº¸´Ü ÀÌ ÁÖ¼Ò¸¦
/etc/hosts ÈÀÏ¿¡ ÷°¡Çϱ⸦ ¹Ù¶õ´Ù. Á¤»óÀûÀ¸·Î µ¿ÀÛÇÏÁö ¾Ê´Â´Ù¸é Ä¿³ÎÀ» ÃÖ½Å
¹öÀüÀ¸·Î ±³Ã¼ÇÏ´ø°¡ »õ·Î¿î ³×Æ®¿öÅ© À¯Æ¿¸®Æ¼¸¦ ±¸ÇÏ¿©¾ß ÇÒ °ÍÀÌ´Ù.
</p>
<sect> DHCPD ¼³Á¤
<p>
¹èÆ÷µÇ´Â ÆÐŰÁö¿¡ Æ÷ÇÔµÈ ¹®¼¸¦ ²Ä²ÄÈ÷ Àб⠹ٶõ´Ù. ¼³Á¤¿¡ ´ëÇÑ ³»¿ëÀº Áö±Ý
´Ù·ç±â¿¡´Â ³Ê¹« º¹ÀâÇÏ´Ù.
</p>
<sect> µÎ°³ÀÌ»óÀÇ ÀÌ´õ³Ý Ä«µå¿¡¼ DHCPD¸¦ »ç¿ëÇϱâ
<p>
DHCPD ¸ÞÀϸµ ¸®½ºÆ®¿¡ ÀÇÇϸé ÃֽоÈÁ¤ Ä¿³ÎÀÎ 2.0.31°ú DHCPDÀÇ ÃֽŹöÀüÀÎ
5.0.15¸¦ ÀÌ¿ëÇÏ¿© 2°³ÀÌ»óÀÇ ¹°¸®Àû ÀÎÅÍÆäÀ̽º¸¦ »ç¿ëÇÒ ¼ö ÀÖ´Ù°í ÇÑ´Ù. 2.0.31
ÀÇ Ä¿³Î¿¡¼ ¾²´Â SO_BINDTODEVICE Äڵ带 ÀÌ¿ëÇÏ¿© ÇÏÀ§·¹º§ÀÇ ¹°¸®ÀûÀÎ ÀÎÅÍÆäÀÌ
½º¸¦ ±¸ºÐÇÏ¿© »ç¿ëÇÒ ¼ö ÀÖ´ÙÇÑ´Ù. °á±¹ ÃֽŹöÀüÀÇ DHCPD¿¡¼´Â À̰ÍÀ» ÀÌ¿ëÇÏ¿©
µÎ°³ÀÇ ÀÎÅÍÆäÀ̽º¸¦ »ç¿ëÇÒ ¼ö ÀÖ´Â °ÍÀÌ´Ù. ±×·¯³ª ÀÌ ¹æ¹ýÀº ¾ÆÁ÷µµ º£Å¸¹öÀüÀÓ
À» ±â¾ïÇØ¾ß ÇÑ´Ù. ³ª¿ª½Ãµµ È®ÀÎÇØ º¸Áö ¸øÇßÁö¸¸ ´ÙÀ½¹öÀüÀÇ HOWTO ¹®¼¿£ Á»´õ
Á¤¸®µÈ Á¤º¸¸¦ ÁÙ ¼ö ÀÖÀ» °ÍÀÌ´Ù.
</p>
<sect> µ¿Àû µµ¸ÞÀÎ ³×ÀÓ ¼ºñ½º(Dynamic DNS)
<p>
DNS¿Í DHCP ¼¹ö¸¦ ÇÔ²² »ç¿ëÇÔÀ¸·Î¼ µµ¸ÞÀÎ ³×ÀÓÀ» µ¿ÀûÀ¸·Î ÇÒ´çÇÏ´Â °ÍÀº ¸Å¿ì
°í¹«ÀûÀÌ¸ç ±ÇÀåÇÒ ¸¸ÇÑ ¹æ¹ýÀÌ´Ù. RFC 2136À̳ª 2137À» Âü°íÇϵµ·Ï ÇÑ´Ù. ¸î¸î
DHCP¼¹ö¿Í DNS ¼¹ö´Â DNS Á¤º¸¸¦ È¿°úÀûÀ¸·Î °»½ÅÇÒ ¼ö ÀÖ´Â È¿À²ÀûÀÎ ¸ÞÄ«´ÏÁòÀ»
Á¦°øÇÑ´Ù.
ISC¿¡¼ °³¹ßµÇ°í ÀÖ´Â BIND v.8¿¡¼´Â BIND³»ºÎ¿¡¼ µ¿Àû °»½Å(Dynamic Update)¸¦
ÇÒ ¼ö ÀÖ´Â ¹æ¹ýÀ» Á¦°øÇϰí ÀÖ´Ù. Á¶¸¸°£ DHCPD ¿Í BIND°¡ È¿°úÀûÀ¸·Î °áÇյDZ⸦
±â´ëÇÑ´Ù. BIND´Â ´ÙÀ½ÀÇ ÁÖ¼Ò¿¡¼ ±¸ÇÒ ¼ö ÀÖ´Ù.
BIND v.8 URL: <url url="http://www.isc.org/bind.html" name="www.isc.org/bind.html">
¾à°£ °³ÀÎÀûÀÎ À̾߱⸦ ÇÏÀÚ¸é ÇöÀç DHCP¿Í DNS Å×ÀÌºí¿¡ È£½ºÆ® ³×ÀÓÀ» ÀÚµ¿À¸·Î
Ãß°¡ÇÏ´Â Python ÇÁ·Î±×·¥À» ÀÛ¼ºÇϰí ÀÖ´Ù. RFC¿¡¼ ±ÇÀåÇÏ´Â »çÇ×Àº ¾Æ´ÏÁö¸¸ ¾Æ
ÁÖ ÁöÀúºÐÇÏ°í ±ÍÂúÀº ÀÏÀ» ÇØÁØ´Ù. Á¤º¸°¡ ÇÊ¿äÇÑ »ç¶÷Àº À§ÀÇ ÁÖ¼Ò·Î ¸ÞÀÏÀ» º¸³»
Áֱ⠹ٶõ´Ù.
</p>
<sect> ¿©·¯ ÇÁ·Î±×·¥À» ±¸ÇÒ ¼ö ÀÖ´Â °÷
<p> <url url=" http://www.isc.org/dhcp.html" name="www.isc.org/dhcp.html">
- ISC DHCP ȨÆäÀÌÁö. DHCPD¿¡ ´ëÇÑ ¸¹Àº °ÍÀ» ¾òÀ» ¼ö ÀÖ´Ù. °³ÀÎÀûÀ¸·Î ÁÁ¾ÆÇÏ´Â
»çÀÌÆ®ÀÌ´Ù.
<url url="http://www.isc.org/bind.html" name="www.isc.org/bind.html" >
- BIND v.8 ÀÇ Á¤º¸¸¦ ¾òÀ» ¼ö ÀÖ´Ù.
<url url="http://www-leland.stanford.edu/%7Ellurch/win95netbugs/faq-c.html" name="www-leland.stanford.edu/%7Ellurch/win95netbugs/faq-c.html" >
- À©µµ¿ìÁî 95 ½Ã½ºÅÛÀÇ ³×Æ®¿öÅ© ¼¼ÆÃ¿¡ ´ëÇÑ Á¤º¸µé
<url url="http://www.bucknell.edu/~droms/dhcp/index.html" name="www.bucknell.edu/~droms/dhcp/index.html" >
- Ralph Droms°¡ Á¦°øÇÏ´Â ÈǸ¢ÇÑ DHCP¿¡ ´ëÇÑ FAQ¿Í ¸µÅ©µé
<url url="http://web.syr.edu/~jmwobus/comfaqs/dhcp.faq.html" name="web.syr.edu/~jmwobus/comfaqs/dhcp.faq.html">
- John Wobus°¡ Á¦°øÇÏ´Â DHCP ÀϹÝÀûÀÎ FAQ¿Í Á¤º¸µé
¸ÞÀϸµ ¸®½ºÆ®
<url url="mailto: dhcp-server@fugue.com" name="dhcp-server@fugue.com" > - ISC/Vixie DHCPD ¿¡ ´ëÇÑ ¸ÞÀϸµ ¸®½ºÆ®
<url url="mailto: dhcp-v4@bucknell.edu" name="dhcp-v4@bucknell.edu">- bucknell DHCPD ¿¡ ´ëÇÑ ¸ÞÀϸµ ¸®½ºÆ®
</p>
</article>
|
It is a poor judge who cannot award a prize. |











