µ±Ç°Î»ÖãºLinux½Ì³Ì - Linux - ÖÐСÆóÒµ·þÎñÆ÷ÅäÖ÷½°¸(Modem²¦ºÅ)

ÖÐСÆóÒµ·þÎñÆ÷ÅäÖ÷½°¸(Modem²¦ºÅ)



        
    ÌÀº£¾© (Ͷ¸å)

    µÚÁù½Ú Modem²¦ºÅ
    & 6.1 ¼ò½é
    Ê×ÏÈÏò´ó¼ÒÇ¿µ÷Ò»µã£¬ÎÒÃÇÕâÀïËù̸µÄPPP²»ÊÇÒª½«ÎÒÃǵķþÎñÆ÷ÅäÖóÉΪÌṩ²¦Èë·þÎñµÄ·þÎñÆ÷£¬¶øÊÇÓû§¿ÉÒÔͨ¹ý·þÎñÆ÷²¦ºÅÉÏÍø£¬¼ò¶øÑÔÖ®¾ÍÊÇ£¬·þÎñÆ÷¿ÉÒÔ°´ÕÕ¿Í»§µÄÐèÇó×Ô¶¯²¦ºÅÉÏÍø£¬Ò²¾ÍÊÇËùνµÄ°´Ð貦ºÅ¡£
    ΪʲôÎÒÃÇÒªÏò´ó¼Ò½éÉÜÕâÏîÅäÖÃÄØ£¿ÒòΪËäÈ»ÏÖÔÚÐí¶àÆóÒµ¶¼ÓÃDDNÉÏÍø£¬µ«ÊÇModemÔںܴó³Ì¶ÈÉÏ»¹ÊÇÓÐËüµÄ×÷Óõģ¬ËùÒÔÎÒÃǽ«Ïò´ó¼Ò½éÉÜÒ»ÏÂÈçºÎʵÏÖPPP×Ô¶¯²¦ºÅÉÏÍø¡£

    & 6.2 ËùÐè×ÊÔ´
    &6.2.1 ËùÐè°ü
    ppp-2.3.11-4.i386.rpm
    &6.2.2 ËùÐèÅäÖÃÎļþ
    /etc/ppp/options
    /etc/ppp/modemdial ϵͳûÓУ¬¹ÜÀíÔ±´´½¨
    /etc/ppp/pap-secrets
    /root/dial
    &6.2.3 Ïà¹Ø¹¤¾ß
    /usr/sbin/pppstats
    & 6.3 ÅäÖ÷½°¸
    1./etc/ppp/options
    ˵Ã÷£ºPPP¿ÉÑ¡ÅäÖÃÏî
    Ô´Îļþ£º
    demand # Æô¶¯°´Ð貦ºÅģʽ
    modem # ʹÓÃmodem¿ØÖÆÏß
    lock # ´ò¿ªÉ豸Ëø
    crtscts # Çå³ý·¢ËÍ
    defaultroute # ʹÓÃĬÈÏ·ÓÉ
    asyncmap 0 # ÉèÖÃÒì²½map=0
    ipcp-accept-local
    ipcp-accept-remote
    ipcp-max-configure 5
    ipcp-restart 1
    mtu 552 # ÉèÖÃ×î´ó´«Ê䵥λ
    mru 552 # ÉèÖÃ×î´ó½ÓÊܵ¥Î»
    name 169 # ÉèÖÃÓû§Ãû£¬Óëpap-secrets¶ÔÓ¦
    usepeerdns # ×Ô¶¯×¥È¡ISPµÄDNS
    2./etc/ppp/modemdial
    ˵Ã÷£ºModem²¦ºÅÖ¸ÁîÎļþ
    Ô´Îļþ£º
    "" ATZ # ³õʼ»¯É豸
    OK ATDT169 # ²¦ºÅ
    CONNECT "" # ÎÕÊÖÁ¬½Ó
    3./etc/ppp/pap-secrets
    ˵Ã÷£ºPAPģʽ¿ÚÁî¼ÓÃÜÎļþ
    Ô´Îļþ£º
    169 * 169 # Óû§Ãû * ÃÜÂë
    4./root/dial
    ˵Ã÷£ºpppd½ø³ÌÆô¶¯Îļþ
    Ô´Îļþ£º
    killall -9 pppd # ɱµô²ÐÁôpppd½ø³Ì
    /usr/sbin/pppd -d /dev/ttyS0 115200 connect "/usr/sbin/chat
    -t 3 -V -v -f /etc/ppp/modemdial"
    # -dºó¸úÉ豸Ãû³Æ£¬115200ÊÇÁ¬½ÓËÙÂÊ£¬connectºó¸ú²¦ºÅ½Å±¾
    &6.4 ²âÊÔ¼°¹ÜÀí°ì·¨
    &6.4.1 ²âÊÔ·½·¨
    1. ¿ÉÒÔÖ´ÐÐps auxw|grep pppd£¬²é¿´ÊÇ·ñÓÐpppdµÄÊØ»¤½ø³Ì¡£
    &6.4.2 ¹ÜÀí·½·¨
    1. Ö´ÐÐ tail ¨Cf /var/log/message ¿ÉÒԹ۲첦ºÅ¹ý³Ì,µ±Äã¿´µ½ÒѾ­´ÓISP·ÖÅäµ½ÁËIP²¢³É¹¦×¥È¡µ½ÁËDNSÖ®ºó£¬ËµÃ÷²¦ºÅÕýÈ·¡£
    2. Ö´ÐÐ pppstats¿ÉÒÔ¹Û²ìModemµÄ¹¤×÷Çé¿ö¡£
    & 6.5 ÆäËû²Î¿¼×ÊÁÏ
    1. diald:http://home.loonie.net/~eschenk/diald.html)
    2. webppp:(http://www.ajusd.org/~edward/webppp/)
    & 6.6 Ïà¹Ø¼¼ÇÉ
    1. Èç¹ûÔÚ×Ö·û½çÃæÏÂÎÞ·¨²¦ºÅ£¬¿ÉÒÔ¿¼ÂÇ×°¸öXwindows£¬ÓÃÓÃËýµÄ²¦ºÅ
    Æ÷¡£
    & 6.7 С½á
    ÆäʵÕâÒ»Çкܼòµ¥£¬Í¨¹ýÎÒÉÏÃæµÄÐðÊö£¬´ó¼Ò²»ÄÑ·¢ÏÖ£¬ÆäʵËùνµÄ°´Ð貦ºÅ£¬ËüµÄʵÏÖÓ¦¸Ã±»»®·Ö³ÉÁ½¸ö²½Ö裺µÚÒ»£¬ÏȽ«·þÎñÆ÷±¾ÉíÅäÖúã¬ÈÃËü¿ÉÒÔ²¦ºÅÉÏÍø£»µÚ¶þ£¬±àд×Ô¶¯²¦ºÅÅäÖÃÎļþ£¬Ê¹Linux·þÎñÆ÷¾ß±¸×Ô¶¯²¦ºÅµÄÄÜÁ¦¡£Æäʵ£¬´Ó¿Í»§¶Ë×Ô¶¯²¦ºÅÓë´Ó·þÎñÆ÷×Ô¶¯²¦ºÅµÄÔ­ÀíÊÇÒ»ÑùµÄ£¬Ö»ÒªÓÐÏòÍâµÄÇëÇ󣬾ÍÓ¦¸Ã×Ô¶¯Æô¶¯²¦ºÅ½ø³Ì£¬¶ø´Ó¿Í»§»úÀ´µÄÇëÇó£¬×îÖÕ½«Í¨¹ýsendmail£¬squidµÈ´Ó·þÎñÆ÷·¢Ë͵½Internet¡£ËùÒÔÎÒÃÇÖ»ÒªÅäÖú÷þÎñÆ÷ÉϵÄ×Ô¶¯²¦ºÅ£¬Ò²¾ÍÄÜʵÏÖ¿Í»§»úµÄ×Ô¶¯²¦ºÅ¡£
    ·¢²¼ÈË:netbull À´×Ô: