Date: Mon, 28 Apr 1997 16:28:46 -0300 (EST) From: Luiz de Barros <luiz@nlink.com.br> To: "Daniel O'Callaghan" <danny@panda.hilink.com.au> Cc: Stefan Molnar <stefan@exis.net>, Paulo Fragoso <paulo@nlink.com.br>, freebsd-isp@freebsd.org Subject: Re: loading balancing with pppd! Message-ID: <Pine.BSF.3.91.970428162711.532E-300000@mirage.nlink.com.br> In-Reply-To: <Pine.BSF.3.91.970418125920.10264a-100000@panda.hilink.com.au>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
Hi All,
We are having a few problems with mpd working with 2 links to the same place.
With each of the links separately it works fine, with both, not.
Could anybody send me an example of multi-linked ppp?
Luiz
On Fri, 18 Apr 1997, Daniel O'Callaghan wrote:
>
>
> On Thu, 17 Apr 1997, Luiz de Barros wrote:
>
> > Hi All,
> >
> > Would it work with 33.6 V.42 Links or are we going to have problems
> > because o high channel latency ( delay )?
>
> I have a 3-channel and three 2-channel links using these modems. Works
> great.
>
> Danny
>
[-- Attachment #2 --]
#################################################################
#
# MPD script file
#
# This file is only used for links of type modem.
# See the file "README.script" for details.
#
# Note that variables whose first letter is lower case are
# temporary -- they get reset to empty every time the script
# starts.
#
#################################################################
##
## Dial up peer directly
##
## Variables:
##
## $InitString Modem init string (sans carriage return)
## $Telephone Telephone number to dial
## $Timeout Wait-for-connect timeout, in seconds
##
direct-dial:
if $Timeout == "" set $Timeout 50
log "initializing modem..."
set $moreInit ""
call InitModem
log "dialing peer at $Telephone..."
call DialModem
failure
direct-connect:
log "Conectando..."
call DialModem1
failure
##
## Wait for peer to call us
##
## Variables:
##
## $InitString Modem init string (sans carriage return)
## $Timeout Wait-for-connect timeout, in seconds
##
answer-ring:
set $moreInit "S0=0"
call InitModem
log "waiting for ring..."
call GetRing
failure
##
## Dial the number in $Telephone -- returns only if it failed
##
DialModem:
print "ATDT$Telephone\r\n"
match "NO CARRIER" DialAbort
match "NO DIAL" DialAbort
match "BUSY" DialAbort
match "ERR" DialAbort
match "CONNECT" DialConnect
wait $Timeout
log "dialing timed out"
return
DialModem1:
print "ATZ\r\n"
success
DialAbort:
log "dialing aborted on \"$matchedString\""
return
DialConnect:
success
##
## Initialize modem, fail if we can't
##
## Variables:
##
## $moreInit Extra init string stuff (if any)
##
InitModem:
set $cmd "Z"
call ModemCmd
set $cmd $moreInit$InitString
call ModemCmd
return
##
## Hang up modem if on-line
##
HangUpModem:
print "\r\n"
wait 2
print "+++"
wait 2
return
##
## Do the modem command in $cmd. Fail if we don't get an
## "OK" back within two seconds.
##
ModemCmd:
print "AT$cmd\r\n"
match ok "OK" CmdOk
match ok "ERROR" CmdErr
wait 2
cancel ok
log "no response from modem"
failure
CmdErr:
log "modem command \"$cmd\" failed"
failure
CmdOk:
return
##
## GetRing -- wait for a ring, answer it. Returns if connection
## fails or no ring comes in for 10 minutes.
##
GetRing:
match ring "RING" GotRing
wait 6000
cancel ring
return
GotRing:
log "detected ring..."
print "ATA\r\n"
match connect "CONNECT" RingConnectOk
wait $Timeout
cancel connect
log "failed to connect..."
return
RingConnectOk:
success
[-- Attachment #3 --]
default:
load NEO
NEO:
load log-normal
new NEO courier1
set bundle enable multilink
set bundle enable bw-manage
set iface addrs 200.238.120.3 200.238.120.177
link courier1
set link no pap
set link no chap
set modem script direct-connect
open
# Blank line above ends the command block
log-normal:
log +bund +link +chat +lcp +auth +fsm +phys +ipcp
log-minimal:
log -all +bund +link +auth
#
# Special logging options:
#
# log +all Turn on all logging options
# log +console Log to the console as well as the log file
#
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.970428162711.532E-300000>
