2.0.x ´ëÀÇ Ä¿³Î
¾î¶² ¹èÆ÷º»À» ¾²´Â°¡¿¡ °ü°è¾øÀÌ ¸®´ª½º¿ë DHCP Ŭ¶óÀ̾ðÆ® µ¥¸óÀ» ´Ù¿î·Îµù ÇÒ ÇÊ¿ä°¡ ÀÖ´Ù. ´Ù¿î·ÎµùÇØ¾ß ÇÒ ÆÐÅ°Áö´Â ÈçÈ÷ dhcpcd ¶ó ºÎ¸£´Â °ÍÀÌ°í ÇöÀç ¹öÀüÀº 0.70 ÀÌ´Ù. ´ÙÀ½ »çÀÌÆ®¿¡¼ ÆÐÅ°Áö¸¦ ´Ù¿î ¹Þ°í, ÆÐÅ°Áö¿¡ ´ëÇÑ ¼³¸íÀ» ÀÐÀ» ¼ö ÀÖÀ» °ÍÀÌ´Ù.
ftp://sunsite.unc.edu/pub/Linux/system/network/daemons/dhcpcd-0.70.lsm
2.1.x ´ëÀÇ Ä¿³Î
2.1.x ´ëÀÇ Ä¿³Î¿¡¼´Â ipv4 ³×Æ®¿öÅ© ÆÐÅ°Áö°¡ º¯°æµÇ¾ú±â ¶§¹®¿¡ dhcpcd°¡ Á¤»óÀûÀ¸·Î µ¿ÀÛÇÏÁö ¾Ê´Â´Ù. ¹°·Ð ´ëºÎºÐÀÇ »ç¿ëÀÚµéÀº °³¹ß¹öÀüÀ» »ç¿ëÇÏÁö ¾Ê±â ¶§¹®¿¡ ±×¸® Å« ¹®Á¦°¡ ¾Æ´Ï¶ó°í º»´Ù. ÇÏÁö¸¸ °³¹ß¹öÀüÇÏ¿¡¼ dhcpcd¸¦ »ç¿ëÇÏ°í ½Í´Ù¸é ¼¼Áö ºñÁîÀ¯Å©(Sergi Viznyuk), sergei@phystech.com
°¡ Á¦ÀÛÇÏ°í °íÄ£ dhcpcd 1.3.3 À» »ç¿ëÇÒ ¼ö ÀÖ´Ù. ´ÙÀ½ »çÀÌÆ®¿¡¼ ¹ÞÀ» ¼ö ÀÖ´Ù.
¿ì¼±Àº DHCPcd ¸¦ ´Ù¿î·Îµå ¹Þ¾Æ¾ß ÇÑ´Ù. ´ÙÀ½ÀÇ ¼±»çÀÌÆ®¸¦ Âü°íÇ϶ó.
tar -zxvf dhcpcd-0.70.tar.gz
cd dhcpcd-0.70 make
make install
À§ÀÇ °úÁ¤À» ³¡³½´Ù¸é ¾Æ¸¶ /etc/dhcpc µð·ºÅ丮°¡ »ý±æ °ÍÀÌ´Ù. ÀÌ µð·ºÅ丮¿¡´Â DHCPÀÇ Á¤º¸ ¹× ¼³Á¤ÈÀÏÀÌ µé¾î°¡°í dhcpcd ½ÇÇàÈÀÏÀº /usr/sbin¹ØÀ¸·Î µé¾î°¥ °ÍÀÌ´Ù. ¸¸ÀÏ ½Ã½ºÅÛ ºÎÆÃÁß¿¡ DHCP¸¦ ½ÇÇàÇÏ°í ½Í´Ù¸é ´ÙÀ½°ú °°ÀÌ rc.d ¸¦ ¹Ù²Ù¾î ÁÖ¾î¾ß ÇÒ °ÍÀÌ´Ù.
cd /etc/rc.d mv rc.inet1 rc.inet1.OLD
ÀÌ °úÁ¤Àº º¸´Â ¹Ù¿Í °°ÀÌ ¿¹Àü ³×Æ®¿öÅ© ¼³Á¤ ½ºÅ©¸³Æ®¸¦ ´Ù¸¥ À̸§À¸·Î ¹Ù²Ù¾î º¸°üÇØ ³õ´Â °ÍÀÌ´Ù. DHCP¸¦ ¾²±â À§ÇØ »õ·Î¿î rc.inet1 ½ºÅ©¸³Æ®¸¦ ¸¸µé¾î¾ß ÇÒ °ÍÀÌ´Ù. ´ÙÀ½°ú °°Àº ³»¿ëÀ» ÇÊ¿ä·Î ÇÑ´Ù.
#!/bin/sh # # rc.inet1 This shell script boots up the base INET system. HOSTNAME=`cat /etc/HOSTNAME` #This is probably not necessary but I #will leave it in anyways # Attach the loopback device. /sbin/ifconfig lo 127.0.0.1 /sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo # IF YOU HAVE AN ETHERNET CONNECTION, use these lines below to configure the # eth0 interface. If you're only using loopback or SLIP, don't include the # rest of the lines in this file. /usr/sbin/dhcpcd
·¹µåÇÞ 5.0 ÀÌ»óÀÇ ¹èÆ÷º»¿¡¼´Â DHCPcd¸¦ ¼³Á¤ÇÏ´Â °ÍÀÌ Á¤¸»·Î ½±´Ù. ¿ÀÁ÷ ´ç½ÅÀÌ ÇØ¾ß ÇÒ ÀÏÀº ´ÙÀ½°ú °°ÀÌ Å¸ÀÌÇÎ ÇÔÀ¸·Î ÄÁÆ®·Ñ ÆгÎÀ» ¿©´Â °ÍÀÌ´Ù.
control-panel
ÀÌ ¹öÀüÀº ¹èÆ÷º»ÀÇ cdromÀ̳ª ftp¿¡¼ RPMÀ¸·Î ¹¿©Áø DHCPcd¸¦ ½±°Ô ãÀ» ¼ö ÀÖ´Ù. ´Ù¿î·Îµå °¡´ÉÇÑ ftp »çÀÌÆ®´Â ´ÙÀ½À» Âü°íÇ϶ó.
ftp://ftp.redhat.com/pub/redhat/redhat-4.2/i386/RedHat/RPMS/dhcpcd-0.6-2.i386.rpm
´Ù¿î ¹ÞÀº DHCPcd¸¦ ÀνºÅçÇÑ´Ù.
rpm -i dhcpcd-0.6-2.i386.rpm¹°·Ð ½½·º¿þ¾î¿¡¼ ÇÏ´Â °Íó·³ Á÷Á¢ ¼Ò½º¸¦ ¹Þ¾Æ´Ù°¡ ÄÄÆÄÀÏÇؼ ¾µ ¼öµµ ÀÖ´Ù. Áö±Ý ¼³¸íÇÏ°íÀÚ ÇÏ´Â ¹æ¹ýÀº ³´¾Å(nothing)
nothing@cc.gatech.edu
À¸·ÎºÎÅÍ ¹ÞÀº ³»¿ëÀÌ´Ù.
¿ì¼± /etc/resolv.conf¿¡ ³õ¿©ÀÖ´Â °íÁ¤ IP¸¦ Áö¿ö¾ß ÇϼÅ. ÇÏÁö¸¸ search¿Í nameserver°¡ ÀÖ´Â ¶óÀÎÀº ±×´ë·Î µÖ¾ßÇØ. ¿Ö³Ä¸é ¹«½¼ ÀÌÀ¯¿¡¼±Áö ¸ð¸£°ÚÁö¸¸ ³»°¡ ¾²´Â dhcpcd °¡ /etc/dhcpc/resolv.conf ÈÀÏÀ» ¾È¸¸µé´õ¶ó±¸. ±×·¡¼ ±×³É ÀÌ·±½ÄÀ¸·Î ¼³Á¤À» ÇØ ÁáÁö. ÇÏÁö¸¸ ´ÙÀ½°ú °°ÀÌ ÇÏ¸é µÉ²¨¼Å. ³ª¸ÓÁö ºÎºÐÀÌ ´ÙÀ̳ª¹Í ÇÏ°Ô ¼³Á¤µÉ ²¨¼Å. ¿ì¼± /etc/sysconfig/network ÈÀÏ¿¡¼ HOSTNAMEÇÏ°í GATEWAY¸¦ Áö¿üÁö ¹°·Ð ´Ù¸¥ ¿£Æ®¸®ÀÎ NETWORKING, DOMAINNAME, GATEWAYDEV°°Àº °ÍÀº ³²°ÜµÎ°í, ±×¸®°í /etc/sysconfig/network-scripts/ifcfg-eth0 ¿¡¼µµ IPADDR, NETMASK, NETWORK, ±×¸®°í BROADCASTµîÀ» Áö¿üÁö, DEVICE ¶û ONBOOT´Â Àý´ë ¼ÕÀ» ¾È´ë°í. ±×¸®°ï BOOTPROTO¿¡ Ç׸ñÀº BOOTPROTO=dhcp·Î ¹Ù²åÁö. ²À ÀúÀåÇϼÅ. ÀúÀå ¾ÈÇÏ°í ´ßÁúÇÏÁö ¸»°í. ±×¸®°í ºÎÆÃÇϼÅ. ±×·¯¸é DHCP°¡ µ¿ÀÛÇÒ ²¨¼Å(Àο빮À̱淡 Á¹¸³±âµµ ÇÏ°í Çؼ ÀúÆÈ°è ¸»Åõ·Î ¹ø¿ªÇØ ºÃ½À´Ï´Ù. ¹ÝÀÀÀÌ ¾ÈÁÁÀ¸¸é ´ãºÎÅÍ ÀÌ·± Áþ ¾ÈÇÏÁÒ. ¿ªÁÖ)
ÀÌÁ¨ 3.8Àý·Î °¡ÀÚ!
´ÙÀ½ »çÀÌÆ®¿¡¼ µ¥ºñ¾È ÆÐÅ°ÁöÀÇ DHCPcd¸¦ ãÀ» ¼ö ÀÖÀ» °ÍÀÌ´Ù.
ftp://ftp.debian.org/debian/dists/slink/main/binary-i386/net/dhcpcd_0.70-4.deb
ȤÀº 3.2Àý¿¡¼Ã³·³ ¼Ò½º Á÷Á¢¸¦ ÄÄÆÄÀÏÇصµ µÉ °ÍÀÌ´Ù. ÇÏ¿©°£ deb ÆÐÅ°Áö¸¦ Ç®°í ÀνºÅçÇϱâ À§Çؼ´Â
dpkg -i /where/ever/your/debian/packages/are/dhcpd*debÀÇ ¸í·ÉÀ» ¾´´Ù. ±×·±µ¥ ÀÌ °æ¿ì¿¡´Â ¾Æ¹«·± ¼³Á¤À» ÇØÁÙ ÇÊ¿ä°¡ ¾ø´Â °ÍÀ¸·Î º¸ÀδÙ. ÇÏÀÌÄÚ ½¯¸®Å͸¸(Heiko Shlittermann),
heiko@os.inf.tu-dresden.de
ÀÇ ÆíÁö¿¡ ÀÇÇϸé
dhcpcd ÆÐÅ°Áö¸¦ ¼³Ä¡ÇÏ¸é ±× ½ÃÀÛ ½ºÅ©¸³Æ®°¡ °°ÀÌ ¼³Ä¡µË´Ï´Ù. ´Ù¸¥ ½ÃÀÛ ½ºÅ©¸³Æ®°¡ ³õÀÌ´Â /etc/init.d/<ÆÐÅ°Áö À̸§>¿¡ ³õÀÌ°ÚÁÒ. ¿©±â¼´Â /etc/init.d/dhcpcd ÀÔ´Ï´Ù. ÀÌ ½ºÅ©¸³Æ®¸¦ ¿©·¯ºÐÀÌ ¾²´Â ·±·¹º§¿¡ ¸ÂÃß¾î /etc/rc?.d/ÀÇ µð·ºÅ丮·Î Ä«ÇÇ ÇØ Áְųª ¸µÅ©ÇØ ÁÖ½Ã¸é µË´Ï´Ù. º¸ÅëÀº 3¹øÀ̳ª 5¹øÀ» ¾²ÁÒ. (ÀÌ ³»¿ëÀÌ Àß ÀÌÇØ ¾È°¡½Ã¸é inittab¿¡ ´ëÇÑ ¸Å´º¾óÀ» º¸½Ã±â ¹Ù¶ø´Ï´Ù. ¿ªÁÖ) ±× ´ÙÀ½¿¡ ²À ºÎÆÃÇÒ ÇÊ¿ä´Â ¾ø½À´Ï´Ù. ´ÙÀ½¹ø¿¡ ºÎÆÃÇÏ¸é ´Ù½Ã ½ÃÀÛÇÏ°ÚÁö¸¸ Áö±ÝÀº dhcpcd ½ºÅ©¸³Æ®¸¦ ¼öµ¿À¸·Î ½ÇÇà ½ÃÅ°¸éµË´Ï´Ù. ´ÙÀ½Ã³·³ ÇÕ´Ï´Ù.ÀÌÁ¦ 3.8Àý·Î °Ç³Ê¶Ý´Ï´Ù./etc/init.d/dhcpcd start
´ÙÀ½ ³»¿ëÀº R. »þÇÇ·Î(R. Sharpiro)°¡ ¾´ ³»¿ëÀÌ´Ù. ¿äÀÌÄ¡ Çϸ®±¸Ä¡(Yoichi Hariguchi)°¡ ¾´ dhcpcd ÀÇ 0.65/0.70 ¹öÀü ¸ðµÎ ÆÄ¿öÇǾ¾ ¸®´ª½º¿Í Mklinux Ä¿³Î 2.1.24¿¡¼ ÈǸ¢ÇÏ°Ô µ¿ÀÛÇÏ¿´´Ù. ¹°·Ð µ¿ÀÛÀ» À§Çؼ´Â ÆÄ¿öÇǾ¾ ¸®´ª½º¿¡¼ Ç×»ó ÀÖ´Â ±×·± ¼¼ÆÃÀ» Àâ¾ÆÁÖ¾î¾ß ÇÑ´Ù.
2.1.24 ÀÌÈÄÀÇ ¹öÀü¿¡¼´Â ¾ÈŸ±õ°Ôµµ Çϸ®±¸Ä¡°¡ Á¦ÀÛÇÑ dhcpcd°¡ ÀÛµ¿ÇÏÁö ¾Ê´Â´Ù. ÀÌ °æ¿ì¿¡´Â ¹Ýµå½Ã ¼¼Áö ºñÁîÀ¯Å©(Sergi Viznyuk)°¡ ÀÛ¼ºÇÑ ÇÁ·Î±×·¥À» »ç¿ëÇÏ¿©¾ß ÇÑ´Ù.(ÃֽŠ¹öÀüÀº 1.3.9ÀÌ´Ù. À§¿¡ ¾ð±ÞÇÑ URLÀ» Âü°íÇ϶ó) ±×·±µ¥ ºñÁîÀ¯Å©ÀÇ dhcpcd´Â glibc 2¿¡¼ ÀÛ¼ºµÇ¾ú´Ù. ¾ÆÁ÷ ¸®´ª½º ÆÄ¿öÇǾ¾ 2.1.1xx´Â ¾ÆÁ÷ glibc 2¸¦ »ç¿ëÇÏÁö ¾Ê´Â´Ù. °á±¹ ¾à°£ÀÇ Æ®¸¯À» ÀÌ¿ëÇÏ¿© ÄÄÆÄÀÏÀ» ÇؾßÇÑ´Ù. ¹°·Ð ÄÄÆÄÀÏÀÌ µÇ±â¸¸ÇÏ¸é °¡Àå ÃÖ±ÙÀÇ Ä¿³Î¿¡¼ Àß ÀÛµ¿ÇÑ´Ù.(¹°·Ð MkLinux ÆÄ¿öÇǾ¾ ¸®´ª½º 2.1.24¿¡¼´Â ¾Æ´Ï´Ù.)
´ÙÀ½ÀÇ Ä¿³Î¿¡¼ ºñÁîÀ¯Å©ÀÇ dhcpcd(v1.3.7)À» Å×½ºÆ® ÇغôÙ. 2.1.102, 103, 115, 119ÀÇ ¹öÀüÀÇ ÆÄ¿öÇǾ¾ ¸®´ª½º¿¡¼ Àß ÀÛµ¿ÇÏ¿´´Ù. ¿©±â¼ ºñÁîÀ¯Å©ÀÇ dhcpcd¸¦ ¼³Ä¡ÇÏ°í ¼³Á¤ÇÏ´Â °Í¿¡ ´ëÇؼ´Â ´õÀÌ»ó ¾ð±ÞÇÏÁö ¾Ê°Ú´Ù. ºñÁîÀ¯Å©ÀÇ dhcpcd´Â 2.1.24¹öÀü¿¡¼ µ¿ÀÛÇÏÁö ¾Ê´Â´Ù. ÇÏÁö¸¸ ÀÌ ¹öÀü¿¡¼´Â ÆÐÄ¡ÇÑ Çϸ®±¸Ä¡ÀÇ dhcpcd¸¦ ¾µ ¼öÀÖ´Ù.
Á¤¸®ÇØ º¸¸é
MkLinux¿¡¼´Â Çϸ®±¸Ä¡ÀÇ ÇÁ·Î±×·¥¸¸ »ç¿ë°¡´ÉÇÏ´Ù.
ÆÄ¿öÇǾ¾ ¸®´ª½º 2.1.24¿¡¼´Â ÆÐÄ¡µÈ Çϸ®±¸Ä¡ÀÇ ÇÁ·Î±×·¥¸¸ »ç¿ë°¡´ÉÇÏ´Ù.
ÆÄ¿öÇǾ¾ ¸®´ª½º 2.1.102ÀÌ»óÀÇ ¹öÀü¿¡¼´Â ºñÁîÀ¯Å©ÀÇ ÇÁ·Î±×·¥¸¸ »ç¿ë°¡´ÉÇÏ´Ù. ¹°·Ð ½ÇÇàÈÀÏ·Î ¸¸µé±â À§Çؼ´Â ¾à°£ÀÇ Æ®¸¯À» ÀÌ¿ëÇØ¾ß ÇÑ´Ù.
ºñÁîÀ¯Å©ÀÇ dhcpcd´Â /etc/resolv.conf ÈÀÏÀ» ´Ù¸¥ À̸§À¸·Î ¹Ù²Ù¾î ³õ°í dhcpcd¿¡ ¸Â´Â ¼³Á¤À» Á÷Á¢ ÀÛ¼ºÇÑ´Ù. µû¶ó¼ /etc/dhcpc ¹ØÀÇ ÈÀÏÀ» Ä«ÇÇÇϰųª ¸µÅ©½Ãų ÇÊ¿ä°¡ ¾ø´Ù. ¶ÇÇÑ ºñÁîÀ¯Å©ÀÇ ÇÁ·Î±×·¥ÀÌ /sbin ¹Ø¿¡ ¼³Ä¡µÈ´Ù´Â °ÍÀ» ¾ð±ÞÇÏ°í ½Í´Ù. µû¶ó¼ Áö±Ý±îÁö À§¿¡ ¼³¸íÇÑ °ÍÀ̳ª Çϸ®±¸Ä¡ÀÇ ¹öÀü°ú´Â ´Þ¸® ½ºÅ¸Æ®¾÷ ½ºÅ©¸³Æ®³ª ¸í·É¾îµéÀÌ Á¶±Ý ´Þ¶óÁ®¾ß ÇÑ´Ù´Â °ÍÀ» À¯ÀÇÇϱ⠹ٶõ´Ù. ifup½ºÅ©¸³Æ®ÀÇ ³»¿ëÀÌ ´Þ¶óÁú °ÍÀÌ´Ù. ifup½ºÅ©¸³Æ®¿¡ ´ëÇؼ´Â ¾Æ·¡¿¡ ³ª¿Â´Ù.
ÆÄ¿öÇǾ¾ ¸®´ª½º¿¡¼ µ¹¾Æ°¡´Â dhcpcdÀÇ ¹ÙÀ̳ʸ®¸¦ ¿øÇϸé reshapiro@mediaone.net¿¡°Ô ¸ÞÀÏÀ» º¸³»±â ¹Ù¶õ´Ù.
¶ÇÇÑ ftp://ftp.linuxppc.org/pub/linuxppc/contrib/linuxppc-R4/RPMS/ ¿¡¼µµ ±¸ÇÒ ¼ö ÀÖ´Ù. ±×·¯³ª À§ µð·ºÅ丮ÀÇ dhcpcd-1.3.8-2.ppc.rpmÀÇ ÈÀÏÀº ±úÁ³À¸´Ï ¹ÞÁö ¸»±â ¹Ù¶õ´Ù. È®½ÇÇÑ °ÍÀº ÆÄ¿öÇǾ¾ ¸®´ª½º 2.1.24¸¦ À§ÇÑ dhcpcd-0.70-0.ppc.rpmÀÌ´Ù. ȤÀº ÆÄ¿öÇǾ¾ ¸®´ª½º 2.1.102 ÀÌ»óÀÇ ¹öÀüÀ̶ó¸é dhcpcd-1.3.8-3.ppc.rpmÀ» »ç¿ëÇØ¾ß ÇÑ´Ù. ¾Æ¸¶ 1.3.9¹öÀüÀÇ rpmÀÌ °ð ³ª¿À°Ô µÉ °Í °°´Ù. 1.3.9ÀÇ ¹öÀü¿¡¼´Â -c ¿É¼ÇÀ» ÀÌ¿ëÇÏ¿© ¸í·É¾î ÈÀÏÀ» ÀÐÀ» ¼ö ÀÖ°Ô ÇÏ¿´´Ù. ÀÌ ±â´ÉÀº Çϸ®±¸Ä¡ÀÇ 0.65¹öÀüÀ̳ª 0.70¹öÀü¿¡ ÀÖ´Â °ÍÀ» Â÷¿ëÇÑ °ÍÀÌ´Ù.(¿ø·¡ ºñÁîÀ¯Å©ÀÇ dhcpcd¿¡´Â ÀÌ ±â´ÉÀÌ ¾ø´Ù.)
ÅäÅ«¸µ ³×Æ®¿öÅ©»ó¿¡¼´Â dhcpcd°¡ ¿Ã¹Ù¸£°Ô µ¿ÀÛÇÏÁö ¾Ê´Â´Ù. Ç ½ºÅä¿ì³Ê(Henrik Stoerner), henrik_stoerner@olicom.dk
°¡ À̹®Á¦¿¡ ´ëÇÑ ÇØ°á¹æ¾ÈÀ» ³»°Ô º¸³»ÁÖ¾ú´Ù.
ÀÌ ¹®Á¦´Â dhcpcd°¡ ¾ÆÁ÷±îÁö´Â ÀÌ´õ³Ý Ä«µå¸¸À» ÀνÄÇϱ⠶§¹®ÀÌ´Ù. °á±¹ ÅäÅ«¸µ Ä«µå¸¦ ¹ß°ßÇÑ´Ù¸é ¾Æ¸¶ Interface is not ethernet ÀÎÅÍÆäÀ̽º°¡ ÀÌ´õ³ÝÀÌ ¾Æ´Õ´Ï´Ù.¶ó´Â ¿¡·¯¸¦ º¸¿©ÁÙ °ÍÀÌ´Ù. ÇØ°áÃ¥Àº °£´ÜÇÑ ÆÐÄ¡·Î °¡´ÉÇÏ´Ù. ³ª´Â ÀÌ ÆÐÄ¡¸¦ Á¦°øÇÏ´Â ÀÛÀº ȨÆäÀÌÁö¸¦ ¸¸µé¾ú°í ¿©±â¼´Â ·¹µåÇÞÀÇ RPMÀ̳ª ¹ÙÀ̳ʸ®·Îµµ ±¸ÇÒ ¼ö ÀÖÀ» °ÍÀÌ´Ù. ÆÐÄ¡¸¦ dhcpcdÀÇ °³¹ßÀÚ¿¡°Ô·Î º¸³ÂÀ¸´Ï ¾Æ¸¶ ´ÙÀ½ ¹öÀü Áß¿¡´Â Á¤½ÄÀ¸·Î Æ÷ÇÔµÇ¾î ¹èÆ÷µÇÁö ¾ÊÀ»±î ½Í´Ù. ^^http://eolicom.olicom.dk/~storner/dhcp/
¸®ºÎÆà - Áï dhcp°¡ Á¤»óÀûÀ¸·Î ½ÃÀ۵Ǿú´Ù¸é ³×Æ®¿öÅ© ÀÎÅÍÆäÀ̽º°¡ ¼¼ÆõǾúÀ» °ÍÀÌ´Ù. ifconfig
¸í·ÉÀ¸·Î ´ÙÀ½°ú ºñ½ÁÇÑ °ÍÀ» º¼ ¼ö ÀÖÀ» °ÍÀÌ´Ù.
lo Link encap:Local Loopback inet addr:127.0.0.1 Bcast:127.255.255.255 Mask:255.0.0.0 UP BROADCAST LOOPBACK RUNNING MTU:3584 Metric:1 RX packets:302 errors:0 dropped:0 overruns:0 frame:0 TX packets:302 errors:0 dropped:0 overruns:0 carrier:0 coll:0 eth0 Link encap:Ethernet HWaddr 00:20:AF:EE:05:45 inet addr:24.128.53.102 Bcast:24.128.53.255 Mask:255.255.254.0 ^^^^^^^^^^^^^^^^^^^^^^^ UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1 RX packets:24783 errors:1 dropped:1 overruns:0 frame:1 TX packets:11598 errors:0 dropped:0 overruns:0 carrier:0 coll:96 Interrupt:10 Base address:0x300
¾Æ¸¶ ¹ØÁÙÃÄÁø inetÀ̶ó´Â ¶óº§µÚ¿¡ Æò¹üÇغ¸ÀÌ´Â ¼ýÀÚ°¡ ÀÖ´Ù¸é ±× ÁÖ¼Ò·Î ¼³Á¤¿¡ ¼º°øÇÑ °ÍÀÌ´Ù. ¸¸ÀÏ 0.0.0.0À» º»´ÙÇصµ Àý¸ÁÇÏÁö´Â ¸»¶ó. dhcpcd°¡ IP ÁÖ¼Ò¸¦ ¾ò±âÀ§ÇÑ Àӽà ÁÖ¼ÒÀÏ ¼ö Àֱ⠶§¹®ÀÌ´Ù. ¸¸ÀÏ ¸îºÐÀÌ Áö³ ÈÄ¿¡µµ 0.0.0.0À̶ó¸é 3.10ÀýÀ» º¸¸ç ¿¬±¸¸¦ ´õ ÇØ¾ß ÇÑ´Ù. DHCPcd´Â ÇϳªÀÇ µ¥¸óÀÌ°í, ÄÄÇ»ÅÍ°¡ ÄÑÁ®ÀÖ´Â µ¿¾È¿¡´Â Ç×»ó ½ÇÇàµÇ°í ÀÖ´Ù. ±×¸®°í ¸Å 3½Ã°£¸¶´Ù DHCP ¼¹ö¿¡ ¿¬°áÇÏ¿© »õ·Ó°Ô °»½ÅµÈ IP ÁÖ¼Ò¸¦ ¹Þ¾Æ¿Â´Ù. ÀÌ·± °úÁ¤Àº syslog¿¡ ±â·ÏµÉ °ÍÀÌ´Ù.(½½·¢¿þ¾î /var/adm/syslog, ·¹µåÇÞ/¿ÀǸ®´ª½º /var/log/syslog) ¸¶Áö¸·À¸·Î ³×ÀÓ¼¹ö¸¦ ¼¼ÆÃÇØ¾ß ÇÑ´Ù. µÎ°¡Áö ¹æ¹ýÁß Çϳª¸¦ ¼±ÅÃÇÏ¸é µÈ´Ù. ³×ÀÓ¼¹öÀÇ IP ÁÖ¼Ò¸¦ /etc/resolv.conf ¿¡ ³Ö´øÁö ȤÀº DHCPcd°¡ DHCP ¼¹ö·ÎºÎÅÍ ¸®½ºÆ®¸¦ ¹Þ¾Æ /etc/dhcpc ¹Ø¿¡ »õ·Î¿î resolv.conf¸¦ »ç¿ëÇϵµ·Ï ÇÏ´Â °ÍÀÌ´Ù. ÈÄÀÚÀÇ °æ¿ì¸¦ ÀÚ¼¼È÷ »ìÆ캸¸é ¿ì¼± »ç¿ëÇÏ´ø /etc/resolv.conf ¸¦ /etc/resolv.conf.OLDµîÀ¸·Î ¹Ù²Ù¾îÁÖ°í /etc/dhcpc µð·ºÅ丮°¡ ¾øÀ» °æ¿ì¿¡´Â ¸¸µé¾îÁØ´Ù. ±×¸®°í´Â /etc/dhcpc/resolv.conf¸¦ /etc/resolv.conf·Î ¸µÅ©½ÃÄÑÁØ´Ù.
mv /etc/resolv.conf /etc/resolv.conf.OLD mkdir /etc/dhcpc ln -s /etc/dhcpc/resolv.conf /etc/resolv.conf
ÀÌ·¸°Ô Çؼ Àß ¾ÈµÈ´Ù¸é ³´¾ÅÀÌ º¸³»ÁØ ÀÇ°ß¿¡ ÇÀÌ °³Á¤À» °¡ÇÑ ¹æ¹ýÀ» ½á¾ß ÇÑ´Ù. ÀÌ ¸¶Áö¸· ¹æ¹ýÀº ³ªÀÇ dhcpcd°¡ /etc/dhcpc/resolv.conf¸¦ ¸¸µéÁö ¸øÇØ »ý±ä °ÍÀÌ´Ù. ´ÙÀ½Ã³·³ /etc/sysconfig/network-scripts/ifup ÈÀÏÀ» ¼öÁ¤ÇØ¾ß ÇÑ´Ù.(¿Ã¹Ù¸£°Ô ÇÑ°Í °°Áø ¾ÊÁö¸¸ ³ªÀÇ °æ¿ì¿¡´Â ÀÛµ¿ÇÑ´Ù^^)
elif [ "$BOOTPROTO" = dhcp -a "$ISALIAS" = no ]; then echo -n "Using DHCP for ${DEVICE}... " /sbin/dhcpcd -c /etc/sysconfig/network-scripts/ifdhcpc-done ${DEVICE} echo "echo \$$ > /var/run/dhcp-wait-${DEVICE}.pid; exec sleep 30" | sh if [ -f /var/run/dhcp-wait-${DEVICE}.pid ]; then ^^^^ echo "failed." exit 1
elif [ "$BOOTPROTO" = dhcp -a "$ISALIAS" = no ]; then echo -n "Using DHCP for ${DEVICE}... " /sbin/dhcpcd echo "echo \$$ > /var/run/dhcp-wait-${DEVICE}.pid; exec sleep 30" | sh if [ ! -f /var/run/dhcp-wait-${DEVICE}.pid ]; then ^^^^^^ echo "failed." exit 1
´ÙÀ½ ¸í·ÉÀº º°·Î ÇÊ¿äÇÒ °Í °°Áö´Â ¾ÊÁö¸¸ ¾î¶² À̵鿡°Ô´Â ¹«Ã´À̳ª À¯¿ëÇÒ °Í °°´Ù.
a) ³×Æ®¿öÅ©·Î ¿¬°áµÇ´Â °ÍÀÌ ¾ÆÁÖ °¡²ûÀÏ ¶§, ÀÌ°æ¿ì¿¡´Â root·Î½á ¸í·ÉÇàÀ¸·Î dhcpcd¸¦ ¼öÇàÇÏ´Â°Ô ÁÁÀ» °ÍÀÌ´Ù.
/usr/sbin/dhcpcd¸¸ÀÏ dhcpcd¸¦ ²ô°í ½Í´Ù¸é ´ÙÀ½°ú °°ÀÌ ÇÑ´Ù.
/usr/sbin/dhcpcd -k
¸¸ÀÏ À§ÀÇ ¸ðµç °úÁ¤À» ´Ù ÇßÀ½¿¡µµ ºÒ±¸ÇÏ°í ³×Æ®¿öÅ©¸¦ ¾ï¼¼½º ÇÏÁö ¸øÇÑ´Ù¸é ´ÙÀ½ ¸î°¡Áö ÀÌÀ¯·Î ¼³¸íÇÒ ¼ö ÀÖÀ» °ÍÀÌ´Ù.
I. ³×Æ®¿öÅ© Ä«µå°¡ Á¤È®ÇÏ°Ô ¼¼ÆõÇÁö ¾Ê¾Ò´Ù.
¸®´ª½º ¹Ú½º°¡ ºÎÆõǴ µ¿¾È ºÎÆ® ¸Þ¼¼Áö Áß¿¡ ³×Æ®¿öÅ© Ä«µå¿¡ ´ëÇÑ ¼³Á¤ ³»¿ëÀ» Ãâ·ÂÇÑ´Ù. ¾Æ¸¶ ´ÙÀ½°ú ºñ½ÁÇÑ ³»¿ëÀÏ °ÍÀÌ´Ù.
eth0: 3c509 at 0x300 tag 1, 10baseT port, address 00 20 af ee 11 11, IRQ 10. 3c509.c:1.07 6/15/95 becker@cesdis.gsfc.nasa.gov
¸¸ÀÏ À§¿Í °°Àº ³»¿ëÀÌ º¸ÀÌÁö ¾Ê´Â´Ù¸é ÀÌ´õ³Ý Ä«µå°¡ ¸®´ª½º¿¡¼ ¾Æ¿¹ ÀνĵÇÁö ¾ÊÀº °ÍÀÌ´Ù. À§¿Í ºñ½ÁÇÑ ³»¿ëÀÌ ³ª¿ÔÀ½¿¡µµ Àß µÇÁö ¾Ê´Â´Ù¸é ÀÌ´õ³Ý Ä«µåÀÇ IRQ³ª º£À̽º ¾îµå·¹½º µîÀÇ ¹°¸®ÀûÀÎ ¼³Á¤ÀÌ À߸øµÈ °ÍÀÌ´Ù. °¢ ³×Æ®¿öÅ© Ä«µåÀÇ ¼³Á¤ µð½ºÄÏÀ» ÀÌ¿ëÇÏ¿© º£À̽º ¾îµå·¹½º¿Í IRQ¸¦ ¸ÂÃß¾î ÁÖ°í, ¸®´ª½º¿¡¼µµ Çϵå¿þ¾î¿Í ¸Â´Â ¼³Á¤À» ÇØ ÁÖ¾î¾ß ÇÑ´Ù.
II. Áö±Ý ¿¬°áÇÏ°í ÀÖ´Â DHCP ¼¹ö°¡ RFC 1541À» µû¸¥´Ù.
ÀÌ·² °æ¿ì¿¡´Â -r ¿É¼ÇÀ» ÀÌ¿ëÇÏ¿© dhcpcd¸¦ ½ÇÇà½ÃŲ´Ù. Áï ´ÙÀ½°ú °°ÀÌ ÇÑ´Ù.
/usr/sbin/dhcpcd -r¿Ã¹Ù¸£°Ô ¼³Á¤µÇ¾î ÀÖ´ÂÁö È®ÀÎÇϱâ À§ÇØ ifconfig¸í·ÉÀ» ÅëÇØ È®ÀÎÇØ º»´Ù. ¹°·Ð DHCP¸¦ ÅëÇØ ³×Æ®¿öÅ© ¼³Á¤ Áß¿¡´Â À§¿¡ ¸»ÇÑ ¹Ù¿Í °°ÀÌ inet.addrÀÌ 0.0.0.0À» Ç¥½ÃÇϹǷΠ¾î´ÀÁ¤µµ ½Ã°£ÀÌ Áö³ª°í È®ÀÎÇØ º»´Ù. dhcpcd ¸¦ init.dÀÇ ½ºÅ©¸³Æ®¸¦ ÅëÇØ ½ÇÇà ½ÃŲ´Ù¸é ½ºÅ©¸³Æ® ³»ÀÇ /usr/sbin/dhcpcd¸¦ "-r" ¿É¼ÇÀ» ÅëÇØ ¼öÇàÇϵµ·Ï ¹Ù²ãÁà¾ß ÇÑ´Ù.
III. ºÎÆÃÇÏ´Â µ¿¾È "Using DHCP for eth0 ... failed" °°Àº ¸Þ¼¼Áö°¡ Ãâ·Â µÈ´Ù. ÇÏÁö¸¸ ³» ½Ã½ºÅÛÀº Àß ÀÛµ¿ÇÏ´Â °Í °°´Ù.
¾Æ¸¶ Áö±Ý ·¹µåÇÞÀ» ¾²°í ÀÖ°í À§¿¡ ¸»ÇÑ ¸ðµç °úÁ¤À» öÀúÈ÷ ÀÌÇàÇÏÁö ¾ÊÀº °Í °°´Ù. :-) À§ÀÇ 3.8Àý¿¡¼ ¹Ù²ã¾ß ÇÑ´Ù°í Çß´ø ½ºÅ©¸³Æ® ³»¿ë - µÎ¹ø° if ¹®¾È¿¡ !¸¦ Ç¥½ÃÇÏ´Â °ÍÀ» »©¸Ô¾ú´Ù. 3.8ÀýÀ» ´Ù½ÃÇѹø Àо°í, È®ÀÎÇϱ⠹ٶõ´Ù.
IV. ³×Æ®¿öÅ©¸¦ ¸î ºÐÁ¤µµ ¹Û¿¡ »ç¿ëÇÒ ¼ö ¾ø´Ù. ´õÀÌ»ó ÀÀ´äÀÌ ¾ø´Ù.
¸î¸î »ç¿ëÀڷκÎÅÍ À§¿Í °°Àº Áõ»óÀ» º¸ÀÌ´Â gated(°ÔÀÌÆ®¿þÀÌ µ¥¸ó)¿ÍÀÇ Ãæµ¹ ¹®Á¦°¡ º¸°íµÇ¾ú´Ù. gated°¡ ÇöÀç ½ÇÇàÁßÀÎÁö ´ÙÀ½°ú °°Àº ¸í·É
ps -auxww | grep gateÀ» ÅëÇØ ¾Ë¾Æº¸°í ¸¸ÀÏ gated°¡ ¼öÇàÁßÀ̶ó¸é gated°¡ ²À ÇÊ¿äÇÑ ÇÁ·Î±×·¥ÀÎÁö È®ÀÎÇÏ°í, ÇÊ¿äÄ¡ ¾Ê´Ù¸é /etc/rc.d¿¡ ÀÖ´Â ½ÃÀÛ ½ºÅ©¸³Æ® Áß¿¡¼ Á¦°ÅÇϰųª, ¾Æ¿¹ ÆÐÅ°Áö¸¦ rpm ¸Å´ÏÀú¸¦ ÅëÇØ Á¦°ÅÇϵµ·Ï ÇÑ´Ù.
V. ºÎÆ® ¸Þ¼¼Áö¸¦ ÅëÇØ ºÃÀ» ¶§, ³» ÀÌ´õ³Ý Ä«µå°¡ È®½ÇÈ÷ ÀÛµ¿ÇÏ´Â °ÍÀÓÀº ºÐ¸íÇÏ´Ù. ÇÏÁö¸¸ "NO DHCPOFFER" ¶ó´Â ¸Þ¼¼Áö°¡ ·Î±×ÈÀÏ¿¡ »ý±ä´Ù. ³ªÀÇ PCMCIAÀÇ ÀÌ´õ³Ý Ä«µå¿¡¼µµ ¶È°°Àº ÀÏÀÌ ¹ú¾îÁø´Ù.
Áö±Ý¾²°í ÀÖ´Â ÀÌ´õ³Ý Æ÷Æ®°¡ 10BaseT(ÀüÈÇ÷¯±× Çü½Ä)ÀÎÁö È®ÀÎÇØ¾ß ÇÑ´Ù. È®ÀÎ ÇØ º¸´Â ¹æ¹ýÀº ºÎÆýÿ¡ ³ª¿À´Â ¸Þ¼¼Áö¸¦ ÅëÇØ ½±°Ô ¾Ë ¼ö ÀÖ´Ù. ´ÙÀ½ ¹ØÁÙ ±×Àº ºÎºÐÀ» º¸¶ó.
eth0: 3c509 at 0x300 tag 1, 10baseT port, address 00 20 af ee 11 11, IRQ 10. ^^^^^^^^^^^^ 3c509.c:1.07 6/15/95 becker@cesdis.gsfc.nasa.gov
»ç½Ç PCMCIA ÀÌ´õ³ÝÀ» ¾²´Â ´Ù¸¥ »ç¿ëÀÚµé ¿ª½Ã ºñ½ÁÇÑ Áú¹®À» ÇÏ¿´´Ù. ÀÌÀ¯´Â Æ÷Æ® ŸÀÔÀÌ 10Base2 ŸÀÔ(¾ãÀº µ¿ÃàÄÉÀ̺í)À¸·Î µÇ¾îÀֱ⠶§¹®À¸·Î º¸ÀδÙ. 10BaseT Çü½ÄÀ¸·Î ¹Ù²Ù¾î Áֱ⸸ ÇÏ¸é ¸®ºÎÆà ¾øÀÌ ¼¼ÆÃÀÌ °¡´ÉÇÏ´Ù.
VI. DHCP Ŭ¶óÀ̾ðÆ®°¡ ºê·ÎƮij½ºÆ®·Î ¿äûÇϳª ¾Æ¹«·± ÀÀ´äÀÌ ¾ø´Ù.
¾î¶² Á¾·ùÀÇ ½Ã½ºÅÛ¿¡¼´Â ÀÀ´ä¿äûÀÌ µÇ´Â È£½ºÆ®¸¦ ²À ÁöÁ¤ÇØ ÁÖ¾î¾ß ÇÒ ÇÊ¿ä°¡ ¾ø´Ù. ÀÌ·² ¶§´Â dhcpcd -h foohost'Çü½ÄÀ¸·Î È£½ºÆ® À̸§À» Àû¾îÁÖ¾î¾ß ÇÑ´Ù. ¾Æ¸¶ È£½ºÆ® À̸§À» ¿øÇÏ´Â ¼¹ö¶ó¸é »ç¿ëÀÚ °èÁ¤À» ¿øÇÒ °ÍÀÌ´Ù.
VII. À§ÀÇ ¸ðµç °úÁ¤À» µû¶úÀ¸³ª Àß µÇÁö ¾Ê´Â´Ù.
ÄÉÀÌºí ¸ðµ© »ç¿ëÀÚ¶ó¸é ´ÙÀ½À» ´«¿©°Ü ºÁ¾ß ÇÒ °ÍÀÌ´Ù. ÄÉÀÌºí ¸ðµ©¿¡¼´Â ÀϹÝÀûÀ¸·Î ³×Æ®¿öÅ© Ä«µåÀÇ ÀÌ´õ³Ý ¾îµå·¹½º¸¦ ÀúÀåÇØ µÐ´Ù. µû¶ó¼ ÀÌ´õ³Ý Ä«µå°¡ ¹Ù²î°Å³ª, ÄÄÇ»ÅÍ°¡ ¹Ù²ï´Ù¸é ÄÉÀÌºí ¸ðµ©¿¡°Ô »õ·Î¿î ÄÄÇ»Åͳª Ä«µå°¡ ¼³Ä¡µÈ °ÍÀ» ¾Ë·ÁÁà¾ß ÇÑ´Ù. ¹°·Ð ´ÜÁö ÄÄÇ»ÅÍ°¡ ÄÑÁ® ÀÖ´Â µ¿¾È ¸ðµ©À» ²°´Ù °Ü¸é µÈ´Ù. ÀÌ·± ¹æ¹ýÀÌ Áö¿øµÇÁö ¾Ê´Â´Ù¸é ÄÉÀÌºí ³×Æ®¿öÅ©¸¦ Á¦°øÇϴ ȸ»çÀÇ ±â¼úÁö¿øºÎ·Î ¿¬¶ôÇÏ´Â ¼ö¹Û¿¡ ¾ø´Ù.
¹æȺ®¿¡ ´ëÇÑ ³»¿ëµµ ÀÖ´Ù. ¹æȺ® ¼³Á¤(ipwadm rules)¿¡¼ DHCP°¡ »ç¿ëÇÏ´Â 67/68¹ø Æ÷Æ®¸¦ »ç¿ëÇÏÁö ¸øÇÏ°Ô µÇ¾îÀÖ´Â °æ¿ì°¡ ÀÖ´Ù. ÀÌ °æ¿ì ¹æȺ® ¼³Á¤À» ¹Ù²Ù¾î ÁÙ ÇÊ¿ä°¡ ÀÖ´Ù. ¹°·Ð ¼¼½ÉÇÑ ÁÖÀǸ¦ ±â¿ïÀ̱⠹ٶõ´Ù.
VIII. Áö±Ý ÇöÀç ¸Þµð¾Æ¿ø(Media One) ÀͽºÇÁ·¹½º ¼ºñ½º¸¦ »ç¿ëÇÏ°í Àִµ¥ ¿©ÀüÈ÷ Á¢¼ÓÀÌ ¾È µÈ´Ù.
¸Þµð¾Æ¿ø¿¡¼ »ç¿ëÇÏ´Â DHCP ¼¹ö°¡ ¹ºÁö ¸ð¸¦ »õ·Î¿î È®ÀåÇü½ÄÀ» »ç¿ëÇÏ´Â °ÍÀ¸·Î º¸ÀδÙ. ´õ ÀÌ»óÀº ¹®Á¦°¡ µÇÁö ¾ÊÀ» °Í °°Áö¸¸, ÀÌ ¹®Á¦¿¡ ´ëÇØ À̾߱⸦ ÇÏ°í ³Ñ¾î°¡´Â °ÍÀÌ ÁÁÀ» °Í °°´Ù. ¸¸ÀÏ ºÒ¿îÇÏ°Ôµµ - ¿îÀÌ ÁÁÀ» ¼öµµ ÀÖ´Ù. NT°¡ ÀÖ´Ù¸é 'À̺¥Æ® º¸¿©ÁÖ±â' ÇÁ·Î±×·¥¿¡¼ ´ÙÀ½°ú °°Àº °æ°í°¡ ³ª¿À´Â °ÍÀ» º¼ ¼ö ÀÖ´Ù.
DHCP received an unknown option 067 of length 005. The raw option data is given below.
0000: 62 61 73 69 63 basic
´ÙÀ½ ftp »çÀÌÆ®¿¡¼ ÀÌ È®ÀåÇü½ÄÀ» Áö¿øÇÏ´Â ÇÁ·Î±×·¥ÀÇ ¹ÙÀ̳ʸ®¸¦ ¹Þ´øÁö ¼Ò½º¸¦ ¹Þµµ·Ï ÇÑ´Ù.