2000.12.08. v0.666 ISDN (Integrated Services Digital Network) konfiguralasa Linux/Debian operacios rendszer alatt Tartalom 1.) Kernel konfiguracio 2.) ISDN Konfiguracio 3.) Access konfiguracio 4.) Script példák 5.) Let's dance avagy: He? Mar bennt is vagyok? 6.) Multilink Megjegyzesek Fuggelek 1 - Hisax kodok 1.) Kernel (minimum 2.2.10 ISDN patch-el vagy 2.2.14) a.) menuconfig -> ISDN ISDN support [*] support synchronous PPP [*] Use VJ-compression with synchronous PPP [*] Support generic MP (RFC 1717) [*] Support audio via ISDN [*] Support AT-Fax Class 2 commands [*] Support isdn diversion services HiSax SiemensChipSet driver support [*] HiSax support for EURO/DSS1 . . [*] HiSax Support for AVM A1 (Fritz) ;vagy eppen amilyen a gepunkben van Multilink tamogatas (Opcionalis) lsd. 6. pontban [*] Support generic MP (RFC 1717) b.) minden mas ki, kernelforgat. 2.) ISDN controller config a.) isdnutils csomag installalasa > apt-get install isdnutils b.) /etc/conf.modules fileba a kovetkezo 2 sor (pelda): alias char-major-45 hisax ;Card AVM A1 options hisax type=5 protocol=2 io=0x300 irq=5 ;irq es port testreszabasa vagy alias char-major-45 hisax ;Card AVM FRITZ PCI/PNP options hisax type=27 protocol=2 (Tovabbi Hisax type-ok a file vegen az 1. fuggelekben) c.) isdnctrl konfiguralasa: > modprobe hisax > isdnctrl addif ippp0 ;ippp0 added > isdnctrl addphone ippp0 out > isdnctrl eaz ippp0 ;(MSN = Multiple Subscriber Number) a harom telefonszam kozul a hasznalni kivant > isdnctrl l2_prot ippp0 hdlc > isdnctrl l3_prot ippp0 trans > isdnctrl encap ippp0 syncppp > isdnctrl huptimeout ippp0 600 ;ha nincs forgalom 5 perc (600 masodperc) mulva lebont > isdnctrl writeconf ;written /etc/isdn/isdn.conf 3.) Access konfiguracio a.) hozzaferesi adatok /etc/ppp/pap-secrets fileba: "*" ;pl:johndoe * eodnhoj b.) Nevszerver beallitasa (dns) /etc/resolv.conf -ba: nameserver 4.) Indito script pelda #!/bin/bash case $1 in start) isdnctrl readconf ipppd /dev/ippp0 defaultroute lock user ;; stop) killall ipppd ;; dial) isdnctrl dial ippp0 ;; hangup) isdnctrl hangup ippp0 ifconfig ippp0 down ;; *) echo "Usage: isdn " ;; esac 5.) Let's dance avagy: He? Mar bennt is vagyok? -Tarcsazas isdn start isdn dial -Vonalbontas isdn hangup 6.) Multilink (mindket vonal hasznalata, 128kbit/s) a.) A multilinkhez szukseges tamogatas a kernelben: [*] Support generic MP (RFC 1717) b.) Letre kell hozni az elsodleges interface-t (lsd. 2. pontban) c.) Az ipppd -t MP tamogatassal kell inditani ipppd +mp /dev/ippp0 /dev/ippp1 defaultroute lock user d.) Slave-kent hozzaadjuk az ippp0-hoz az ippp1-et isdnctrl addslave ippp0 ippp1 isdnctrl addphone ippp1 out isdnctrl eaz ippp1 isdnctrl l2_prot ippp1 hdlc isdnctrl l3_prot ippp1 trans isdnctrl encap ippp1 syncppp isdnctrl huptimeout ippp1 600 isdnctrl dialmode ippp0 auto isdnctrl dialmode ippp1 auto (az egyes parameterek jelenteset a 2. pontban reszletezzuk) e.) Kitarcsazunk isdnctrl dial ippp0 f.) Es linkeljuk az ippp0-hoz isdnctrl addlink ippp0 g.) A linkeles lebontasa: isdnctrl removelink ippp0 (ilyenkor megmarad az ippp0 kapcsolata) Megjegyzesek: Ha d-o-d -t akarunk (dial on demand, azaz ha azt kivanjuk elerni, hogy a server automatikusan tarcsazzon be ha erre igeny erkezik pl. browsert inditasz) szoval ebben az esetben 'isdn hangup' nal vegyuk ki a "ifconfig ippp0 down" sort a scriptbol kulonben nem fog mukodni. Ha kivettuk es megis kiakarjuk kapcsolni a d-o-d-t, akkor isdn hangup utan adjunk ki egy isdn stop -ot is. d-o-d bekapcsolasa: /etc/isdn/isdn.conf ban atirjuk a DIALMODE-ot manual rol auto ra, es utana egy isdnctrl readconf. Fuggelek 1: hisax type=1: Card Teles 16.0 hisax type=2: Card Teles 8.0 hisax type=3: Card Teles 16.3 hisax type=4: Card Creatix/Teles PnP hisax type=5: Card AVM A1 hisax type=6: Card Elsa ML hisax type=7: Card Elsa Quickstep hisax type=8: Card Teles PCMCIA hisax type=9: Card ITK ix1-micro Rev.2 hisax type=10: Card Elsa PCMCIA hisax type=11: Card Eicon.Diehl Diva hisax type=12: Card ISDNLink hisax type=13: Card TeleInt hisax type=14: Card Teles 16.3c hisax type=15: Card Sedlbauer Speed Card hisax type=16: Card USR Sportster hisax type=17: Card ith mic Linux hisax type=18: Card Elsa PCI hisax type=19: Card Compaq ISA hisax type=20: Card NETjet hisax type=21: Card Teles PCI hisax type=22: Card Sedlbauer Speed Star (PCMCIA) hisax type=23: Card AMD 7930 hisax type=24: Card NICCY hisax type=25: Card S0Box hisax type=26: Card AVM A1 (PCMCIA) hisax type=27: AVM PnP/PCI hisax type=28: Card Sedlbauer Speed Fax + hisax type=29: Card Siemens I-Surf hisax type=30: Card Acer P10 hisax type=31: Card HST Saphir hisax type=32: Card Telekom A4T hisax type=33: Card Scitel Quadro hisax type=34: Card Gazel hisax type=35: Card HFC 2BDS0 PCI hisax type=36: Card Winbond 6692 hisax type=37: Card HFC 2BDS0 SX Szerzôk: Atys atys@tolna.net PCI/PNP, Hisax types: DUR3X durex@fbi.hu Multilink: KharpeeT kharpeet@kernel.hu