Übersicht
Stichwortsuche
History
Versionen
Kategorien
Alle Artikel
English
SuSE Linux: Versionen ab 4.4
i4l bieten auch Modememulationen an (Devices:
/dev/ttyI0
, /dev/ttyI1
....)
über die man die normalen analog PPP-Scripte verwenden kann, die
auf die ISDN-Devices über normale AT-Befehle zugreifen.
Stefan Troendle (StefanTroendle@swol.de) hat hierzu auch ein kleines spezielles HowTo erstellt:
Anbei habe ich die beiden Scripts von mir als Anlage, mit denen ich ich mit asynchronem PPP und ISDN eine Vebindung auf und abbauen kann!
Ich wähle mich mit chat und X75 bei meinem Provider ein, Authentizierung
erfolgt dann über PAP. In der /etc/ppp/options
habe ich
useifip
rausgenommen,
das kennt der pppd ja nicht!
Hier die Scripte:
/etc/ppp/ppp-up
:
#!/bin/sh #set -x # # Script to connect with asynchronous ppp and ISDN a special provider. # It works uses the modem-emultaion from i4l # # In the file ppp.chat are the following lines: # # "" ATZ # OK ATS14=0&Exxxxx (xxxxx is the own ISDN-MSN) # OK ATDyyyyy (yyyyy is the provider phone-number) # OK "" (To start ppp) # # Here i use the ATS14=0 to work with X75 ! # # Authentification is with PAP (/etc/ppp/pap-secrets) # You can use the file /etc/ppp/options from SuSE WITHOUT # the parameter "useifp" ! # (Packet i4l, /usr/doc/packages/i4l/pppsample/options) # # 24.01.1997, Stefan Troendle mail: StefanTroendle@swol.de # localip=0.0.0.0 remoteip= # Using the modem-emulation device=/dev/ttyI0 # The following lines are from SuSE's LINUX aktuell 4.3 pppflags="debug defaultroute" /usr/sbin/pppd lock connect \ '/usr/sbin/chat -f /etc/ppp/ppp.chat' \ $device $pppflags $localip:$remoteip
/etc/ppp/ppp.chat
:
"" ATZ OK ATS14=0&Exxxxx OK ATDyyyyy CONNECT
/etc/ppp/ip-down
:
#!/bin/sh #set -x # # Script to disconnect a running asynchronous ppp-connection # # 24.01.1997, Stefan Troendle mail: StefanTroendle@swol.de # # The net-device DEVICE=ppp0 # If a ppp0 pid file exists, then has a connection established, # kill this connection ! if [ -r /var/run/$DEVICE.pid ]; then kill -INT `cat /var/run/$DEVICE.pid` # Unsuccessful? # Remove the ppp0 pid file ! if [ ! "$?" = "0" ]; then echo "... removing stale $DEVICE pid file !" rm -f /var/run/$DEVICE.pid exit 1 fi echo "$DEVICE link disonnected !" exit 0 fi
OK AT&B512
Siehe auch:
Stichwörter: ISDN, PPP, ASYNCHRON, PPPD, HANDSHAKING
Übersicht
Stichwortsuche
History
Versionen
Kategorien
Alle Artikel
English