Linuxdoc Sgml/Dip+SLiRP+CSLIP
<!doctype linuxdoc system>
<article>
<title> Linux Dip+SLiRP+CSLIP mini-HOWTO
<author>Zenon Fortuna (<url url="mailto:zenon@netcom.com" name="zenon@netcom.com" >)
<date>Version: 1.0 October 15th '95
<trans>¹ø¿ªÀÚ: ±è±¤Âù (nownuriID:±øÅëµû°Ô,<url url="mailto:can@nownuri.nowcom.co.kr" name="can@nownuri.nowcom.co.kr" >)
<tdate>¹ø¿ªÀÏÀÚ: 1996³â 12¿ù 25ÀÏ Å©¸®½º¸¶½º¿¡..
<toc>
<sect>"Dip+SLiRP+CSLIP mini-HOWTO" ¸¸µçÀÌÀ¯<p>
ÀÌ ¹®¼´Â ´ÜÁö °èÁ¤¿¡¼ SLIP-ÀÎÅÍ³Ý ¿¬°á¿¡ »ç¿ëµÇ´Â À¯¿ëÇÑ ½©-À» ÀνºÅç Çϰí
½ÍÁö¸¸ NET-2-HOWTOÀÇ ¸ðµç ³»¿ë°ú Dip/SLiRP¹®¼¸¦ Àб⠿øÄ¡ ¾Ê´Â »ç¿ëÀÚ¸¦ À§ÇÑ
°ÍÀÌ´Ù.À§¿¡ ¾ð±ÞÇß´ø ¹®¼µéÀº Á»´õ ÀÚ¼¼ÇÏÁö¸¸ ¿©·¯ºÐÀÇ ¸Ó¸®¸¦ ¹«Ã´À̳ª ¾ÆÇÁ°Ô
ÇÒ°ÍÀÌ´Ù.:)
dip337n-uri¿Í slirp-0.95h ÆÐŰÁöµéÀÌ º» Å×½ºÆ®¿¡ »ç¿ëµÇ¾ú´Ù.ÀÌ Å×½ºÆ®´Â ½½·º
2.2.0ÀÌ ÀνºÅçµÈ »óÅ¿¡¼,Ä¿³Î1.2.13ÀÇ ¾ÈÁ¤µÈ ¸®´ª½º¿¡¼ ÇàÇØÁ³´Ù.(È®ÀεƴÙ?)
</p>
<sect>¹®¼Á¤º¸(History of changes)
<p>
1995³â 10¿ù 15ÀÏ ÇöÀç ¹öÁ¯:1.0
ÀÌ ¹®¼´Â ÃÖÃÊ ÀÛ¼ºµÈ ¹®¼ÀÓ
</p>
<sect>µé¾î°¡±âÀü¿¡ (Short description)<p>
<itemize>
<item> ³ª´Â ´ç½ÅÀÇ ¸®´ª½º¹Ú½º(¸®´ª½º½Ã½ºÅÛ)°¡ °èÁ¤(shell-account)¸¦ °¡Áö°í ÀÖ´Â ISP
(ÀÎÅÍ³Ý ¼ºñ½º Á¦°ø¾÷ü)ÀÇ ¼¹ö¿¡ ÀüÈÁ¢¼ÓÀÌ °¡´ÉÇÏ´Ù´Â°É ÀüÁ¦ÇÑ´Ù.ÀÌ ¼¹ö¿¡
¿ì¸®´Â "SLiRP"À¯Æ¿¸®Æ¼¸¦ ¼³Ä¡ÇÒ °ÍÀÌ´Ù.
<item> ¿ì¸®´Â ¼¹ö(remote-server)¿¡ ÀüÈÁ¢¼ÓÀ» À§Çؼ Ưº°ÇÑ ½ºÅ©¸³Æ®¿Í ÇÔ²² ¸®´ª½º
¹Ú½º¿¡¼ "dip"À¯Æ¿¸®Æ¼¸¦ ÁغñÇϰí, ¼¹ö¿¡¼ "SLiRP"¸¦ ½ÃÀÛÇÒ °ÍÀÌ´Ù.
<item> "dip"Àº ½Ã¸®¾ó ¶óÀÎ º¯¼ö Á¶°ÇÀ¸·Î ½ÇÇàµÉ °ÍÀ̸ç,¼¹öÀÇ "SLiRP"¿¡ ÀÇÇØ ¼³Á¤µÇ
¾îÁø IP mappingÀ» ¸®´ª½º¹Ú½º¿¡ ¾Ë·ÁÁÙ °ÍÀÌ´Ù.
<item> 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.(¿ªÀÚ:ªÀº ¿µ¾î ½Ç·Â´öÀ¸·Î ÇØ¼®À» ¸øÇÑÁ¡ ÀÌÇØ¹Ù¶÷ :<)
</itemize>
* ¿ì¸®´Â ÀÎÅÍ³Ý ¸®¼Ò½ºµé·ÎºÎÅÍ ¸®´ª½º ½Ã½ºÅÛÀÇ TCP/IP¿¬°áÀ» ¾òÀ»¼ö
ÀÖ´Ù.
* Miracle happens: we will get a TCP/IP connection of the Linux system *
* to the Internet resources. *
</p>
<sect> ¼³Á¤´Ü°è
<sect1>SLiRP ÀνºÅçÇϱâ
<p>
<itemize>
<item> slirp-0.95h.tar.gz ¿Í °°ÀÌ ¹èÆ÷µÇ´Â SLiRPÇÁ·Î±×·¥À» ±¸Çؼ,¸®¸ðÆ® È£½ºÆ®(Àü
ÈÁ¢¼ÓÀ» ÇÒ ½Ã½ºÅÛ)¿¡¼ "slirp"ÇÁ·Î±×·¥À» ÄÄÆÄÀÏ ÇÑ´Ù.
SLiRPÀÇ docs/README.compiling ¿¡ ÀÚ¼¼ÇÑ ¼³¸íÀÌ µÇÀÖ´Ù.
<item> ÄÄÆÄÀÏ ´ë½Å¿¡ <url url="ftp://ibc.wustl.edu/pub/slirp_bin/USE_AT_OWN_RISK/" name="ibc.wustl.edu/pub/slirp_bin/USE_AT_OWN_RISK/" > ¿¡¼ ¹Ì¸® ÄÄ
ÆÄÀÏµÈ ¹ÙÀ̳ʸ® ÈÀϰú,Alt.dcom.slip-emulators FAQ ¼³¸í¹× ¹®¼µéÀ» ±¸ÇÒ¼ö
ÀÖ´Ù.(¿ªÀÚ: ³»°¡ ¾Ë¾Æº» °á°ú À̰÷¿¡´Â ¾Æ¹«°Íµµ µé¾îÀÖÁö ¾Ê¾Ò´Ù.´ÜÁö HTML¸¸
´Þ¶ûÀÖ¾úÀ» »ÓÀÌ¿´´Ù.¼±»çÀÌÆ®¿¡ °¡´Â°Ô ´õ ºü¸¦µí)
<item> "slirp"ÈÀÏÀ» Á»´õ ÁÁÀº ÀÚ¸®,"./bin/slirp" ³ª "./slirp"($HOME µð·ºÅ丮¿¡¼)
¿¡ ¿Å±ä´Ù.
<item> $HOME µð·ºÅ丮¿¡ ".slirp"ÈÀÏÀ» ¸¸µç´Ù.´ÙÀ½°ú °°Àº °£´ÜÇÑ ¸í·É¾î¸¦ ³Ö´Â´Ù.
</itemize>
#### .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"´Â ´ç½ÅÀÇ ¸ðµ© ¿¬°á¿¡ ¾Ë¸ÂÀº ¼Óµµ¸¦ »ç¿ëÇØ¾ßÇÑ´Ù.
</p>
<sect1> SLiRP Å×½ºÆÃÇϱâ
<p>
´ç½ÅÀÇ ¼¹ö(remote system)¿¡ ·Î±äÇÑÈÄ
% bin/slirp (¶Ç´Â "./slirp"¶ó°í ÀÔ·ÂÇÑ´Ù.:ÈÀÏ À§Ä¡¿¡ µû¶ó ´Ù¸£´Ù.)
´ç½ÅÀº ¸¶Áö¸· ÁÙ¿¡ ´ÙÀ½°ú °°Àº ¸Þ½ÃÁö¸¦ ¾ò¾î¾ßÇÑ´Ù.
[talking CSLIP, MTU 1500, MRU 1500, 38400 baud]
"slirp"¸¦ ³¡³»±â À§Çؼ´Â "0"À» õõÈ÷ ´Ù¼¸¹ø ´©¸¥´Ù.(1Ãʺ¸´Ù ÀÛÀº °£°ÝÀ¸·Î)
</p>
<sect1> ´ç½ÅÀÇ ¸®´ª½º¹Ú½º ¼ÂÆÃÇϱâ :)
<p>
±Ùº»ÀûÀ¸·Î,´ç½ÅÀº Ä¿³Î¿¡¼ CSLIP°ú ³×Æ®¿÷ ÀÛµ¿ÀÌ °¡´ÉÇϵµ·Ï ÁغñÇÏ´Â ÇൿÀ»
ÇØ¾ß ÇÑ´Ù.±×·±ÈÄ ´ç½ÅÀº ³×Æ®¿÷ ¼ÂÆÃÀ» ÇØ¾ß ÇÑ´Ù."src/linux"¿¡¼ "make config"
¸¦ ÇÑÈÄ ´ÙÀ½°ú °°Àº °÷¿¡ "y"¸¦ ÇØÁØ´Ù.
<verb>
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]
</verb>
³ª´Â 3c509 Ethernet card¸¦ »ç¿ëÇÑ´Ù.µû¶ó¼ ´ÙÀ½°ú °°Àº ¿É¼ÇÀ» ÷°¡ Çß´Ù.
<verb>
3COM cards (CONFIG_NET_VENDOR_3COM) [y]
3c509/3c579 support (CONFIG_EL3) [y]
</verb>
NFS ¼³Ä¡¸¦ À§ÇØ ´ç½ÅÀº ´ÙÀ½°ú °°ÀÌ Ã·°¡ÇÒ¼ö ÀÖ´Ù.
<verb>
NFS filesystem support (CONFIG_NFS_FS) [y]
</verb>
"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
¸¶Áö¸·À¸·Î ´ç½ÅÀÇ ½Ã½ºÅÛÀ» ¸®ºÎÆÃÇÏ¸é µÈ´Ù.
</p>
<sect1>¸®´ª½º ½Ã½ºÅÛ Å×½ºÆÃÇϱâ<p>
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°ú ÇÔ²² ÀÏÇÒ Áغñ¸¦ °®Ãè´Ù.
</p>
<sect1> DIP ÀνºÅçÇϱâ
<p>
<itemize>
<item> ¾î¼¸é (it may happen),¿©·¯ºÐÀÇ ¸®´ª½º ½Ã½ºÅÛ¿¡´Â "dip" ¹ÙÀ̳ʸ®ÈÀÏÀ»
ÀÌ¹Ì °¡Áö°í ÀÖÀ» °ÍÀÌ´Ù.À̰ÍÀÌ ¸¸¾à 3.3.7n¹öÁ¯À̶ó¸é ÁÁÀ» °ÍÀÌ´Ù.(À̰ÍÀº
Ãֽй®¼·Î ¾÷µ¥ÀÌÆ® µÇÀÖ´Ù.)
<item> ±×·¸Áö ¾Ê´Ù¸é dip337n-uri.tar.gz ¿Í °°Àº(ȤÀº ´õ »óÀ§¹öÁ¯)ÀÇ Dip ¹èÆ÷º»À»
±¸ÇÑÈÄ ¿©·¯ºÐÀÇ ¸®´ª½º ¹Ú½º¿¡¼ ÄÄÆÄÀÏ ÇÑ´Ù.dip-3.3.7n µð·ºÅ丮¿¡¼ ´ÜÁö
"make"¶ó°í ŸÀÌÇÎÇϱ⸸ ÇÏ¸é µÈ´Ù.
<item> /usr/local/bin/dip ¶Ç´Â $HOME/bin/dip °°Àº°÷¿¡ "dip"ÇÁ·Î±×·¥À» ¿Å°Ü³õ´Â´Ù.
<item> Ȩµð·ºÅ丮($HOME)¿¡ "slirp.dip"°ú °°Àº dip½ºÅ©¸³Æ®¸¦ ¸¸µç´Ù.
</itemize>
dip ½ºÅ©¸³Æ® ÈÀÏÀº º¸Åë ±æ¸ç º¹ÀâÇÏ´Ù.dipÀÇ "samples" µð·ºÅ丮¿¡ ¾à°£ÀÇ
¿¹¹®ÀÌ ÀÖ´Ù.(¾Æ¸¶µµ /usr/doc/dip/samples¿¡ ±ò·ÁÀÖÀ» °ÍÀÌ´Ù.)
<code>
¾Æ·¡¿¡ ³ªÀÇ "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
</code>
Âü°í:À§ÀÇ ½ºÅ©¸³Æ®Áß¿¡¼ ´ÙÀ½¿¡ ÇØ´çµÇ´Â »çÇ×Àº ¿©·¯ºÐ¿¡°Ô
¾Ë¸Â°Ô °íÄ¡µµ·Ï ÇÑ´Ù.
- Æ÷Æ® À̸§ (³ª´Â ttyS2¸¦ »ç¿ëÇÑ´Ù.)
- Æ÷Æ® ¼Óµµ (³ª´Â 38400À¸·Î »ç¿ëÇÑ´Ù.)
- ¸ðµ© ÃʱâÈ ¹®ÀÚ (³»°¡ »ç¿ëÇÏ´Â °ÍÀº WorldBlazerÀÌ´Ù.)
- POP's ÀüȹøÈ£ (³»°Í°ú ´Ù¸£±æ ¹Ù¶õ´Ù :)
- ·Î±ä¸í
- ¾ÏÈ£
- ÇÁ·ÒÇÁÆ®(È®½ÇÈ÷ ·Î±äµÇ¾úÀ»¶§)
- "slirp"ÀÇ À§Ä¡ (³»°ÍÀº $HOME/binÀÌ´Ù.)
</p>
<sect1>DIP Å×½ºÆÃÇϱâ<p>
´ç½ÅÀº ´ÙÀ½°ú °°ÀÌ 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"Àº
Ãë¼ÒµÉ °ÍÀ̰í,¸ðµ©¿¬°áµµ Ãë¼ÒµÉ °ÍÀÌ´Ù.
</p>
<sect> ÀϹÝÀûÀÎ ÀÛ¾÷<p>
¤¡. ´ÙÀ½°ú °°ÀÌ 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
</p>
<sect1>DNS ¼³Ä¡Çϱâ (Adding a DNS capability)<p>
ºÐ¸íÈ÷ ´ç½ÅÀÇ ¸®¸ðÆ® ISPµéÀº DNS¼ºñ½º¸¦ Á¦°øÇÑ´Ù.(±×·¸Áö ¾Ê´Ù¸é ´ç½ÅÀº ¿Ã¹Ù¸¥
ÀÎÅÍ³Ý ¿¬°áÀ» ÇÒ¼ö ¾øÀ» °ÍÀÌ´Ù.) "dip slirp.dip" °ú "telnet 10.0.2.1"À» »ç¿ëÇÏ¿©
´Ù½ÃÇѹø ¸®¸ðÆ®¼¹ö¿¡ Á¢¼ÓÇÑÈÄ "/etc/resolv.conf" ÈÀÏÀ» Àд´Ù.
´ç½ÅÀº ´ÙÀ½°ú °°Àº ¸î°³ÀÇ ÁÙµéÀ» º¼¼öÀÖÀ» °ÍÀÌ´Ù.
<bf/nameserver <IP-address>/
¿©±â¼ <IP-address>´Â Ưº°ÇÑ °ªÀÌ´Ù.(¼¹ö¸¶´Ù Ʋ¸±¼ö ÀÖ´Ù.
ÀÌ·¯ÇÑ ÁÙµéÁß¿¡ Àû¾îµµ ÇѰ³ÀÌ»óÀ» ´ç½ÅÀÇ ·ÎÄ® ¸®´ª½º¹Ú½ºÀÇ "/etc/resolv.conf"
¿¡ Àû¾îÁØ´Ù.
ÀÌÁ¦ ·ÎÄà ½Ã½ºÅÛÀ¸·Î µ¹¾Æ¿Í¼ (dip+slirp ¿¬°áÀº À¯ÁöÇÑä),DNS°¡ ÀÛµ¿ÇÏ´ÂÁö ½Ã
ÇèÇØ º»´Ù.
<bf/% dnsquery sunsite.unc.edu/
À§¿Í °°ÀÌ ÀÔ·ÂÇßÀ»°æ¿ì ¼±»çÀÌÆ®ÀÇ IPÁÖ¼Ò°¡ Ãâ·ÂµÈ´Ù¸é ´ç½ÅÀÇ DNS¼ºñ½º´Â ÀÛµ¿
ÁßÀÌ´Ù.ÀÌÁ¦ ´ç½ÅÀº "lynx","mosaic","netscape"°°Àº À¯Æ¿¸®Æ¼¸¦ ´ç½ÅÀÇ ¸®´ª½º¹Ú½º¿¡
¼ ¹Ù·Î ½ÇÇà½Ãų¼ö ÀÖ´Ù.
</p>
<sect> ¼Ò °ß<p>
ÀÌ ¹®¼´Â Áöħ¼À̶ó±â º¸´Ù ±âº»ÀûÀÎ dip+slirpÀ» Á¤¸®ÇسõÀº °£´ÜÇÑ ¹®¼ÀÌ´Ù.
¸ñÀûÀº ¾ÕÀ¸·Î CSLIPÀ» »ç¿ëÇϰíÀÚ ÇÏ´Â »ç¿ëÀÚµéÀ» µ½±â À§ÇؼÀÌ´Ù.µû¶ó¼ À§ÀÇ
±ÛÁß¿¡¼ ¾à°£ÀÇ ¹ö±×¶óµµ ¹ß°ßµÈ´Ù¸é ³ª¿¡°Ô ¾Ë·ÁÁÖ±æ ¹Ù¶õ´Ù.½Ã°£ÀÌ Áö³ªµÚ ¹Ì´Ï
ÇÏ¿ìÅõ¿¡ À̱ÛÀ» ¿Å±æ °ÍÀÌ´Ù.(??) ½Ã°£ÀÌ Áö³µÚ (?) ³ªÀÇ ´ÙÀ½ÀÇ ftpµð·ºÅ丮¿¡¼
¹ß°ßÇÒ¼ö ÀÖ´Ù.
<url url="ftp://ftp.netcom.com:/pub/ze/zenon/linux/DipSlirpCSLIP/" name="ftp.netcom.com:/pub/ze/zenon/linux/DipSlirpCSLIP/" >
³ª´Â ÈǸ¢ÇÑ À¯Æ¿¸®Æ¼µéÀÎ "dip" °ú "slip" Á¦ÀÛÀÚµéÇÑÅ× °¨»çµå¸°´Ù.(want to??)
I am impressed and grateful.(<= °¨¸í¹Þ¾ÒÀ¸¸ç Áñ°Ì´Ù?? ^^;)
Á¦ÀÛÀÚ:Zenon Fortuna (<url url="mailto:zenon@netcom.com" name="zenon@netcom.com" >)
¹ø¿ªÀÚ:±è±¤Âù (nownuriID:±øÅëµû°Ô,<url url="mailto:can@nownuri.nowcom.co.kr" name="can@nownuri.nowcom.co.kr" >)
</p>
</article>
|
Good fortune in love, as well as a better position. |











