Mainpage
Searchform
History
Versions
Categories
Contents
Deutsch
SuSE Linux: Versions since 4.4
i4l also offers modem emulation. Devices: /dev/ttyI0
,
/dev/ttyI1
.... . You can use the analog PPP scripts as usual with them.
These will access the ISDN devices with the normal AT commands.
Stefan Troendle (StefanTroendle@swol.de) wrote a small special howto about this topic :
Enclosed are my two scripts that can be used to establish and cut a connection with asynchronous PPP and ISDN.
I call my provider with Chat and X75, the authentication is performed
with PAP. I have removed useifip
from /etc/ppp/options
, which
pppd isn't aware of.
Here are the scripts:
/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
See also:
Keywords: ISDN, PPP, ASYNCHRONOUS, PPPD, HANDSHAKING
Feedback welcome: Send Mail to kfr@suse.de (Please give the following subject: SDB-ppp_async
)
Mainpage
Searchform
History
Versions
Categories
Contents
Deutsch