#!/bin/sh # # don't forget to edit the files # /etc/ppp/pap-secrets or # /etc/ppp/chap-secrets # DEVICE="ippp15" # additional for channel bundling: DEVICE1="ippp14" DEVICE2="ippp13" DEVICE3="ippp12" VERSION=`cat /proc/version | awk '{ print $3 }' ` isdnctrl addif $DEVICE # Create new interface 'DEVICE' isdnctrl eaz $DEVICE B*** #Set local EAZ .. isdnctrl l2_prot $DEVICE hdlc # for sync PPP: set Level 2 to HDLC isdnctrl l3_prot $DEVICE trans # not really necessary, 'trans' is default isdnctrl encap $DEVICE syncppp # encap the IP Pakets in PPP frames isdnctrl huptimeout $DEVICE 300 # Hangup-Timeout is 300 sec. -> 5 min isdnctrl chargehup $DEVICE off # Hangup before next Charge-Info isdnctrl secure $DEVICE off # Accept only configured phone-number # additional for channel bundling: isdnctrl addslave $DEVICE $DEVICE1 # Create new slave interface 'DEVICE1' isdnctrl eaz $DEVICE1 B*** # Set local EAZ .. isdnctrl l2_prot $DEVICE1 hdlc # for sync PPP: set Level 2 to HDLC isdnctrl l3_prot $DEVICE1 trans # not really necessary, 'trans' is default isdnctrl encap $DEVICE1 syncppp # encap the IP Pakets in PPP frames isdnctrl huptimeout $DEVICE1 300 # Hangup-Timeout is 300 sec. -> 5 min isdnctrl chargehup $DEVICE1 off # Hangup before next Charge-Info isdnctrl secure $DEVICE1 off #Accept only configured phone-number isdnctrl addslave $DEVICE $DEVICE2 # Create new slave interface 'DEVICE1' isdnctrl eaz $DEVICE2 B*** # Set local EAZ .. isdnctrl l2_prot $DEVICE2 hdlc # for sync PPP: set Level 2 to HDLC isdnctrl l3_prot $DEVICE2 trans # not really necessary, 'trans' is default isdnctrl encap $DEVICE2 syncppp # encap the IP Pakets in PPP frames isdnctrl huptimeout $DEVICE2 300 # Hangup-Timeout is 300 sec. -> 5 min isdnctrl chargehup $DEVICE2 off # Hangup before next Charge-Info isdnctrl secure $DEVICE2 off # Accept only configured phone-number isdnctrl addslave $DEVICE $DEVICE3 # Create new slave interface 'DEVICE1' isdnctrl eaz $DEVICE3 B*** # Set local EAZ .. isdnctrl l2_prot $DEVICE3 hdlc # for sync PPP: set Level 2 to HDLC isdnctrl l3_prot $DEVICE3 trans # not really necessary, 'trans' is default isdnctrl encap $DEVICE3 syncppp # encap the IP Pakets in PPP frames isdnctrl huptimeout $DEVICE3 300 # Hangup-Timeout is 300 sec. -> 5 min isdnctrl chargehup $DEVICE3 off # Hangup before next Charge-Info isdnctrl secure $DEVICE3 off # Accept only configured phone-number ifconfig ippp15 10.11.16.33 pointopoint 10.11.16.34 #route add default $DEVICE #route add default gw 10.11.11.3 ipppd /dev/ippp15 /dev/ippp14 /dev/ippp13 /dev/ippp12 file /nn/etc/ppp/isdn/DialIn_ioptions/ioptions.ippp15 pidfile /var/run/ipppd.ippp15.pid &