¡¡¡¡µÚÒ»Õ ´úÀí½ÓÈë·þÎñÆ÷
µÚÆß½Ú ISDN²¦ºÅ
7.1 ¼ò ½é
½üÁ½ÄêÀ´£¬ISDNÔÚÎÒ¹úÅ·¢Õ¹ÆðÀ´£¬¸÷Ê¡ÊеĵçÐŲ¿ÃÅÏà¼Ì¿ªÍ¨ISDNÒµÎñ¡£ÓÈÆäÔÚÉϺ£¡¢¹ãÖÝ¡¢¸£ÖÝ¡¢±±¾©µÈµØ£¬ISDNµÄ·¢Õ¹Ç÷ÊƸüÊÇÊƲ»¿Éµ²¡£¾ÍÉϺ£À´Ëµ£¬µ½½ñÄê5Ô·ݣ¬ISDNÓû§ÒÑ´ï32£¬000¡£ISDNƾ½èÆäÁ¬½ÓËٶȿ졢´«ÊäÖÊÁ¿¸ßµÈÓÅÊÆÕýÎüÒý×ÅÔ½À´Ô½¶àµÄÓû§¡£
ʲôÊÇISDN£¿
ISDNÊÇ×ÛºÏÒµÎñÊý×ÖÍøµÄ¼ò³Æ£¬ËüÓɵ绰×ÛºÏÊý×ÖÍø£¨IDN£©·¢Õ¹¶øÀ´¡£ISDNÊÇÊý×Ö½»»»ºÍÊý×Ö´«ÊäµÄ½áºÏ£¬ËüÒÔѸËÙ¡¢×¼È·¡¢¾¼Ã¡¢ÓÐЧµÄ·½Ê½ÌṩĿǰ¸÷ÖÖͨÐÅÍøÂçÖÐÏÖÓеÄÒµÎñ£¬¶øÇÒ½«Í¨ÐźÍÊý¾Ý´¦Àí½áºÏÆðÀ´£¬¿ª´´Á˺ܶàÇ°ËùδÓеÄÐÂÒµÎñ¡£ ISDNÊÇÒ»¸öÈ«Êý×ÖµÄÍøÂ磬Ҳ¾ÍÊÇ˵£¬²»ÂÛÔʼÐźÅÊÇ»°Òô¡¢ÎÄ×Ö¡¢Êý¾Ý»¹ÊÇͼÏóÖ»Òª¿ÉÒÔת»»³ÉÊý×ÖÐźţ¬¶¼ÄÜÔÚISDNÍøÂçÖнøÐд«Êä¡£ÔÚ´«Í³µÄµç»°ÍøÂçÖУ¬ÊµÏÖÁËÍøÂçÄÚ²¿µÄÊý×Ö»¯£¬µ«ÔÚÓû§µ½µç»°¾ÖÖ®¼äÈÔ²ÉÓÃÄ£Äâ´«Ê䣬ºÜÈÝÒ×ÓÉÓÚÑØ;ÔëÉùµÄ»ýÀÛÒýÆðʧÕæ¡£¶ø¶ÔÓÚISDNÀ´Ëµ£¬ÊµÏÖÁËÓû§ÏßµÄÊý×Ö»¯£¬Ìṩ¶Ëµ½¶ËµÄÊý×ÖÁ¬½Ó£¬´«ÊäÖÊÁ¿´ó´óÌá¸ß¡£
ÓÉÓÚISDNʵÏÖÁ˶˵½¶ËµÄÊý×ÖÁ¬½Ó£¬Ëü¿ÉÒÔÖ§³Ö°üÀ¨»°Òô¡¢Êý¾Ý¡¢Í¼ÏóµÈ¸÷ÖÖÒµÎñ¡£Ëæ×ŵç×ÓͨÐÅÔÚÈ«Çò²»¶ÏÀ©´ó£¬ÎÒÃÇÐí¶àÈËÐèÒªºÍ²»Í¬µØÇøµÄÓû§½»»»ÐÅÏ¢¡£¶øÏÖÔÚÈËÃǶÔͨÐŵÄÒªÇóÒѾ²»½öÊǼòµ¥µÄÉùÒô½»»»£¬»¹ÐèÒª¹²Ïí¸÷ÖÖ¸ñʽµÄ²»Í¬ÐÅÏ¢¡£ÀýÈ磬ÓÐЩÈËÐèÒª¸ßËÙÊý¾ÝºÍÎļþ´«Ê䣻ÓÐЩÈË¿ÉÄÜÐèÒª¶àýÌåºÍ»áÒéµçÊÓ£»ÓÐЩÈËÔòÏ£ÍûÄÜ·ÃÎÊÖÐÑëÊý¾Ý¿â¡£ISDNµÄÒµÎñ¸²¸ÇÁËÏÖÓÐͨÐÅÍøµÄÈ«²¿ÒµÎñ£¬ÀýÈç´«Õæ¡¢µç»°¡¢¿ÉÊÓͼÎÄ¡¢¼àÊÓ¡¢µç×ÓÓʼþ¡¢¿ÉÊӵ绰¡¢»áÒéµçÊӵȣ¬¿ÉÒÔÂú×㲻ͬÓû§µÄÐèÒª¡£ ISDN»¹ÓÐÒ»¸ö»ù±¾ÌØÐÔÊÇÏòÓû§ÌṩÁ˱ê×¼µÄÈëÍø½Ó¿Ú¡£Óû§¿ÉÒÔËæÒâµØ½«²»Í¬ÒµÎñÀàÐ͵ÄÖն˽áºÏÆðÀ´£¬Á¬½Óµ½Í¬Ò»½Ó¿ÚÉÏ£¬²¢ÇÒ¿ÉÒÔËæʱ¸Ä±äÖÕ¶ËÀàÐÍ¡£
ISDNÖ÷ÒªÓÐÁ½ÖÖÀàÐÍ£º»ù±¾ËÙÂÊ£¨BRI£©ºÍ»ùȺËÙÂÊ£¨PRI£©¡£µçОÖÏòÆÕͨÓû§ÌṩµÄ¾ùΪBRI½Ó¿Ú£¬²ÉÓÃÔÓеÄË«½ÊÏߣ¬ËÙÂÊ¿É´ï144Kb/s¡£BRIISDN¿ÉÔÚÒ»¶ÔË«½ÊÏßÉÏÌṩÁ½¸öBͨµÀ£¨Ã¿¸ö64K£©ºÍÒ»¸öDͨµÀ£¨16K£©£¬DͨµÀÓÃÓÚ´«ÊäÐÅÁBͨµÀÔòÓÃÓÚ´«Êä»°Òô¡¢Êý¾ÝµÈ¡£Ò»Â·µç»°Ö»Õ¼ÓÃÒ»¸öBͨµÀ£¬Òò´Ë£¬ÔÚͬʱ½øÐжàÖÖÒµÎñ»ò¶Ô»°¡£PRI½Ó¿ÚËÙÂÊΪ2.048Mb/s,ÓÃÓÚÐèÒª´«Êä´óÁ¿Êý¾ÝµÄÓ¦Óã¬ÈçPBX£¬LAN»¥ÁªµÈ¡£
ISDNÄÜ×öЩʲô£¿
ISDN¿ÉÏòÓû§Ìṩ¸÷ÖÖ¸÷ÑùµÄÒµÎñ¡£Ä¿Ç°CC99vT½«ISDNµÄÒµÎñ·ÖΪÈýÀࣺ³ÐÔØÒµÎñ£¬Óû§ÖÕ¶ËÒµÎñºÍ²¹³äÒµÎñ¡£
³ÐÔØÒµÎñÊÇISDNÍøÂçÌṩµÄÐÅÏ¢´«ËÍÒµÎñ£¬ËüÌṩÓû§Ö®¼äµÄÐÅÏ¢´«ËͶø²»¸Ä±äÐÅÏ¢µÄÄÚÈÝ¡£³£ÓõijÐÔØÒµÎñÓУº»°ÒôÒµÎñ¡¢3.1KHzÒôƵҵÎñºÍ²»ÊÜÏÞ64KÊý×ÖÒµÎñ¡£´òµç»°Ê±Ò»°ã²ÉÓû°ÒôÒµÎñ£¬¸ÃÖÖ³ÐÔØÒµÎñÏòÍøÂç±íÃ÷Ä¿Ç°Óû§ÊÇÔÚ´òµç»°£¬ÍøÂç¿ÉÒÔ¶ÔÆä×öÓïÒôѹËõ¡¢»Ø²¨Ïû³ý¡¢Êý×Ö»°Òô²å¿ÕµÈ´¦Àí¡£3.1KHzÒôƵ³ÐÔØÒµÎñÖ÷ÒªÓÃÓÚÓõ÷Öƽâµ÷Æ÷½øÐÐÊý¾Ý´«Êä»òÓÃÄ£Äâ´«Õæ»ú·¢´«ÕæµÄÇé¿ö£¬ÕâÀàÒµÎñ¿ÉÔÚÍøÂçÖжÔÐźŽøÐÐÊýÄ£±ä»»£¬µ«ÊÇÆäËûÐÎʽµÄ»°Òô´¦Àí¼¼Êõ±ØÐë½ûÖ¹¡£ÈôҪʹÓÃISDN²¦ºÅÉÏÍø£¬ÔòÐèÒªÓò»ÊÜÏÞ64KÊý×ÖÒµÎñ£¬´ËʱÍøÂç¶ÔÓÚ´«Ë͵ÄÊý¾Ý²»×öÈκδ¦Àí¡£ÓÐʱÓû§ÈôÅöµ½ÉêÇëµÄISDNÏß·ÄÜ´òµç»°È´ÎÞ·¨²¦ºÅÉÏÍøµÄÇé¿ö£¬¼´¿ÉÄÜÊÇÓÉÓÚÏß·ÉÏΪ¿ª·Å²»ÊÜÏÞ64KÊý¾Ý³ÐÔØÒµÎñËùÖ¡£
Óû§ÖÕ¶ËÒµÎñÊÇÖ¸ËùÓÐÃæÏòÓû§µÄÓ¦ÓÃÒµÎñ£¬Ëü¼´°üº¬ÁËÍøÂçµÄ¹¦ÄÜ£¬ÓÖ°üº¬ÁËÖÕ¶ËÉ豸µÄ¹¦ÄÜ¡£Óû§¿ÉÒÔʹÓõ绰¡¢4Àà´«Õæ¡¢Êý¾Ý´«Êä¡¢»áÒéµçÊÓµÈÓû§ÖÕ¶ËÒµÎñ£¬µ«¾ùÐèÒªÖÕ¶ËÉ豸µÄÖ§³Ö¡£
²¹³äÒµÎñÔòÊÇISDNÍøÂçÔÚ³ÐÔØÒµÎñºÍÓû§ÖÕ¶ËÒµÎñµÄ»ù´¡ÉÏÌṩµÄÆäËû¸½¼ÓÒµÎñ£¬Ä¿µÄÊÇΪÁ˸øÓû§Ìṩ¸ü·½±ãµÄ·þÎñ¡£Ä¿Ç°ÉϺ£ÊеçОÖÏòÓû§ÌṩµÄ²¹³äÒµÎñÓУº¶àÓû§ºÅÂë¡¢×ÓµØÖ·¡¢Ö÷½ÐºÅÂëÏÔʾ¡¢ºô½ÐµÈ´ý¡¢ºô½Ð±£³ÖµÈ¡£ÆäÖгý¶àÓû§ºÅÂëÓÉÓÚºÅÂë×ÊÔ´½ôÕÅÐèÿ¸öÔ½»ÄÉÒ»¶¨·ÑÓÃÍ⣬ÆäËû²¹³äÒµÎñ¾ùΪÃâ·Ñ¿ª·Å£¬µ±È»Ê×ÏÈÄúÐèÒªµ½µçОÖÈ¥ÉêÇëÕâЩҵÎñ¡£ÕâЩҵÎñȷʵ¿É¸øÓû§´øÀ´ºÜ´óµÄ·½±ã¡£ÀýÈ磬ºô½ÐµÈ´ýÒµÎñ¿ÉÒÔʹÄúÔÚÁ½¸öµç»°Í¬Ê±Ê¹ÓÃʱ£¬ÍâÃæµç»°»¹ÄÜ´ò½øÀ´¡£ºô½Ð±£³ÖÔòʹÄúÔÚ´òµç»°Ê±£¬½«ÏÖÓеĵ绰ÔÝʱ¹ÒÆð£¬È¥´òеĵ绰»ò½ÓÌýÆäËûµç»°£¬½áÊøºóÔÚ½«ÔÀ´µÄµç»°»Ö¸´¡£
ΪʲôҪÓÃISDN£¿
ÎÞÂÛÊǸöÈË»¹Êǹ«Ë¾£¬ISDN¶¼Ó¦³ÉΪÄúµÄÊ×Ñ¡¡£ÒòΪËüÓÐÒÔÏÂÖî¶àºÃ´¦£º
¼Û¸ñ±ãÒË£º
ÓÉÓÚʹÓõ¥Ò»µÄÍøÂçÌṩ²»Í¬µÄÒµÎñ£¬ISDN´ó´óÌá¸ßÁËÍøÂç×ÊÔ´µÄÀûÓÃÂÊ¡£Óû§²»±ØÒª¹ºÂò²»Í¬µÄÉ豸ºÍÏß·½ÓÈ벻ͬµÄÍøÂç¡£¾ÍÉϺ£À´Ëµ£¬Ä¿Ç°µçОֶÔÓû§ÍƳöISDNÓŻݴóÌײͣ¬Ö»Ð軨490Ôª£¬¼´¿É»ñµÃÉϺ£±´¶ûÉú²úµÄÖÇÄÜÍøÂçÖն˺ÍISDNÊÊÅ俨£¬¼ÒÖÐÔÓеÄÄ£Äâµç»°¡¢´«Õæ»úµÈ¶¼¿ÉÖ±½Ó½ÓÈ룬ͨ¹ýISDNÊÊÅ俨¿ÉÒÔ128Kb/sµÄËÙÂÊÉÏÍø£¬Ëù»¨µÄ·ÑÓò»µ½Ò»¿é56Kµ÷Öƽâµ÷Æ÷µÄ¼ÛÇ®¡£¶øÇÒÿÌõISDNÏß·µÄÔÂ×â·ÑΪ24Ôª£¬ÓëÄ£Äâµç»°ÏßÏàͬ£¬È´¿Éµ±Á½ÌõÄ£ÄâÏß·ʹÓ㬺ÎÀÖ¶ø²»ÎªÄØ£¿
¸ßËÙÊý¾Ý´«Ê䣺
ʹÓÃISDN£¬×î¸ßÊý¾Ý´«ÊäËÙÂÊ¿É´ï128Kb/s£¬Ïà¶ÔÓÚÏÖÓе绰ÍøÖеÄÊý¾ÝËÙÂÊÌá¸ßÁ˺ü¸±¶¡£¶ÔÓÚÒòÌØÍøÓû§À´Ëµ£¬Ê¹ÓÃ56Kµ÷Öƽâµ÷Æ÷ʱÎļþÏÂÔØËÙÂÊ×î¿ìʱÔÚ4KB/s×óÓÒ£¬»¹ÐèÊÓÍøÂçÇé¿ö¶ø¶¨£¬¶øʹÓÃISDN£¬ÈôͬʱʹÓÃÁ½¸öBÐŵÀ£¬ÏÂÔØÎļþÊÇËÙÂÊ×î¿ì¿É´ï12KB/s×óÓÒ£¬Ìá¸ßÕûÕû3±¶£¡ÕâÑù£¬Ê¡ÏÂÀ´µÄʱ¼ä¡¢µç»°·Ñ¡¢ÉÏÍø·Ñ¾ÍÏ൱¿É¹ÛÁË¡£
[1] [2] [3] ÏÂÒ»Ò³
¸ßµÄ´«ÊäÖÊÁ¿£º
¾³£ÉÏÍøµÄÓû§¿Ï¶¨ÓÐÀàËƾÑ飬ÓÐʱÏÂÔØÒ»¸ö´óÎļþ»¨·ÑÁ˺ü¸¸öСʱ£¬½á¹ûÏÂÔØÍêºóÈ´·¢ÏÖÓÉÓÚÏß·ÖÊÁ¿²î£¬ÎóÂëÂʸߣ¬ÏÂÔصÄÎļþ²»ÄÜʹÓ᣶øʹÓÃISDN¼¸ºõ²»»á·¢ÉúÕâÖÖÎÊÌâ¡£ÓÉÓÚISDN²ÉÓö˵½¶ËµÄÊý×ÖÁ¬½Ó£¬´«ÊäÖÊÁ¿ºÜ¸ß£¬Ëü²»»áÏóÄ£ÄâÏß·һÑùÊܵ½¾²µçºÍÔëÒôµÄÓ°Ïì¡£´ËÍ⣬ÓÉÓÚISDNÖеÄÊý×ÖÉ豸±ãÓÚ¹ÊÕϼì²â£¬ÏµÍ³¿É¿¿ÐÔÒ²µÃµ½Ìá¸ß¡£
ʹÓÃÁé»î·½±ã£º
ISDNÌṩ¸÷ÖÖÒµÎñ£¬Óû§Ö»ÐèÒ»¸öÈëÍø½Ó¿Ú£¬¾ÍÄÜʹÓÃÍøÂçÌṩµÄ¸÷ÖÖÒµÎñ¡£ÀýÈ磬Äú¿ÉÒ԰ѵ绰ºÍ¸öÈ˵çÄÔ½ÓÈëISDN£¬ÔÚÉÏÍøµÄͬʱ¿ÉÒÔ´òµç»°¡£»¹¿É½ÓÈë¿ÉÊӵ绰¡¢»áÒéµçÊÓ¡¢ISDN·ÓÉÆ÷µÈÉ豸¡£ÓÉÓÚÕâЩÉ豸¾ùÓÐÏàÓ¦µÄ¹ú¼Ê±ê×¼£¬¿ÉÒÔÏó¼ÒÓõçÆ÷Ò»Ñù¾ßÓбãЯÐÔ£¬¿ÉÒÔ´ÓÒ»¸ö²å×ùÉϰε½ÁíÒ»¸öÓвå×ùµÄµØ·½È¥Ê¹Óá£
×ܵÄÀ´Ëµ£¬ISDNÊÇÒ»¸ö·Ç³£³ÉÊìµÄ¼¼Êõ£¬Ëü±Ø½«ÒÔÆäÓÅÖʵķþÎñ¡¢Æ½Ãñ»¯µÄ¼Û¸ñ½«Äú´øÈëÒ»¸öȫеÄÊý×Öʱ´ú¡£
7.2 ÄÚÖÃISDN¿¨
ÄÚÖÃISDN¿¨µÄ°²×°±È½ÏÂé·³£¬Ôì³ÉÕâÖÖÇé¿öµÄÖ÷ÒªÔÒòÊÇ¿¨µÄÐͺűȽ϶࣬¶øÄÚºËÖ§³ÖµÄ·¶Î§Ê®·ÖÓÐÏÞ£¬ËùÒÔ£¬±ÊÕßÏò´ó¼ÒÍƼöÉϺ£±´¶û³öµÄ¼¸ÖÖ£¬ÎÒÃÇÖ»ÐèÒªÖØбàÒëÄںˣ¬¼ÓÉÏÎÒÃÇÓÃISDNµÄÐͺžͿÉÒÔÀ²¡£
7.2.1 ÅäÖÃ
ÄÚºËÅäÖÃÎļþ
ʵÀý£º
ÒÔÏÂÊÇÎÒÃÇÐèÒªµÄÑ¡ÏÓÉÓÚÏÖÔÚÊÐÃæÉϼûµ½µÄËùÓÐÖÐÎÄLinuxµÄ·¢Ðаæ¾ù²»Ö§³ÖÄÚÖõÄISDN£¬ËùÒÔ£¬ÎÒÃÇÒªÏëÓÃÕâ¸öºÃ¶«¶«Ö»ÄÜ×Ô¼º¶¯ÊÖÀ²¡£
ÔÚ/usr/src/linuxĿ¼ÏÂÖ´ÐÐmake menUConfig£¬È»ºóÔÚISDNÏîÖÐÑ¡ÔñÒ»ÏÂÑ¡Ï
<*> ISDN support
[*] Support synchronous PPP
[*] Use VJ-compression with synchronous PPP
[*] Support generic MP (RFC 1717)
[*] Support audio via ISDN
HiSax SiemensChipSet driver support
[*] HiSax Support for EURO/DSS1
[*] Support for german chargeinfo
[*] Disable sending complete
[*] Disable sending low layer compatibility
[*] HiSax Support for Teles 16.3 or PNP or PCMCIA
[*] HiSax Support for Winbond W6692 based cards
È»ºó´æÅÌÍ˳ö£¬Ö´ÐÐmake dep,make clean,make bzImage,make modules,make modules_install,depmod -a,make install¡£
´Ëʱ£¬ÐµĺËÐÄÒѾÉú³ÉÀ²£¬¶øÎÒÃÇÀϵĺËÐIJ¢Ã»Óб»É¾³ý£¬Ö»ÊÇ×öÁËÒ»¸ö±¸·Ý£¬ÒªÊÇÓÐʲôÎÊÌ⣬»¹ÊÇ¿ÉÒÔ»Ö¸´µÄ¡£×îºóÎÒÃÇÐèÒªÖØÐÂÆô¶¯Ê¹µÃÐÂÄÚºËÉúЧ¡£
isdn4k-utils-3.1beta7_mini-1.i386.rpm
ÕâÊÇÒ»¸öÖ§³ÖÄÚÖÃISDNµÄ°ü£¬°²×°ÉÏÖ®ºó£¬ÏµÍ³¾Í»áʶ±ðÎÒÃǵÄÄÚÖÿ¨ÁË£¬µ±È»£¬ÎªÁËʵÏÖ²¦ºÅ£¬ÎÒÃÇ»¹ÐèҪдһ¸ö²¦ºÅ½Å±¾ÒÔ¼°ÏàÓ¦µÄ¹Ò¶Ï½Å±¾£¬ËüÃÇÊÇisdnonºÍisdnstop¡£
isdnon
ʵÀý£º
#!/bin/sh
echo -n E > /dev/ttyS1
modprobe hisax type=36 protocol=2
echo 1 > /proc/sys/net/ipv4/ip_dynaddr
#Kill previous ipppd process
if [ -r /var/run/ipppd.ippp0.pid ]
¡¡¡¡ then kill -9 `cat /var/run/ipppd.ippp0.pid`
fi
if [ -r /var/run/ipppd.ippp1.pid ]
¡¡¡¡ then kill -9 `cat /var/run/ipppd.ippp1.pid`
fi
#Variables
MYIP=0.0.0.0
REMIP=0.0.0.0
MYMSN=62986638
REMMSN=169
MYUSER=169
REMNAME=169
#Init
/sbin/isdnctrl verbose 3
#/sbin/isdnlog -sS -v1 -m0x17d7 -l0x3d7 -C /dev/console -D /dev/isdnctrl
#Add and set ippp0
/sbin/isdnctrl system on
/sbin/isdnctrl addif ippp0
/sbin/isdnctrl eaz ippp0 $MYMSN
ÉÏÒ»Ò³ [1] [2] [3] ÏÂÒ»Ò³
/sbin/isdnctrl addphone ippp0 out $REMMSN
/sbin/isdnctrl huptimeout ippp0 3600
/sbin/isdnctrl l2_prot ippp0 hdlc
/sbin/isdnctrl l3_prot ippp0 trans
/sbin/isdnctrl encap ippp0 syncppp
/sbin/isdnctrl dialmode ippp0 auto
#Add and set ippp1
/sbin/isdnctrl addslave ippp0 ippp1
/sbin/isdnctrl eaz ippp1 $MYMSN
/sbin/isdnctrl addphone ippp1 out $REMMSN <
£¨³ö´¦£ºhttp://www.sheup.com£©
ÉÏÒ»Ò³ [1] [2] [3]
right">£¨³ö´¦£ºhttp://www.sheup.com/£©
ÉÏÒ»Ò³ [1] [2] [3] [4]