i4l은 또한 모뎀 에뮬레이션을 제공한다. 장치들:
Stefan Troendle(StefanTroendle@swol.de)는 이 주제에 대한 입문서를 작성하였다. :
동봉한 것은 비동기식 PPP와 ISDN의 연결을 설정하고 끊기 위해서 사용되어질 수 있는
나의 두 가지 스크립트들이다.
나는 Chat과 X75를 사용해서 나의 제공자를 호출한다. 인증은 PAP를 사용해서 수행되어
진다. pppd가 인식하지 못하는
여기에 스크립트가 있다.:
/dev/ttyl0
,
dev/ttyl1
. 아날로그 PPP 스크립트를 그것들과 함께 일반적으로 사용할 수 있다.
이것들은 일반적인 AT 명령어를 사용해서 ISDN 장치에 접근할 것이다. Solution:
아날로그 모뎀과 같이 PPP 연결을 구성하라. (위를 참조) 이러한 구성은 핸드북, 여러
README들, 그리고 Support DB내의 예에서 설명되어 있다.useifip
을 /etc/ppp/options
로부터
제거하였다.
/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
Hint :
만약 데이터 변환이 때때로 인터럽트 되어진다면, (e.g. ftp를 사용하거나 긴 메일을 전송
하거나 받을 때) 블록 사이즈를 1024에서 512로 줄여야 할 것이다. 이것을 하기 위해서는
다음을 chat 스크립트에 입력하라. :
OK AT&B512
관련 내용:
키워드: ISDN, PPP, ASYNCHRONOUS, PPPD, HANDSHAKING
SDB-ppp_async, Copyright SuSE Linux AG, Nrnberg, Germany
- 버전: 08. Mr 2001
SuSE Linux AG - 최근에 만들어진 : 08. Mr 2001 에 의해 kmyoo (sdb_gen 1.40.0)