-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Charles, I am not a great script writer for linux/lrp so the ippp* section
of if_up is
not how I would like it to be.   Any hints on how to improve this section
would be
greatly appreciated as I have been asked to incorporate two more isdn
channels in the
near future to increase our bandwidth.

My update to the network.conf for isdn is as follows:

############################################################################
###
# ISDN Link - the isdn.lrp is required for this to work. (External
Interface)
############################################################################
###
ippp0_IPADDR=1.2.3.4    # My IP Address, only set if not dynamic.
ippp0_PTPADDR=1.2.3.1   # Their IP Address, again only if not dynamic.
ippp0_MASKLEN=16                # Mask length for IPADDR, only set if not dynamic
ippp0_BROADCAST=+
ippp0_MYMSN=38049800            # My telephone Number
ippp0_REMMSN=30073300           # Their telephone number (The ISP)
ippp0_IP_SPOOF=YES
ippp0_IP_KRNL_LOGMARTIANS=NO
# Simple QOS support, Options are same as Ethernet above.
ippp0_FAIRQ=YES
ippp0_TXQLEN=64
ippp0_BNDWIDTH=64kbit           # Device Bandwidth
ippp0_HNHL=3                    # Queue Handle - must be unique
ippp0_IABURST=25                # Interactive Burst
ippp0_IARATE=30Kbit             # Interactive Rate
ippp0_PXMTU=1500                # Physical MTU - includes Link Layer Header

ippp1_IPADDR=1.2.3.4    # My IP Address, only set if not dynamic.
ippp1_PTPADDR=1.2.3.1   # Their IP Address, again only if not dynamic.
ippp1_MYMSN=38049800            # My telephone Number
ippp1_REMMSN=30073300           # Their telephone number (The ISP)
ippp1_IP_SPOOF=YES
ippp1_IP_KRNL_LOGMARTIANS=NO
# Simple QOS support, Options are same as Ethernet above.
ippp1_FAIRQ=YES
ippp1_TXQLEN=64
ippp1_BNDWIDTH=64kbit           # Device Bandwidth
ippp1_HNHL=4                    # Queue Handle - must be unique
ippp1_IABURST=25                # Interactive Burst
ippp1_IARATE=30Kbit             # Interactive Rate
ippp1_PXMTU=1500                # Physical MTU - includes Link Layer Header

if_up () {

        # Set up each interface
        case $1 in
        ppp0)
                pppd call provider
                ;;
        ippp*)
              # Get ppp user
              USER=`cat /etc/ppp/pap-secrets | grep ^[a-zA-Z0-9] | sed 's/\*.*//'`

              # Set up the ISDN interface
              isdnctrl verbose 3                        #>/dev/null
              isdnctrl system on                        #>/dev/null
              isdnctrl addif $1                         #>/dev/null
              isdnctrl pppbind $1 0                     #>/dev/null
              isdnctrl addphone $1 out $REMMSN          #>/dev/null
              isdnctrl eaz $1 $MYMSN                    #>/dev/null
              isdnctrl l2_prot $1 hdlc                  #>/dev/null
              isdnctrl l3_prot $1 trans                 #>/dev/null
              isdnctrl encap $1 syncppp                 #>/dev/null
              isdnctrl huptimeout $1 43200              #>/dev/null
              isdnctrl dialmode $1 auto                 #>/dev/null

              # Set up second channel on ISDN card as a slave to the first.
              isdnctrl addslave $1 ippp1
              isdnctrl addphone ippp1 out $REMMSN       #>/dev/null
              isdnctrl eaz ippp1 $MYMSN                 #>/dev/null
              isdnctrl l2_prot ippp1 hdlc               #>/dev/null
              isdnctrl l3_prot ippp1 trans              #>/dev/null
              isdnctrl encap ippp1 syncppp              #>/dev/null
              isdnctrl huptimeout ippp1 43200           #>/dev/null
              isdnctrl dialmode ippp1 auto              #>/dev/null

              if [ -z "$IPADDR" ] ; then
                    echo 1 >/proc/sys/net/ipv4/ip_dynaddr
                    ip link set $1 dynamic on
              else
                    ip addr add $IPADDR peer $PTPADDR dev $1
              fi
              ip link set $1 arp off multicast off
              ip link set $1 up

              # Debugging - Remove if you like
              echo Local Address: $IPADDR
              echo Peer Address:  $PTPADDR

              if [ -z "$IPADDR" ] ; then
                    /usr/sbin/ipppd mru 1500 mtu $PXMTU netmask $MASKLEN
ipcp-accept-local
ipcp-accept-remote lcp-restart 1 name $USER noipdefault +mp /dev/$1
/dev/ippp1 &
              else
                    /usr/sbin/ipppd mru 1500 mtu $PXMTU lcp-restart 1 name $USER
$IPADDR:$PTPADDR +mp /dev/$1 /dev/ippp1 &
              fi
              ip route add default dev $1
              # Fair queuing - this can be selected for any interface
              ip_frQoS $1
              ;;
        fr*)

...

if_down () {

        # Do Dee global bridge stuff
        brg_global

        case $1 in
        ppp*)
                [ -f /var/run/$1.pid ] && qt kill `cat /var/run/$1.pid`
                sleep 5        # Wait for pppd to die
                ;;
        ippp*)
                isdnctrl hangup $1
                sleep 1
                kill `cat /var/run/ipppd.pid`
                ip route del dev $1
                ip link set $1 down
                isdnctrl delif $1
                ;;
        fr*)

Andrew Gray
System Administrator / Senior Technician
Operations
VQA Australasia

Phone:  (07) 3804 9822
Fax:    (07) 3807 8633
Mob:    0418 734 078
___________________________________________
NOTICE
The information contained in this electronic mail message is privileged and
confidential, and is intended only for use of the addressee.  If you are not
the intended recipient, any disclosure, reproduction, distribution or other
use of this communication is strictly prohibited.  If you have received this
communication in error, please notify the sender by reply transmission and
delete the message without copying or disclosing it.




- -----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Charles
Steinkuehler
Sent: Wed, 19 Jun 2002 01:01
To: [EMAIL PROTECTED]; 'Sean'; [EMAIL PROTECTED]
Subject: Re: [leaf-user] Dachstein-CD update


> There are other additions to the netsork.conf file that I have also
made to
> get multilink isdn connections to work here and I would be happy to
supply
> them to anyone who would like them.

Please post them to the list, and I'll look them over.  Maybe I'll even
take the opportunity to add the ability to pass private IP's through the
upstream link, which seems to be biting more folks these days as ISP's
start assigning private IP's even here in the states.

Charles Steinkuehler
http://lrp.steinkuehler.net
http://c0wz.steinkuehler.net (lrp.c0wz.com mirror)


- --------------------------------------------------------------------------
--
                   Bringing you mounds of caffeinated joy
                      >>>     http://thinkgeek.com/sf    <<<

- ------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBPQ+3ayfv/7x7n0CPEQJCRACfcDQE91k0xWT9tsjPurH3vUwhAhkAoL+I
VyNOom6/YXxYniZyLKrhLXht
=RhYJ
-----END PGP SIGNATURE-----


----------------------------------------------------------------------------
                   Bringing you mounds of caffeinated joy
                   >>>     http://thinkgeek.com/sf    <<<

------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

Reply via email to