Linux °æ (¾«»ªÇø)
·¢ÐÅÈË: clx (³þÁôÏã), ÐÅÇø: Unix
±ê Ìâ: PPP HOWTO ÖÐÒë°æ(07)
·¢ÐÅÕ¾: ×Ï ¶¡ Ïã (Sat Jun 27 16:58:31 1998), תÐÅ
PPP HOWTO ÖÐÒë°æ : ½« PPP É趨Ϊ¿Í»§¶ËµÄ¹¤×÷¸ÅÒª
Previous: ÆäËüÓÐÓõģ¯ÖØÒªµÄÎļþ
Next: ÅäÖÃÄãµÄ Linux ºËÐÄ
6. ½« PPP É趨Ϊ¿Í»§¶ËµÄ¹¤×÷¸ÅÒª
Õâ·ÝÎļþ°üº¬ÁËÐí¶à×ÊѶ - ¶øÇÒÿ´Î¸Ä°æÓÖ²»¶ÏÔö¼Ó!
Òò´Ë£¬±¾½ÚµÄÄ¿µÄÔÚì¶Ìṩһ¼ò¶ÌµÄ¸ÅҪ˵Ã÷Òª½«ÄãµÄ Linux ϵͳ
×÷Ϊ¿Í»§¶ËÁ¬½Óµ½ PPP ËÅ·þÆ÷ËùÐèµÄ¹¤×÷£®
6.1. È¡µÃ/°²×°ÈíÌå
Èç¹ûÄãµÄ Linux Ì×¼þ²¢Î´°üº¬ PPP ÈíÌ壬Äã¿É´Ó´ËÈ¡µÃ: the
Linux PPP daemon.
ÕâÊDZ¾Îļþ׫дµÄʱºò×îÐÂÕýʽ°æ±¾£®È»¶ø£¬¾¡Á¿´Ó¸ÃվȡµÄ×îÐÂ
µÄ°æ±¾(±¾Îļþ׫дʱ ppp-2.3 ÉÐÔÚ beta ½×¶Î¶øÇÒÓ¦¸ÃºÜ¿ì»á·¢
ÐÐ)£®
Õâ·Ý PPP Ì×¼þ°üº¬ÁËÈçºÎ±àÒë¼°°²×°ËùÐèµÄÖ¸Òý£¬Òò´Ë±¾ÎIJ¢²»°ü
º¬´Ë²¿·Ý!
6.2. ±àÒëºËÐļÓÈë PPP Ö§Ô®
Linux µÄ PPP ÔË×÷°üº¬Á½²¿·Ý
ÉÏÃæÌáµ½µÄ PPP daemon
PPP µÄºËÐÄÖ§Ô®
Ðí¶àÌ×¼þËƺõÔÚËüÃÇÔ¤ÉèµÄ°²×°ºËÐÄÖÐÌṩ PPP µÄÖ§Ô®£¬µ«ÆäâÅÔò
·ñ£®
Èç¹ûÔÚÆô¶¯Ê±ºËÐı¨¸æÕâÑùµÄѶϢ
PPP Dynamic channel allocation code copyright 1995 Caldera, Inc.
PPP line discipline registered.
ÄãµÄºËÐÄÒѱàÒë PPP Ö§Ô®ÔÚÄÚ£®
ÄǾÍÊÇ˵£¬²»ÂÛÄãʹÓÃʲ÷áÌ×¼þÄã¿ÉÄÜÏ£Íû×ÔÐбàÒëºËÐÄÒÔÔÚÄãµÄ
Ìض¨Ó²ÌåÅäÖÃ֮ϵõ½×îÓÐЧµÄϵͳ×ÊÔ´ÀûÓã® Çë¼ÇסºËÐIJ»Äܱ»
Öû»³ö¼ÇÒäÌåÒò´Ë¾¡Á¿ÈúËÐı£³Ö×îСÔÚ¼ÇÒäÌåÓÐÏ޵ĻúÆ÷ÉÏÏ൱
ÓÐÓã®
±¾ÎļþÔÚ ÅäÖÃÄãµÄ Linux ºËÐÄ Ò»½ÚÌṩÁËÖØбàÒëºËÐĵÄ×îÉÙ˵
Ã÷£®
ϸ½Ú²¿·ÝÇë²ÎÔÄ The Linux Kernel HOWTO£®
6.3. ´ÓÄãµÄ ISP È¡µÃ×ÊѶ
¼¸ºõÓÐÎÞÊýÖÖÉ趨 PPP ËÅ·þÆ÷µÄ·½·¨£® ΪÁËÁ¬ÉÏÄãµÄ ISP, Äã±Ø
ÐëÈ¡µÃ PPP ËÅ·þÆ÷ÈçºÎÔË×÷µÄ×ÊѶ£®
ÒòΪÄãÓõÄÊÇ Linux, ÔÚһЩ½öÖªµÀ MS Windows ¿Í»§¶ËµÄ ISP ÚÑ
ѯ²¿ÃÅ¿ÉÄÜ»áÔâÓöÀ§ÄÑ£®
È»¶ø£¬ÓúÀ´Óú¶àµÄ ISP ʹÓà Linux Ìṩ·þÎñ - ¶øÇÒ Linux Ò²Éø
È빫˾»·¾³£¬Èç¹ûÄãÕæµÄÓöµ½ÎÊÌâÄãÒ²¿ÉÄÜ»áºÜÐÒÔË£®
È¡µÃÄãËùÐèµÄ PPP ËÅ·þÆ÷×ÊѶ Ò»½Ú¸æËßÄãÐèÒªÖªµÀÄãÁ¬½ÓµÄ PPP
ËÅ·þÆ÷µÄʲ÷á×ÊѶ - ÒÔ¼°ÈçºÎÕÒ³öÕâЩ×ÊѶ£®
6.4. É趨ÄãµÄÊý¾Ý»ú¼°´®Áвº
ΪÁËÁ¬ÉÏ PPP ËÅ·þÆ÷²¢È¡µÃ×î¼ÑµÄ×ÊÁÏ´«ÊäËÙÂÊ£¬ÄãµÄÊý¾Ý»ú±ØÐë
É趨ÕýÈ·£®
ͬÑùµØ£¬Á¬½ÓÊý¾Ý»ú¼°µçÄԵĴ®ÁвºÒ²±ØÐëÕýÈ·µØÉ趨£®
É趨ÄãµÄÊý¾Ý»ú¼°´®Áвº Ò»½ÚÌṩÕâ·½ÃæµÄ×ÊѶ£®
6.5. ½¨Á¢Ãû³Æµ½Î»Ö·½âÎö(DNS)
³ýÁËÖ´ÐÐ PPP ¼°×Ô¶¯Ç©Èë PPP ËÅ·þÆ÷µÄµµ°¸Ö®Í⣬»¹ÓÐһЩÎÄ×Ö
ÅäÖõµ°¸±ØÐëÉ趨£¬ ÒÔ±ãÈÃÄãµÄµçÄÔÄܽ«ÏñÕâÑùµÄÃû³Æ
www.interweft.com.au ½âÎöΪ IP λַÒÔ±ãÕæÕýÓëÄÇ̨µçÄÔÁ¬Ïߣ® Õâ
Щµµ°¸ÊÇ:-
/etc/resolv.conf
/etc/host.conf
½¨Á¢Ãû³Æµ½Î»Ö·½âÎö Ò»½ÚÌṩÕâ·½ÃæµÄÉ趨ϸ½Ú£®
ÌرðµØ£¬Äã²¢²»ÐèÒªÔÚÄãµÄ Linux PC ÉÏÖ´ÐÐÃû³ÆËÅ·þÆ÷ÒÔÁ¬½Óµ½Í
ø¼ÊÍø·ÉÏ(ËäÈ»»òÐíÄã»áÏëÕâ÷á×ö)£® ÄãËùÐèµÄÖ»ÊÇÖªµÀÖÁÉÙÒ»²¿
ÄãÄÜʹÓõÄÃû³ÆËÅ·þÆ÷ IP λַ(×îºÃÊÇÄãµÄ ISP ËùÌṩµÄ)£®
6.6. PPP Óë root ȨÏÞ
ÒòΪÔÚÄãµÄ Linux µçÄÔÓëÁíÒ»¸ö PPP ËÅ·þÆ÷½¨Á¢Á¬½áÐèÒª²Ù×÷Íø
·½çÃæ(PPP ½çÃæÊÇÒ»¸öÍø·½çÃæ)ÓëºËÐĵÄ·ÓÉ±í£¬pppd ÐèҪʹÓÃ
root µÄȨÏÞ£®
ϸ½Ú²¿·Ý£¬²ÎÔÄ Ê¹Óà PPP Óë root ȨÏÞ Ò»½Ú£®
6.7. ¼ì²éÄãµÄ PPP Ì×¼þµµ°¸¼°É趨 PPP Ñ¡Ïî
Óкü¸¸öÅäÖü°²¦ºÅµµ°¸ÐèÒª½¨Á¢ÒÔ±ãÈà PPP ÔË×÷£®ÔÚ PPP Ì×¼þ
ÖÐÓÐһЩ¡õÀý£¬¶ø±¾½Ú¸æËßÄãÓ¦ÓеÄÕâЩµµ°¸ÊÇʲ÷á:-
/etc/ppp/options
/etc/ppp/scripts/ppp-on
/etc/ppp/scripts/ppp-on-dialer
/etc/ppp/options.tpl
¿´ÄãÏëÓà PPP ´ïµ½µÄÄ¿±êÊÇʲ÷áÄã¿ÉÄÜÐèҪһЩ¶îÍâµÄµµ°¸:-
/etc/ppp/options.ttyXX
/etc/ppp/ip-up
/etc/ppp/pap-secrets
/etc/ppp/chap-secrets
³ý´ËÖ®Í⣬PPP daemon ÓдóÁ¿µÄÏßÉÏÑ¡ÏÕýÈ·µØʹÓÃÊǺÜÖØÒª
µÄ; Òò´Ë±¾½Ú´øÄã¿´ÕâЩ±ê×¼ PPP Ñ¡Ïî²¢°ïÖúÄãÑ¡ÔñÄãӦʹÓõÄÑ¡
Ï
ϸ½Ú²¿·Ý£¬Çë²ÎÔÄ É趨 PPP Á¬½Óµµ°¸ Ò»½Ú£®
6.8. Èç¹ûÄãµÄ PPP ËÅ·þÆ÷ʹÓà PAP ÈÏÖ¤(Password
Authentication Protocol)
Ðí¶à ISP ÉèÁ¢ PPP ËÅ·þÆ÷ʹÓà PAP ÈÏÖ¤£®Èç¹ûÄãµÄËÅ·þÆ÷²¢²»Ê¹
Óà PAP (Èç¹ûÄã¿ÉÒÔÓÃÊÖ¶¯Ç©Èë²¢ÊÕµ½±ê×¼µÄʹÓÃÕßÃû³Æ/ÃÜÂëÌáʾ
·ûºÅÄÇ÷áËü²¢Î´Ê¹Óà PAP)£¬ÄÇ÷áÄã¿ÉÒÔÌø¹ý´Ë½Ú£®
È¡´úÔÚ½øÈëËÅ·þÆ÷ʱ³öÏÖÌáʾ·ûºÅÊäÈëʹÓÃÕßÃû³Æ¼°ÃÜÂëµÄÊÇ£¬Ê¹
Óà PAP µÄ PPP ËÅ·þÆ÷²¢²»ÐèÒªÎÄ×ÖģʽµÄÇ©È뷽ʽ£®
ʹÓÃÕßÈÏÖ¤ÊÇÁ¬½Ó¿ØÖÆж¨(link control protocol, LCP)µÄÒ»²¿
·Ý£¬ÔÚ½¨Á¢ PPP Á¬ÏßÖ®³õÆÚ½»»»µÄ×ÊѶ£®
Èç¹ûÄãµÄ PPP ËÅ·þÆ÷ʹÓà PAP ÈÏÖ¤(Password Authentication
Protocol) Ò»½ÚÌṩÄãʹÓà PAP ½¨Á¢ PPP Á¬½áËùÐèµµ°¸µÄ×ÊѶ£®
6.9. ÒÔÊÖ¶¯·½Ê½Á¬½ÓÖÁ PPP ËÅ·þÆ÷
ÒѾ½¨Á¢Íê»ù±¾µÄµµ°¸Ö®áᣬ͸¹ýÊÖ¶¯(ʹÓà minicom »ò seyon)µÄ
·½Ê½Á¬½Ó¼°Æô¶¯Äã Linux PC µÄ pppd À´²âÊÔÊǸö²»´íµÄÖ÷Ò⣮
²Î¼û ÒÔÊÖ¶¯·½Ê½½¨Á¢ PPP Á¬½á ˵Ã÷É趨µÄϸ½Ú²¿·Ý£®
6.10. ʹÄãµÄ PPP Á¬½á×Ô¶¯»¯
Ò»µ©Äã³É¹¦µØÓÃÊÖ¶¯·½Ê½Ç©È룬Äã¿ÉÒÔÊÔÖø½¨Á¢Ò»Ö¸Áî¸åÒÔ×Ô¶¯½¨
Á¢´ËÁ¬½á£®
ʹÄãµÄÁ¬½á×Ô¶¯»¯ - ´´ÔìÁ¬½áÖ¸Áî¸å Ò»½Ú°üº¬Á˽¨Á¢ËùÐèµÄÖ¸Áî
¸å£¬ÒÔ¼°Ï൱¶àµÄ×¢ÒâÁ¦¼¯ÖÐÔÚ chat ÃüÁîì¶ PPP ËÅ·þÆ÷µÄÇ©Èë¹ý
³Ì£®
Õâ½ÚÒ²ÌÖÂÛÁËʹÓÃÖ¸Áî¸åì¶ PAP/CHAP ÈÏÖ¤µÄËÅ·þÆ÷ÉÏ£®
6.11. ½áÊøÁ¬½á
Ò»µ©ÄãµÄÁ¬½áÄܹ»½¨Á¢²¢Õý³£Õý×÷£¬Äã±ØÐèÄܹ»½áÊøÁ¬½á£®
ÕâÔÚ ½áÊø PPP Á¬½á Ò»½Ú˵Ã÷£®
6.12. Èç¹ûÄãÔâÓöÎÊÌâ
Ðí¶àÈËÎÞ·¨Èà PPP Õý³£µØ¹¤×÷£®PPP ËÅ·þÆ÷µÄÖÖÀàÒÔ¼°ºÍËüÃǽ¨Á¢
Á¬Ïߵķ½·¨Óзdz£¶àÖÖ£® ÀàËƵأ¬PPP ÓÐÐí¶àµÄÑ¡Ïî - ¶øÓÐЩѡ
ÏîÊDz»ÄÜÒ»ÆðÓõģ®
³ýÁËÇ©Èë²¢Æðʼ PPP ·þÎñµÄÎÊÌâÖ®Í⣬Êý¾Ý»ú±¾Éí¼°µç»°Ïß·Ҳ¿É
ÄÜ»áÓÐÎÊÌ⣮
½â¾öÎÊÌâ Ò»½ÚÌṩһ°ã´íÎóµÄ»ù±¾×ÊѶ£¬ÒÔ¼°ÈçºÎ·ÖÀë²¢½â¾öµÄ·½
·¨£®
ÕâÀïÌṩµÄ²»¹ýÊÇ»ù±¾µÄ×ÊѶ£®Al Longyear Ëùά»¤µÄ PPP-FAQ °ü
º¬Á˸ü¶àÕâÒ»·½ÃæµÄ×ÊѶ!
6.13. ½¨Á¢Á¬½áÖ®áá
Ò»µ© PPP Á¬½á¿ÉÒÔÔË×÷ÁË(ÌرðµØ£¬Ò»µ© IP ²ã¿ÉÒÔÔË×÷)£¬Linux
µÄ PPP ¿ÉÒÔ×Ô¶¯Ö´ÐÐ(ÒÔ root Éí·Ý)Ò»Ö¸Áî¸åÍê³ÉÈκÎÄãÏë´ï³ÉµÄ
¹¦ÄÜ£®
½¨Á¢Á¬½áÖ®áá Ò»½ÚÌṩ /etc/ppp/ip-up Ö¸Áî¸åµÄ×ÊѶ£¬ ËüÈçºÎ½ÓÊÕ
PPP ´«À´µÄ²ÎÊýÒÔ¼°ÈçºÎÀûÓÃËüÀ´×öһЩÏñ×Ô ISP È¡»ØÄãµÄµç×ÓÓÊ
¼þ£¬ ËͳöÔÚÄã»úÆ÷ØùÁÐÖдæ·ÅµÄÓʼþµÈµÈ¹¤×÷£®
6.14. ¶¯Ì¬ IP Á¬½ÓÌṩ±ê×¼ IP ·þÎñµÄÎÊÌâ
¾ÍÏñÔÚ¼ò½éÒ»½ÚÀïÖ¸³öµÄ£¬¶¯Ì¬ IP ºÅÂëÓ°ÏìÄãµÄ Linux PC ×÷Ϊ
Íø¼ÊÍø·ËÅ·þÆ÷µÄÄÜÁ¦£®
¶¯Ì¬ IP Á¬½ÓÌṩ±ê×¼ IP ·þÎñµÄÎÊÌâ Ò»½ÚÌṩ(Ö÷Òª)ÊÜÓ°ÏìµÄ·þ
ÎñÒÔ¼°ÄãËùÄÜ×ö(Èç¹ûÓеĻ°)µÄ¿Ë·þ°ì·¨£®
PPP HOWTO ÖÐÒë°æ : ½« PPP É趨Ϊ¿Í»§¶ËµÄ¹¤×÷¸ÅÒª
Previous: ÆäËüÓÐÓõģ¯ÖØÒªµÄÎļþ
Next: ÅäÖÃÄãµÄ Linux ºËÐÄ
--
¡ù À´Ô´:£®×Ï ¶¡ Ïã bbs.hit.edu.cn£®[FROM: 202.118.244.16]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
Ò³ÃæÖ´ÐÐʱ¼ä£º2.454ºÁÃë