[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ISDN and Linux -- not working yet...
try this one. It work for me fine.
-------------------cut here------------------------------------------
#!/bin/sh
#
# example for channel bundling with PPP
#
LOCAL_NUMBER1="your_first_home_number"
LOCAL_NUMBER2="your_second_home_number"
REMOTE_NUMBER="your_ISP_number"
LOCAL_IP="0.0.0.0"
REMOTE_IP="X.X.X.X" # IP of yor ISP
DEVICE="ippp0"
DEVICE1="ippp1"
SYSPATH="/sbin/"
ISDNBIN="/sbin/isdnctrl"
TELESBIN="/sbin/telesctrl"
USER="username"
$ISDNBIN addif $DEVICE # Create new interface 'DEVICE'
$ISDNBIN addphone $DEVICE out $REMOTE_NUMBER # Set outgoung phone-number
$ISDNBIN eaz $DEVICE $LOCAL_NUMBER1 # Set local EAZ ..
$ISDNBIN l2_prot $DEVICE hdlc # for sync PPP: set Level 2 to HDLC
$ISDNBIN l3_prot $DEVICE trans # not really necessary, 'trans' is default
$ISDNBIN encap $DEVICE syncppp # encap the IP Pakets in PPP frames
$ISDNBIN huptimeout $DEVICE 600 # Hangup-Timeout is 600 sec.
$ISDNBIN chargehup $DEVICE off # Hangup before next Charge-Info
$ISDNBIN secure $DEVICE on # Accept only configured phone-number
$ISDNBIN addslave $DEVICE $DEVICE1 # Create new slave interface'DEVICE1'
$ISDNBIN addphone $DEVICE1 out $REMOTE_NUMBER # Set outgoung phone-number
$ISDNBIN eaz $DEVICE1 $LOCAL_NUMBER2 # Set local EAZ ..
$ISDNBIN l2_prot $DEVICE1 hdlc # for sync PPP: set Level 2 to HDLC
$ISDNBIN l3_prot $DEVICE1 trans # not really necessary, 'trans' is default
$ISDNBIN encap $DEVICE1 syncppp # encap the IP Pakets in PPP frames
$ISDNBIN huptimeout $DEVICE1 600 # Hangup-Timeout is 600 sec.
$ISDNBIN chargehup $DEVICE1 off # Hangup before next Charge-Info
$ISDNBIN secure $DEVICE1 on # Accept only configured phone-number
$SYSPATH\/ifconfig $DEVICE $LOCAL_IP pointopoint $REMOTE_IP metric 1 -arp
$SYSPATH\/route add default dev $DEVICE
# start the (new) deamon:
# -----------------------
# 'user myusername' : set username to get the right password from the
# pap/chap-secrets file(s)
# ipcp-accept-local ipcp-accept-remote : accept every IP address
# -vjccomp -ac -pc : _my_ remote side doesn't support this, so disable it
# -bsdcomp : i4l-syncPPP driver doesn't support bsd-compression
# debug : enable debugging, WARNING: ipppd will also log your password
# useifip : get IP address information form the network interface
# /dev/ippp0 /dev/ippp1 /dev/ippp2 : connect to 3 devices for max.
# three connections at the same time
$SYSPATH\/ipppd +mp user $USER \
ipcp-accept-local ipcp-accept-remote \
-vjccomp -ac -pc \
-detach \
mru 1524 \
-bsdcomp \
debug \
useifip \
defaultroute \
/dev/ippp0 /dev/ippp1 &
-------------------cut here------------------------------------------
I'm use TELES 16.3
--
------------------------------------------------------------------------------
Computer Center of Haifa University Mount Carmel, Haifa 31905, Israel
------------------------------------------------------------------------------
Constantin Eizner | Tel. 972-4-8249299
Network Engineer | Fax. 972-8249177
Unix System Administrator | E-mail eizner@research.haifa.ac.il
______________________________________________________________________________
There was a time when religion ruled the world. It is known as the Dark Ages.