· KLDP.org · KLDP.net · KLDP Wiki · KLDP BBS ·
Linuxdoc Sgml/Dip+SLiRP+CSLIP

Linux Dip+SLiRP+CSLIP mini-HOWTO

Linux Dip+SLiRP+CSLIP mini-HOWTO

Zenon Fortuna ( zenon@netcom.com)

Version: 1.0 October 15th '95 ¹ø¿ªÀÚ: ±è±¤Âù (nownuriID:±øÅëµû°Ô, can@nownuri.nowcom.co.kr) ¹ø¿ªÀÏÀÚ: 1996³â 12¿ù 25ÀÏ Å©¸®½º¸¶½º¿¡..

1. "Dip+SLiRP+CSLIP mini-HOWTO" ¸¸µçÀÌÀ¯

ÀÌ ¹®¼­´Â ´ÜÁö °èÁ¤¿¡¼­ SLIP-ÀÎÅÍ³Ý ¿¬°á¿¡ »ç¿ëµÇ´Â À¯¿ëÇÑ ½©-À» ÀνºÅç ÇÏ°í ½ÍÁö¸¸ NET-2-HOWTOÀÇ ¸ðµç ³»¿ë°ú Dip/SLiRP¹®¼­¸¦ Àб⠿øÄ¡ ¾Ê´Â »ç¿ëÀÚ¸¦ À§ÇÑ °ÍÀÌ´Ù.À§¿¡ ¾ð±ÞÇß´ø ¹®¼­µéÀº Á»´õ ÀÚ¼¼ÇÏÁö¸¸ ¿©·¯ºÐÀÇ ¸Ó¸®¸¦ ¹«Ã´À̳ª ¾ÆÇÁ°Ô ÇÒ°ÍÀÌ´Ù.:)

dip337n-uri¿Í slirp-0.95h ÆÐÅ°ÁöµéÀÌ º» Å×½ºÆ®¿¡ »ç¿ëµÇ¾ú´Ù.ÀÌ Å×½ºÆ®´Â ½½·º 2.2.0ÀÌ ÀνºÅçµÈ »óÅ¿¡¼­,Ä¿³Î1.2.13ÀÇ ¾ÈÁ¤µÈ ¸®´ª½º¿¡¼­ ÇàÇØÁ³´Ù.(È®ÀεƴÙ?)

2. ¹®¼­Á¤º¸(History of changes)

1995³â 10¿ù 15ÀÏ ÇöÀç ¹öÁ¯:1.0 ÀÌ ¹®¼­´Â ÃÖÃÊ ÀÛ¼ºµÈ ¹®¼­ÀÓ

3. µé¾î°¡±âÀü¿¡ (Short description)

  • ³ª´Â ´ç½ÅÀÇ ¸®´ª½º¹Ú½º(¸®´ª½º½Ã½ºÅÛ)°¡ °èÁ¤(shell-account)¸¦ °¡Áö°í ÀÖ´Â ISP (ÀÎÅÍ³Ý ¼­ºñ½º Á¦°ø¾÷ü)ÀÇ ¼­¹ö¿¡ ÀüÈ­Á¢¼ÓÀÌ °¡´ÉÇÏ´Ù´Â°É ÀüÁ¦ÇÑ´Ù.ÀÌ ¼­¹ö¿¡ ¿ì¸®´Â "SLiRP"À¯Æ¿¸®Æ¼¸¦ ¼³Ä¡ÇÒ °ÍÀÌ´Ù.
  • ¿ì¸®´Â ¼­¹ö(remote-server)¿¡ ÀüÈ­Á¢¼ÓÀ» À§Çؼ­ Ưº°ÇÑ ½ºÅ©¸³Æ®¿Í ÇÔ²² ¸®´ª½º ¹Ú½º¿¡¼­ "dip"À¯Æ¿¸®Æ¼¸¦ ÁغñÇÏ°í, ¼­¹ö¿¡¼­ "SLiRP"¸¦ ½ÃÀÛÇÒ °ÍÀÌ´Ù.
  • "dip"Àº ½Ã¸®¾ó ¶óÀÎ º¯¼ö Á¶°ÇÀ¸·Î ½ÇÇàµÉ °ÍÀ̸ç,¼­¹öÀÇ "SLiRP"¿¡ ÀÇÇØ ¼³Á¤µÇ ¾îÁø IP mappingÀ» ¸®´ª½º¹Ú½º¿¡ ¾Ë·ÁÁÙ °ÍÀÌ´Ù.
  • as a result the TCP/IP packets sent over the serial-line/modem connection will be handled by the remote server as though being sent locally by this server.(¿ªÀÚ:ªÀº ¿µ¾î ½Ç·Â´öÀ¸·Î Çؼ®À» ¸øÇÑÁ¡ ÀÌÇعٶ÷ :<)
* ¿ì¸®´Â ÀÎÅÍ³Ý ¸®¼Ò½ºµé·ÎºÎÅÍ ¸®´ª½º ½Ã½ºÅÛÀÇ TCP/IP¿¬°áÀ» ¾òÀ»¼ö ÀÖ´Ù. * Miracle happens: we will get a TCP/IP connection of the Linux system * * to the Internet resources. *

4. ¼³Á¤´Ü°è

4.1 SLiRP ÀνºÅçÇϱâ

  • slirp-0.95h.tar.gz ¿Í °°ÀÌ ¹èÆ÷µÇ´Â SLiRPÇÁ·Î±×·¥À» ±¸Çؼ­,¸®¸ðÆ® È£½ºÆ®(Àü È­Á¢¼ÓÀ» ÇÒ ½Ã½ºÅÛ)¿¡¼­ "slirp"ÇÁ·Î±×·¥À» ÄÄÆÄÀÏ ÇÑ´Ù. SLiRPÀÇ docs/README.compiling ¿¡ ÀÚ¼¼ÇÑ ¼³¸íÀÌ µÇÀÖ´Ù.
  • ÄÄÆÄÀÏ ´ë½Å¿¡ ibc.wustl.edu/pub/slirp_bin/USE_AT_OWN_RISK/ ¿¡¼­ ¹Ì¸® ÄÄ ÆÄÀÏµÈ ¹ÙÀ̳ʸ® È­ÀÏ°ú,Alt.dcom.slip-emulators FAQ ¼³¸í¹× ¹®¼­µéÀ» ±¸ÇÒ¼ö ÀÖ´Ù.(¿ªÀÚ: ³»°¡ ¾Ë¾Æº» °á°ú ÀÌ°÷¿¡´Â ¾Æ¹«°Íµµ µé¾îÀÖÁö ¾Ê¾Ò´Ù.´ÜÁö HTML¸¸ ´Þ¶ûÀÖ¾úÀ» »ÓÀÌ¿´´Ù.¼±»çÀÌÆ®¿¡ °¡´Â°Ô ´õ ºü¸¦µí)
  • "slirp"È­ÀÏÀ» Á»´õ ÁÁÀº ÀÚ¸®,"./bin/slirp" ³ª "./slirp"($HOME µð·ºÅ丮¿¡¼­) ¿¡ ¿Å±ä´Ù.
  • $HOME µð·ºÅ丮¿¡ ".slirp"È­ÀÏÀ» ¸¸µç´Ù.´ÙÀ½°ú °°Àº °£´ÜÇÑ ¸í·É¾î¸¦ ³Ö´Â´Ù.

#### .slirprc file #### add ptyexec /usr/bin/tcsh -l:10.0.2.1:23 compress baudrate 38400 #### end

"compress"´Â CSLIP ÇÁ·ÎÅäÄÝÀ» »ç¿ëÇÒ¼ö ÀÖµµ·Ï ÇØÁØ´Ù. "add ptyexec"¸í·É¾î´Â "shell"¸í·É¾î ´ë½Å¿¡ »ç¿ëµÈ°ÍÀÌ´Ù. (¸í·É¾î ¸®½ºÆ®´Â SLiRPÀÇ dosc/CONFIG¸¦ º¸¶ó.)

¿Ö³ÄÇϸé "tcsh -l"(".login"¿¡¼­) À» »ç¿ëÇÏ´Â°Í º¸´Ù ÁÁÀ¸¸ç,"shell"¸í ·É¾î´Â flagµéÀ» ¹Þ¾ÆµéÀÌÁö ¾Ê±â ¶§¹®ÀÌ´Ù.(³­ ±×·¸°Ô ¹Ï´Â´Ù.) ´ç½ÅÀº ¸®¸ðÆ® ½Ã½ºÅÛ¿¡¼­ "tcsh"ÇÁ·Î±×·¥¿¡ ÀÇÇØ Æ¯È­µÈ ÁÖ¼Ò¸¦ »ç¿ëÇØ¾ß ÇÑ´Ù.(¶Ç´Â ´ç½ÅÀÌ ÁÁ¾ÆÇÏ´Â ½©À̳ª..) "baudrate"´Â ´ç½ÅÀÇ ¸ðµ© ¿¬°á¿¡ ¾Ë¸ÂÀº ¼Óµµ¸¦ »ç¿ëÇؾßÇÑ´Ù.

4.2 SLiRP Å×½ºÆÃÇϱâ

´ç½ÅÀÇ ¼­¹ö(remote system)¿¡ ·Î±äÇÑÈÄ

% bin/slirp (¶Ç´Â "./slirp"¶ó°í ÀÔ·ÂÇÑ´Ù.:È­ÀÏ À§Ä¡¿¡ µû¶ó ´Ù¸£´Ù.)

´ç½ÅÀº ¸¶Áö¸· ÁÙ¿¡ ´ÙÀ½°ú °°Àº ¸Þ½ÃÁö¸¦ ¾ò¾î¾ßÇÑ´Ù.

[talking CSLIP, MTU 1500, MRU 1500, 38400 baud]

"slirp"¸¦ ³¡³»±â À§Çؼ­´Â "0"À» õõÈ÷ ´Ù¼¸¹ø ´©¸¥´Ù.(1Ãʺ¸´Ù ÀÛÀº °£°ÝÀ¸·Î)

4.3 ´ç½ÅÀÇ ¸®´ª½º¹Ú½º ¼ÂÆÃÇϱâ :)

±Ùº»ÀûÀ¸·Î,´ç½ÅÀº Ä¿³Î¿¡¼­ CSLIP°ú ³×Æ®¿÷ ÀÛµ¿ÀÌ °¡´ÉÇϵµ·Ï ÁغñÇÏ´Â ÇൿÀ» ÇØ¾ß ÇÑ´Ù.±×·±ÈÄ ´ç½ÅÀº ³×Æ®¿÷ ¼ÂÆÃÀ» ÇØ¾ß ÇÑ´Ù."src/linux"¿¡¼­ "make config" ¸¦ ÇÑÈÄ ´ÙÀ½°ú °°Àº °÷¿¡ "y"¸¦ ÇØÁØ´Ù.

                Networking support (CONFIG_NET) [y]
                TCP/IP networking (CONFIG_INET) [y]
                Assume subnets are local (CONFIG_INET_SNARL) [y]
                Network device support? (CONFIG_NETDEVICES) [y]
                Dummy net driver support (CONFIG_DUMMY) [y]
                SLIP (serial line) support (CONFIG_SLIP) [y]
                CSLIP compressed headers (CONFIG_SLIP_COMPRESSED) [y]
                PPP (point-to-point) support (CONFIG_PPP) [y]

³ª´Â 3c509 Ethernet card¸¦ »ç¿ëÇÑ´Ù.µû¶ó¼­ ´ÙÀ½°ú °°Àº ¿É¼ÇÀ» ÷°¡ Çß´Ù.


                3COM cards (CONFIG_NET_VENDOR_3COM) [y]
                3c509/3c579 support (CONFIG_EL3) [y]
 
NFS ¼³Ä¡¸¦ À§ÇØ ´ç½ÅÀº ´ÙÀ½°ú °°ÀÌ Ã·°¡ÇÒ¼ö ÀÖ´Ù.

                NFS filesystem support (CONFIG_NFS_FS) [y]

"make config"¸¦ ¼º°øÀûÀ¸·Î ¸¶Ä£ÈÄ,"make dep;make clean;make zlilo"¸¦ ÅëÇØ Ä¿³Î ÄÄÆÄÀÏÀ» ¼öÇàÇÑ´Ù.

³×Æ®¿÷ ¼³Á¤¿¡ À־ °¡Àå ¸ÕÀú ¾î¶² IP ÁÖ¼Ò¸¦ »ç¿ëÇÒ°ÍÀΰ¡ °áÁ¤ÇØ¾ß ÇÑ´Ù. ¸¸¾à ´ç½ÅÀÇ ÁÖ¼Ò°¡ ºÎÁ·ÇÏ´Ù¸é,RFC1597(¿ªÀÚ:ÀÌ°ÍÀÌ ¹ºÁö ¸ð¸§ ^^;)¿¡ ÀÇÇØ ·ÎÄ® ³×Æ®¿÷¿¡ Çã¶ôµÈ 192.168.1.100À» Àû¾îÁØ´Ù.

¹°·Ð ´ç½ÅÀº NET-2-HOWTO ¸¦ ÀÐÀ½À¸·Î½á ´õ Á¤È®ÇÑ Á¤º¸¸¦ ¾òÀ»¼ö ÀÖÀ¸³ª,´ÙÀ½°ú °°ÀÌ ÇÏ¸é °¡´ÉÇÒ °ÍÀÌ´Ù.

A."yourhost.linux.org"¿Í °°ÀÌ ´ç½ÅÀÇ ½Ã½ºÅÛ¿¡ ³×Æ®¿÷ À̸§À» ºÎ¿©ÇÑ´Ù. ¼¼°³ÀÇ À̸§Àº ´ç½ÅÀÇ ÀÔ¸À¿¡ ¸Â°Ô °ñ¶ó¶ó :) "/etc/HOSTNAME"¿¡ À§¿¡¼­ ¼³Á¤ÇÑ À̸§À» Àû¾î³Ö´Â´Ù.

B."/etc/hosts"¿¡ ´ÙÀ½°ú °°ÀÌ Àû¾î³Ö±â ¹Ù¶õ´Ù.

192.168.1.100 yourhost.linux.org yourhost

À§¿¡¼­ "yourhost.linux.org"´Â A ¹ø°¿¡ ÀûÀº À̸§°ú °°¾Æ¾ß ÇÑ´Ù.

C.¸¸¾à ·ÎÄà ÀÌ´õ³ÝÀ» ½ÇÇàÇÑ´Ù¸é(If you run local Ethernet) ´ÙÀ½À» "/etc/networks"¿¡ Àû±â ¹Ù¶õ´Ù.

yournet 192.168.1.0

D./etc/rc.d µð·ºÅ丮¿¡ ÀÖ´Â "rc.inet1" ¿¡ ´ÙÀ½À» ¼³Á¤ÇÑ´Ù.

IPADDR=yourhost NETMASK="255.255.255.0" NETWORK=yournet BROADCAST="192.168.1.255"

±×·±ÈÄ,¸¸¾à ½ÇÁ¦ ÀÌ´õ³ÝÄ«µå¸¦ °¡Áö°í ÀÖ´Ù¸é ´ÙÀ½¿¡ ÇØ´çÇÏ´Â ÇàÀÇ ÁÖ¼®Ã³ ¸®µÈ°ÍÀ» Áö¿ö¶ó.

/sbin/ifconfig eth0 ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST} /sbin/route add -net ${NETWORK} netmask ${NETMASK}

E.´ç½ÅÀÇ µÎ³×ÀÓÀÎ "linux.org"(A Âü°í)¸¦ "/etc/resolv.conf"¿¡ ´ÙÀ½°ú °°ÀÌ Àû¾î ³Ö´Â´Ù.

domain linux.org

¸¶Áö¸·À¸·Î ´ç½ÅÀÇ ½Ã½ºÅÛÀ» ¸®ºÎÆÃÇÏ¸é µÈ´Ù.

4.4 ¸®´ª½º ½Ã½ºÅÛ Å×½ºÆÃÇϱâ

syslogd(8) ÀÌ ½ÇÇàµÈ´Ù¸é °¡Àå¸ÕÀú ºÎÆø޽ÃÁö¸¦ º¸°Å³ª,"/usr/adm/messages" È­ÀÏÀ» »ìÆ캸¶ó.´ç½ÅÀº ´ÙÀ½°ú °°Àº ¸Þ½ÃÁö¸¦ º¼¼ö ÀÖÀ»°ÍÀÌ´Ù.

IP Protocols: ICMP, UDP, TCP PPP: version ... TCP compression ... PPP line discipline registered. SLIP: version ... CSLIP: code copyright ...

¸¸¾à ´ç½ÅÀÌ ÀÌ´õ³Ý ÀÎÅÍÆäÀ̽º¸¦ °¡Áö°í ÀÖ´Ù¸é ¸¶Âù°¡Áö·Î ´ÙÀ½°ú °°ÀÌ ÀÎ½ÄµÉ °ÍÀÌ´Ù.

eth0: 3c509 at 0x280 ...

´ç½ÅÀÇ ³×Æ®¿÷Àº ¼³Á¤µÇ¾ú°í ¾à°£ÀÇ ¸í·É¾î¸¦ ÅëÇØ Å×½ºÆ®ÇÒ¼ö ÀÖ´Ù.

A.¾Æ¹« ¿É¼Ç¾øÀÌ "ifconfig"¸¦ ½ÇÇàÇϸé,´ç½ÅÀº "lo"(loopback)ÀÎÅÍÆäÀ̽º°¡ È°¼ºÈ­µÈ°ÍÀ» ÁÖ¼Ò¿Í ÇÔ²² È®ÀÎÇÒ ¼ö ÀÖ´Ù.¸¸¾à ´ç½ÅÀÌ ½ÇÁ¦ ÀÌ´õ³ÝÀ» ¿î¿ë ÁßÀ̶ó¸é,"eth0" ÀÎÅÍÆäÀ̽º Á¤º¸µµ º¼¼ö ÀÖÀ»°ÍÀÌ´Ù. ±×¸®°í "inet addr: 192.168.1.100"µî°ú °°Àº ´«¿¡ ÀÍÀº ÁÖ¼Ò¸¦ È®ÀÎÇÒ ¼ö ÀÖ´Ù.

B.¾Æ¹«·± ¿É¼Ç¾øÀÌ "route"¸¦ ½ÇÇàÇϸé,"loopback"°ú "yournet"¿¡ ÇØ´çÇÏ´Â ÁÙÀ» º¼¼ö ÀÖ´Ù.

ÀÌÁ¦ ´ç½ÅÀÇ ¸®´ª½º ½Ã½ºÅÛÀº CSLIP°ú ÇÔ²² ÀÏÇÒ Áغñ¸¦ °®Ãè´Ù.

4.5 DIP ÀνºÅçÇϱâ

  • ¾î¼¸é (it may happen),¿©·¯ºÐÀÇ ¸®´ª½º ½Ã½ºÅÛ¿¡´Â "dip" ¹ÙÀ̳ʸ®È­ÀÏÀ» ÀÌ¹Ì °¡Áö°í ÀÖÀ» °ÍÀÌ´Ù.ÀÌ°ÍÀÌ ¸¸¾à 3.3.7n¹öÁ¯À̶ó¸é ÁÁÀ» °ÍÀÌ´Ù.(ÀÌ°ÍÀº ÃֽŠ¹®¼­·Î ¾÷µ¥ÀÌÆ® µÇÀÖ´Ù.)
  • ±×·¸Áö ¾Ê´Ù¸é dip337n-uri.tar.gz ¿Í °°Àº(ȤÀº ´õ »óÀ§¹öÁ¯)ÀÇ Dip ¹èÆ÷º»À» ±¸ÇÑÈÄ ¿©·¯ºÐÀÇ ¸®´ª½º ¹Ú½º¿¡¼­ ÄÄÆÄÀÏ ÇÑ´Ù.dip-3.3.7n µð·ºÅ丮¿¡¼­ ´ÜÁö "make"¶ó°í ŸÀÌÇÎÇϱ⸸ ÇÏ¸é µÈ´Ù.
  • /usr/local/bin/dip ¶Ç´Â $HOME/bin/dip °°Àº°÷¿¡ "dip"ÇÁ·Î±×·¥À» ¿Å°Ü³õ´Â´Ù.
  • Ȩµð·ºÅ丮($HOME)¿¡ "slirp.dip"°ú °°Àº dip½ºÅ©¸³Æ®¸¦ ¸¸µç´Ù.

dip ½ºÅ©¸³Æ® È­ÀÏÀº º¸Åë ±æ¸ç º¹ÀâÇÏ´Ù.dipÀÇ "samples" µð·ºÅ丮¿¡ ¾à°£ÀÇ ¿¹¹®ÀÌ ÀÖ´Ù.(¾Æ¸¶µµ /usr/doc/dip/samples¿¡ ±ò·ÁÀÖÀ» °ÍÀÌ´Ù.)


 ¾Æ·¡¿¡ ³ªÀÇ "slirp.dip"¸¦ ¿¹·Î Àû¾îºÃ´Ù.
#### slirp.dip #####
#
# slirp.dip     Dialup IP script for use with SLiRP and netcom
#


main:
  # netmask ¸¦ sl0·Î ¼³Á¤ÇÑ´Ù.
  netmask 255.255.255.0


  # serial port ¿Í ¼Óµµ¸¦ ¼³Á¤ÇÑ´Ù. 
  # ttyS2 ¸¦ ´ç½ÅÀÇ ¸ðµ© µð¹ÙÀ̽º¿¡ ¸Â°Ô °íÃÄ¾ß ÇÒ°ÍÀÌ´Ù.
  # ³ª´Â ÀÌ Æ÷Æ®¿¡¼­ "mgetty"°¡ ÀßÀÛµ¿ÇÑ´Ù.µû¶ó¼­ ³ª´Â "cua2" º¸´Ù´Â "ttyS2"¸¦
  # »ç¿ëÇÏ±æ ¹Ù¶õ´Ù.
  port ttyS2
  speed 38400


  # ¸ðµ©°ú Å͹̳ζóÀÎÀ» ´Ù½Ã ¼ÂÆÃÇØ ÁØ´Ù.
  # À̺κÐÀº ¸î¸î »ç¿ëÀڵ鿡°Ô¼­  ¹®Á¦°¡ »ý±â´Âµí ÇÏ´Ù.
  reset


  # ´ÙÀ̾˸µÀ» À§ÇÑ Áغñ´Ü°è.
  # ´ç½ÅÀÇ ¸ðµ©Àº ÀÌ°Í°ú ´Ù¸¥ ÃʱâÈ­ÀÏÁö ¸ð¸¥´Ù´Â°É ÁÖÀÇÇ϶ó.
  # ³» ¸ðµ©Àº WorldBlazer ÀÌ´Ù.
  send AT S0=0 S11=70 S50=254 S58=2 Q0 V1 E1 X4\r
  wait OK 2
  if $errlvl != 0 goto modem_trouble


redial:
 # ´ç½ÅÀÇ POP#¿¡ ÀüÈ­¸¦ °Ç´Ù.
 # ´ÙÀ½ ÀüÈ­¹øÈ£´Â ³»°¡ Á¢¼ÓÇÏ´Â POP¹øÈ£ÀÌ´Ù. 
 # your mileage may vary(<= ÀÌ°Å ¹«½¼¶æÀÌÁÒ?)
  send ATDT 274 2900\r
  wait CONNECT 50
  if $errlvl != 0 goto dial_trouble


  # ¿¬°áÀÌ µÆ´Ù¸é ½Ã½ºÅÛ¿¡ ·Î±äÇÑ´Ù.
login:
  sleep 2
  send \n 
  wait ogin: 20
  if $errlvl != 0 goto login_trouble
  print got the login prompt, OK
  # ¹ØÀÇ 'zenon' À» ´ç½ÅÀÇ ·Î±ä¸íÀ¸·Î ¹Ù²Ù±â ¹Ù¶õ´Ù.
  sleep 2
  send \n
# ·Î±ä¸íÀ» ³Ö±âÀü¿¡ "\n"À» Àû¾îÁÖ´Â ÀÌÀ¯¸¦ Àß ¸ð¸£°Ú´Ù. 
# ÀÌ°É ¾ÈÀû¾îÁáÀ» °æ¿ì ÀÛµ¿À» ÇÏÁö ¾Ê´Â´Ù.
  sleep 2
  send zenon\n
  print sent 'zenon', waiting for 'password' ...


  wait ord: 30
  if $errlvl != 0 goto password_trouble
  # ¾Æ·¡ÀÇ 'blablabla'ºÎºÐ¿¡ ¿©·¯ºÐÀÇ Æнº¿öµå¸¦ ³Ö¾îÁØ´Ù. 
  send blablabla\r


  # ¾Æ¸¶µµ ·Î±äµÇ¾úÀ» °ÍÀÌ´Ù.
loggedin:
  # ¾Æ·¡ºÎºÐÀ» ´ç½ÅÀÇ ½© ÇÁ·ÒÇÁÆ®·Î ¹Ù²Û´Ù. (³»°ÍÀº <url url="mailto:zenon@netcomNN" name="zenon@netcomNN" > n%ÀÌ´Ù.)
  wait zenon 15
  if $errlvl != 0 goto prompt_error


  # SLiRP°¡ ¸®¸ðÆ® machine ÀÇ IP¸¦ 10.0.2.2·Î °¡Áöµµ·Ï ÇÑ´Ù.
  get $remote 10.0.2.2


  # Make sure 'slirp' is found on netcom and is executable
  # ³ª´Â"slirp"°¡ ¸®¸ðÆ®ÀÇ $HOME/bin µð·ºÅ丮¿¡ ÀνºÅç µÇ¾ú´Ù±¸ °¡Á¤ÇÑ´Ù.
  
  send exec bin/slirp\n


  # CSLIP ÀÛ¾÷ º¯¼ö¸¦ ¼³Á¤ÇÑ´Ù.(operating parameters.)
  get $mtu 1500


  # Ensure "route add -net default $remote" will be done
  # With the dip-3.3.7n it is simple, just say "default"
  default


  # Say hello and fire up!  <= ÀÌ°Å ¾î¶»°Ô Çؼ®ÇÏÁÒ?? ^^;
done:
  print CONNECTED local: $locip ---> remote: $rmtip
  mode CSLIP
  goto exit


prompt_error:
  print TIME-OUT waiting for SLIPlogin to fire up...
  goto error


login_trouble:
  print Trouble waiting for the Login: prompt...
  goto error


password_trouble:
  print Trouble waiting for the Password: prompt...
  goto error


modem_trouble:
  print Trouble occurred with the modem...
  goto error


dial_trouble:
  print Trouble occurred while dialing...
error:
  print CONNECT FAILED to $remote
  quit
exit:
  exit
#### end

Âü°í:À§ÀÇ ½ºÅ©¸³Æ®Áß¿¡¼­ ´ÙÀ½¿¡ ÇØ´çµÇ´Â »çÇ×Àº ¿©·¯ºÐ¿¡°Ô ¾Ë¸Â°Ô °íÄ¡µµ·Ï ÇÑ´Ù.

- Æ÷Æ® À̸§ (³ª´Â ttyS2¸¦ »ç¿ëÇÑ´Ù.) - Æ÷Æ® ¼Óµµ (³ª´Â 38400À¸·Î »ç¿ëÇÑ´Ù.) - ¸ðµ© ÃʱâÈ­ ¹®ÀÚ (³»°¡ »ç¿ëÇÏ´Â °ÍÀº WorldBlazerÀÌ´Ù.) - POP's ÀüÈ­¹øÈ£ (³»°Í°ú ´Ù¸£±æ ¹Ù¶õ´Ù :) - ·Î±ä¸í - ¾ÏÈ£ - ÇÁ·ÒÇÁÆ®(È®½ÇÈ÷ ·Î±äµÇ¾úÀ»¶§) - "slirp"ÀÇ À§Ä¡ (³»°ÍÀº $HOME/binÀÌ´Ù.)

4.6 DIP Å×½ºÆÃÇϱâ

´ç½ÅÀº ´ÙÀ½°ú °°ÀÌ verbose(¾î¶»°Ô Çؼ®ÇØ¾ß Çϳª? ^^;) »óÅ·Π"dip"À» ½ÃÀÛÇÒ¼ö ÀÖ´Ù.

% dip -v slirp.dip

The messages printed by the "dip" may suggest some modifications to the above "slirp.dip" script. ( "dip"¿¡ ÀÇÇØ ³ªÅ¸³ª´Â ¸Þ¼¼Áö´Â À§ÀÇ "slirp.dip" ½ºÅ©¸³Æ®¿¡ ÀÇÇØ º¯°æµÈ »çÇ×À» Á¦½ÃÇÒ °ÍÀÌ´Ù.?)

¸ðµç°ÍÀÌ ÀßµÈ´Ù¸é ´ç½ÅÀº ´ÙÀ½°ú °°Àº ¸Þ½ÃÁö¸¦ ¸¶Áö¸·¿¡¼­ º¼¼ö ÀÖÀ» °ÍÀÌ´Ù.

CONNECTED local: 192.168.1.100 ---> remote: 10.0.2.2

"dip" ½ºÀ§Ä¡µéÀº "daemon"°ú °°ÀÌ ½ÇÇàµÇ¸ç,´ç½ÅÀÇ ÇÁ·ÒÇÁÆ®·Î µ¹¾Æ¿Â´Ù.(??) ±×·±µ¥ "dip"À» Áö±Ý ¹Ù·Î ¸ØÃß·Á¸é,´ÜÁö "dip -k"¶ó°í µÎµå¸®±â¸¸ Çϸé "dip"Àº Ãë¼ÒµÉ °ÍÀÌ°í,¸ðµ©¿¬°áµµ Ãë¼ÒµÉ °ÍÀÌ´Ù.

5. ÀϹÝÀûÀÎ ÀÛ¾÷

¤¡. ´ÙÀ½°ú °°ÀÌ dip+slirp¿¬°áÀ» ÇÑ´Ù. % dip slirp.dip

¤¤. ¿¬°áÀÌ ¼º°øÇÑÈÄ "CONNECTED..." ¸Þ½ÃÁö°¡ ³ªÅ¸³ª¸é ´ç½ÅÀÇ ISP¸¦ ÅëÇÑ ÀÎÅͳݿ¡ CSLIP ¿¬°á µÈ °ÍÀÌ´Ù. "telnet"À» ÀÌ¿ëÇØ °¡Àå¸ÕÀú ´ç½ÅÀÇ ¸®¸ðÆ®¼­¹ö¿¡ Á¢¼ÓÇØ º¸ÀÚ. % telnet 10.0.2.1 Thanks to the ".slirprc" configuration file, this connection should activate the "tcsh -l" and you should get the remote login. (".slirprc" È­ÀÏ¿¡ °¨»çÇÑ´Ù. ÀÌ ¿¬°áÀº "tcsh -l"¸¦ È°¼ºÈ­ ½ÃÅ°°í ´ç½ÅÀº ¸®¸ðÆ® ·Î±äÀ» ÇÒ¼ö ÀÖ´Ù. ??) <= Çؼ®ÀÌ ÀÌ»óÇÏÁÒ ^^; "ps"¸í·ÉÀ» ½ÇÇàÇÏ¸é ´ÙÀ½°ú °°Àº ³»¿ëÀ» º¼¼ö ÀÖ´Ù. 6019 s0 S 0:13 slirp 6075 sb IW 0:00 -/usr/bin/tcsh (tcsh) 16721 t6 R 0:00 ps

¤§. ´ç½ÅÀº ÅÚ³ÝÁ¢¼ÓÀ» Á¾·áÇϰųª,¾Æ´Ï¸é ´Ù¸¥ °¡»óÅ͹̳Î(X shell-window) ¿¡¼­ ´ÙÀ½°ú °°ÀÌ FTP¿¬°áÀ» ÇÒ ¼ö ÀÖ´Ù. % ftp 198.86.40.81

¼º°øÀûÀÎ(?) ÀÍ¸í¿¬°áÈÄ ´ç½ÅÀº Linux-archive»çÀÌÆ®ÀÎ "sunsite.unc.edu"¶ó´Â°ÍÀ» ¹ß°ßÇÒ °ÍÀÌ´Ù. ¸¸¾à ´ç½ÅÀÌ »ó´çÈ÷ ¸Ö¸® ÀÖ´Ù¸é ´ç½ÅÀº dip+slirpÀÇ Èû¿¡ °¨ÅºÇÒ°ÍÀÌ´Ù. you are on the NET. <= ??

°¡´ÉÇÑ »¡¸® "sunsite"¿¬°áÀ» ÇØÁ¦ÇÑÈÄ "yourhost"·Î µ¹¾Æ¿Â´Ù. ¾Æ¸¶µµ ´ÙÀ½°ú °°Àº Àǹ®ÀÌ »ý±æ°ÍÀÌ´Ù.

°£´ÜÈ÷ "ftp sunsite.unc.edu"¿¡ Á¢¼ÓÇÒ¼ö ¾øÀ»±î? DNS (Domain Name Server) µî·ÏÀ» ÇϱâÀü¿¡´Â ºÒ°¡´ÉÇÏ´Ù. ¸¸¾à Áö±Ý ´çÀå CSLIP¿¬°áÀ» Á¾·áÇÏ°íÀÚ ÇÑ´Ù¸é ·ÎÄÃÇÁ·ÒÇÁÆ®¿¡¼­ ´ÙÀ½°ú °°ÀÌ ÀÔ·ÂÇÏ¸é µÈ´Ù. % dip -k

5.1 DNS ¼³Ä¡Çϱâ (Adding a DNS capability)

ºÐ¸íÈ÷ ´ç½ÅÀÇ ¸®¸ðÆ® ISPµéÀº DNS¼­ºñ½º¸¦ Á¦°øÇÑ´Ù.(±×·¸Áö ¾Ê´Ù¸é ´ç½ÅÀº ¿Ã¹Ù¸¥ ÀÎÅÍ³Ý ¿¬°áÀ» ÇÒ¼ö ¾øÀ» °ÍÀÌ´Ù.) "dip slirp.dip" °ú "telnet 10.0.2.1"À» »ç¿ëÇÏ¿© ´Ù½ÃÇѹø ¸®¸ðÆ®¼­¹ö¿¡ Á¢¼ÓÇÑÈÄ "/etc/resolv.conf" È­ÀÏÀ» Àд´Ù. ´ç½ÅÀº ´ÙÀ½°ú °°Àº ¸î°³ÀÇ ÁÙµéÀ» º¼¼öÀÖÀ» °ÍÀÌ´Ù.

nameserver <IP-address>

¿©±â¼­ <IP-address>´Â Ưº°ÇÑ °ªÀÌ´Ù.(¼­¹ö¸¶´Ù Ʋ¸±¼ö ÀÖ´Ù. ÀÌ·¯ÇÑ ÁÙµéÁß¿¡ Àû¾îµµ ÇÑ°³ÀÌ»óÀ» ´ç½ÅÀÇ ·ÎÄ® ¸®´ª½º¹Ú½ºÀÇ "/etc/resolv.conf" ¿¡ Àû¾îÁØ´Ù. ÀÌÁ¦ ·ÎÄà ½Ã½ºÅÛÀ¸·Î µ¹¾Æ¿Í¼­ (dip+slirp ¿¬°áÀº À¯ÁöÇÑä),DNS°¡ ÀÛµ¿ÇÏ´ÂÁö ½Ã ÇèÇØ º»´Ù. % dnsquery sunsite.unc.edu À§¿Í °°ÀÌ ÀÔ·ÂÇßÀ»°æ¿ì ¼±»çÀÌÆ®ÀÇ IPÁÖ¼Ò°¡ Ãâ·ÂµÈ´Ù¸é ´ç½ÅÀÇ DNS¼­ºñ½º´Â ÀÛµ¿ ÁßÀÌ´Ù.ÀÌÁ¦ ´ç½ÅÀº "lynx","mosaic","netscape"°°Àº À¯Æ¿¸®Æ¼¸¦ ´ç½ÅÀÇ ¸®´ª½º¹Ú½º¿¡ ¼­ ¹Ù·Î ½ÇÇà½Ãų¼ö ÀÖ´Ù.

6. ¼Ò °ß

ÀÌ ¹®¼­´Â Áöħ¼­À̶ó±â º¸´Ù ±âº»ÀûÀÎ dip+slirpÀ» Á¤¸®ÇسõÀº °£´ÜÇÑ ¹®¼­ÀÌ´Ù. ¸ñÀûÀº ¾ÕÀ¸·Î CSLIPÀ» »ç¿ëÇÏ°íÀÚ ÇÏ´Â »ç¿ëÀÚµéÀ» µ½±â À§Çؼ­ÀÌ´Ù.µû¶ó¼­ À§ÀÇ ±ÛÁß¿¡¼­ ¾à°£ÀÇ ¹ö±×¶óµµ ¹ß°ßµÈ´Ù¸é ³ª¿¡°Ô ¾Ë·ÁÁÖ±æ ¹Ù¶õ´Ù.½Ã°£ÀÌ Áö³ªµÚ ¹Ì´Ï ÇÏ¿ìÅõ¿¡ À̱ÛÀ» ¿Å±æ °ÍÀÌ´Ù.(??) ½Ã°£ÀÌ Áö³­µÚ (?) ³ªÀÇ ´ÙÀ½ÀÇ ftpµð·ºÅ丮¿¡¼­ ¹ß°ßÇÒ¼ö ÀÖ´Ù. ftp.netcom.com:/pub/ze/zenon/linux/DipSlirpCSLIP/ ³ª´Â ÈǸ¢ÇÑ À¯Æ¿¸®Æ¼µéÀÎ "dip" °ú "slip" Á¦ÀÛÀÚµéÇÑÅ× °¨»çµå¸°´Ù.(want to??) I am impressed and grateful.(<= °¨¸í¹Þ¾ÒÀ¸¸ç Áñ°Ì´Ù?? ^^;)

Á¦ÀÛÀÚ:Zenon Fortuna ( zenon@netcom.com) ¹ø¿ªÀÚ:±è±¤Âù (nownuriID:±øÅëµû°Ô, can@nownuri.nowcom.co.kr)


ID
Password
Join
With clothes the new are best, with friends the old are best.


sponsored by andamiro
sponsored by cdnetworks
sponsored by HP

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2003-08-10 11:52:29
Processing time 0.0028 sec