½Ã½ºÄÚ ¶ó¿ìÅÍ ¼³Á¤ ¹é¾÷

¿ì¸® ȸ»ç¿¡¼­´Â WAN À» ÀÌ¿ëÇÏ¿© ¿©·¯ »ç¹«½ÇÀ» ¿¬°áÇÏ°í ÀÖ´Ù. ÀÌµé ¿ø°ÝÁö¿¡´Â ISDN À» ÅëÇÏ¿© ½Ã½ºÄÚ ¶ó¿ìÅÍ°¡ ¿¬°áµÇ¾î Àְųª ¾î¶² °æ¿ì¿¡´Â ÀÎÅͳݰú WAN ÀÇ ¿¬°áÀ» Á¦°øÇϱâ À§ÇÏ¿© ¼¾Æ®·º½º (Centrex) µ¥ÀÌÅÍ È¸·Î¸¦ »ç¿ëÇÑ´Ù. ½Ã½ºÄÚ ¶ó¿ìÅÍ Á¦Ç°Àº ³×Æ®¿÷ ¼­¹ö»óÀÇ TFTP ("Trivial File Transfer Protocol") ¸¦ ÅëÇÏ¿© ¼³Á¤ ÆÄÀÏÀ» Àаųª ¾µ ¼ö ÀÖµµ·Ï ÇØÁØ´Ù. ¶ó¿ìÅÍ ¼³Á¤ÀÌ ¹Ù²ð ¶§¸¶´Ù, ¹é¾÷À» °ü¸®ÇÒ ¼ö ÀÖµµ·Ï ¼³Á¤ ÆÄÀÏÀ» ¸®´ª½º ¼­¹ö¿¡ ÀúÀåÇÏ´Â °ÍÀÌ Áß¿äÇÏ´Ù.

TFTP ´Â Á¦´ë·Î ¼³Á¤µÇÁö ¾ÊÀ¸¸é ½ÇÁ¦·Î º¸¾È»óÀÇ ±¸¸ÛÀÌ µÇ¹Ç·Î, ·¹µåÇÞÀº µðÆúÆ®·Î TFTP ¼­ºñ½º¸¦ ¸·¾Æ³õ¾Ò´Ù´Â Á¡¿¡ ÁÖÀÇÇÏ¿©¾ß ÇÑ´Ù. TFTP µ¥¸óÀº ÀÎÁõ °úÁ¤À» °ÅÄ¡Áöµµ ¾Ê°í ´©±¸µçÁö ÆÄÀÏÀ» Àаųª ¾µ ¼ö ÀÖµµ·Ï Çã¿ëÇÑ´Ù. ³»°¡ º¸Åë ¼Â¾÷ÇÏ´Â ¹æ¹ýÀº ``/tftpboot/'' µð·ºÅ丮¸¦ ¸¸µé¾î¼­ ±× ¼ÒÀ¯ÀÚ¸¦ ·çÆ®·Î ÇÏ°í ``/etc/inetd.conf'' ÆÄÀÏ¿¡ ÀÖ´Â ¼³Á¤³»¿ëÀ» ÆÄÀÏÀÇ À§Ä¡¸¦ ÁöÁ¤Çϵµ·Ï ¹Ù²Û´Ù:

tftpd   dgram   udp    wait   root   /usr/sbin/tcpd  in.tftpd  /tftpboot

Note: ÁÖÀÇ: ÁÙÀÇ ¸Ç ³¡¿¡ ``/tftpboot'' ¶ó´Â °æ·Î¸¦ Ãß°¡ÇÏ´Â °ÍÀº TFTP µ¥¸óÀÌ ¾×¼¼½ºÇÒ ¼ö ÀÖ´Â ÆÄÀÏÀÇ À§Ä¡¸¦ ÁöÁ¤ÇÏ´Â ¿ªÇÒÀ» ÇÑ´Ù. ¹°·Ð ÀÌ·¸°Ô ÁöÁ¤ÇÏÁö ¾Ê°í TFTP °¡ ½Ã½ºÅÛÀÇ ¾îµðµçÁö ÀÖ´Â ÆÄÀÏÀ» ¾×¼¼½ºÇÒ ¼ö ÀÖµµ·Ï ÇÒ ¼öµµ ÀÖ´Ù. ÇÏÁö¸¸ TFTP ´Â º¸¾È»ó À§ÇèÀ» °®°í ÀÖ´Ù°í »ý°¢µÇ¹Ç·Î ÀÌ·¸°Ô ÇÏ´Â °ÍÀº ÁÁÀº »ý°¢ÀÌ ¾Æ´Ï´Ù.

ÀÏ´Ü TFTP ¼­ºñ½º¸¦ ¾µ ¼ö ÀÖµµ·Ï ÇÏ¿´À¸¸é ´ÙÀ½°ú °°ÀÌ Å¸ÀÌÇÎÇÏ¿©¾ß ÇÑ´Ù:

killall -HUP inetd

ÀÌ ¸í·ÉÀº INETD µ¥¸óÀ» ´Ù½Ã ½ÃÀÛ½ÃÄѼ­ inetd.conf ÆÄÀÏÀÇ ¼öÁ¤ ³»¿ëÀÌ Àû¿ëµÇ°Ô ÇØÁØ´Ù.

¶ó¿ìÅÍ ¼³Á¤ ÆÄÀÏÀÇ ¹é¾÷À» ¸¸µå´Â °ÍÀº 3´Ü°è·Î ÀÌ·ç¾îÁø´Ù: ±âÁ¸ÀÇ ÆÄÀÏ¿¡ ´ëÇÏ¿© (¾øÀ¸¸é Çϳª¸¦ ¸¸µé¾î¼­) ¾²±â¸¦ Çã¿ëÇϵµ·Ï Æ۹̼ÇÀ» ÁöÁ¤ÇÏ°í, ¹é¾÷ ÆÄÀÏÀ» ¾²°í, ±×¸®°í ³ª¼­ ÆÄÀÏ¿¡ ´ëÇÑ ¾×¼¼½º¸¦ Á¦ÇÑÇϵµ·Ï Æ۹̼ÇÀ» ¸®¼ÂÇÑ´Ù. ¶ó¿ìÅÍ ¹é¾÷ ¼¼¼ÇÀÇ ¿¹´Â ´ÙÀ½°ú °°´Ù:

mail:~# cd /tftpboot
mail:/tftpboot# chmod a+w xyzrouter-confg
chmod: xyzrouter-confg: No such file or directory
mail:/tftpboot# touch xyzrouter-confg
mail:/tftpboot# chmod a+w loyola-confg
mail:/tftpboot# telnet xyzrouter
Escape character is '^]'.
User Access Verification
Password: ****
xyzrouter> enable
Password: ****
xyzrouter# write network
Remote host []? 123.12.41.41
Name of configuration file to write [xyzrouter-confg]?  
Write file xyzrouter-confg on host 123.12.41.41? [confirm]  
Building configuration...
Writing xyzrouter-confg !! [OK] 
xyzrouter# exit
Connection closed by foreign host.
mail:/tftpboot# chmod a-wr,u+r xyzrouter-confg
mail:/tftpboot# exit

¶ó¿ìÅÍ°¡ (¿¹ÄÁ´ë õµÕ ¹ø°³·Î ¹ß»ýÇÑ ¼­Áö Àü¾ÐÀ¸·Î) ¸»½éÀ» ÀÏÀ¸Å°¸é ÀÌ·¯ÇÑ ¹é¾÷ ÆÄÀÏÀÌ ¶ó¿ìÅÍ ¼³Á¤À» ´Ù½Ã º¹±¸Çϴµ¥ µµ¿òÀÌ µÈ´Ù. ¼³Á¤ ÆÄÀÏÀ» º¹±¸ÇÏ´Â °Íµµ ¿ª½Ã 3´Ü°è·Î ÀÌ·ç¾îÁø´Ù: ±âÁ¸ ÆÄÀÏÀÇ Æ۹̼ÇÀ» ¼ÂÆÃÇÏ°í, ÆÄÀÏÀ» ¿Ã¸°´ÙÀ½, ÆÄÀÏ¿¡ ´ëÇÑ Á¢±ÙÀ» ÅëÁ¦Çϱâ À§ÇÏ¿© Æ۹̼ÇÀ» ¸®¼ÂÇÑ´Ù. ¶ó¿ìÅÍ º¹±¸ ¼¼¼ÇÀÇ ¿¹´Â ´ÙÀ½°ú °°´Ù.

mail:~# cd /tftpboot
mail:/tftpboot# chmod a+r xyzrouter-confg
mail:/tftpboot# telnet xyzrouter
Escape character is '^]'.
User Access Verification
Password: ****
xyzrouter> enable
Password: ****
xyzrouter# config network
Host or network configuration file [host]?  
Address of remote host [255.255.255.255]? 123.12.41.41
Name of configuration file [xyzrouter-confg]?  
Configure using loyola-confg from 123.12.41.41? [confirm]  
Loading xyzrouter-confg from 123.12.41.41 (via BRI0): !
[OK - 1265/32723 bytes]
xyzrouter# write
xyzrouter# exit
Connection closed by foreign host.
mail:/tftpboot# chmod a-wr,u+r xyzrouter-confg
mail:/tftpboot# exit