Skip site navigation (1)Skip section navigation (2)
Date:      14 Apr 2003 08:20:05 +0200
From:      Jan Lentfer <Jan.Lentfer@web.de>
To:        freebsd-isdn@freebsd.org
Subject:   Multi-link with userland ppp
Message-ID:  <1050301205.599.18.camel@jan-linnb>

next in thread | raw e-mail | index | archive | help
Hi list,

I am using FreeBSD for about 2 years, since 6 Month I am using a i4b as
uplink.
The last few days =CD tried to configure multi-link connection / channel
bonding to my ISP (which according to their FAQ is supported).
I used the ppp.conf from /usr/share/examples. When I now start ppp I get
the following warnings (log was recorded when autoload was set to "0 0
1"):

---------------------------------------------------------------------
Apr 14 07:54:17 freebsd-server ppp[662]: Phase: Using interface: tun0=20
Apr 14 07:54:17 freebsd-server ppp[662]: Phase: deflink: Created in
closed state=20
Apr 14 07:54:17 freebsd-server ppp[662]: Phase: 1: Cloned in closed
state=20
Apr 14 07:54:17 freebsd-server ppp[662]: Phase: 2: Cloned in closed
state=20
Apr 14 07:54:17 freebsd-server ppp[662]: Warning: set phone: No context
(use the `link' command)=20
Apr 14 07:54:17 freebsd-server ppp[662]: Warning: set phone: Failed 1=20
Apr 14 07:54:17 freebsd-server ppp[662]: Warning: enable lqr: No context
(use the `link' command)=20
Apr 14 07:54:17 freebsd-server ppp[662]: Warning: enable lqr: Failed 1=20
Apr 14 07:54:17 freebsd-server ppp[662]: Warning: set reconnect: No
context (use the `link' command)=20
Apr 14 07:54:17 freebsd-server ppp[662]: Warning: set reconnect: Failed
1=20
Apr 14 07:54:17 freebsd-server ppp[662]: Warning: set redial: No context
(use the `link' command)=20
Apr 14 07:54:17 freebsd-server ppp[662]: Warning: set redial: Failed 1=20
Apr 14 07:54:17 freebsd-server ppp[662]: Warning: set dial: No context
(use the `link' command)=20
Apr 14 07:54:17 freebsd-server ppp[662]: Warning: set dial: Failed 1=20
Apr 14 07:54:17 freebsd-server ppp[662]: Warning: set login: No context
(use the `link' command)=20
Apr 14 07:54:17 freebsd-server ppp[662]: Warning: set login: Failed 1=20
Apr 14 07:54:17 freebsd-server ppp[662]: Warning: set logout: No context
(use the `link' command)=20
Apr 14 07:54:17 freebsd-server ppp[662]: Warning: set logout: Failed 1=20
Apr 14 07:54:17 freebsd-server ppp[662]: Warning: set hangup: No context
(use the `link' command)=20
Apr 14 07:54:17 freebsd-server ppp[662]: Warning: set hangup: Failed 1=20
Apr 14 07:54:17 freebsd-server ppp[662]: Warning: set device: No context
(use the `link' command)=20
Apr 14 07:54:17 freebsd-server ppp[662]: Warning: set device: Failed 1=20
Apr 14 07:54:17 freebsd-server ppp[662]: Warning: set speed: No context
(use the `link' command)=20
Apr 14 07:54:17 freebsd-server ppp[662]: Warning: set speed: Failed 1=20
Apr 14 07:54:17 freebsd-server ppp[662]: Warning: set mru: No context
(use the `link' command)=20
Apr 14 07:54:17 freebsd-server ppp[662]: Warning: set mru: Failed 1=20
Apr 14 07:54:17 freebsd-server ppp[662]: Warning: clone: No context (use
the `link' command)=20
Apr 14 07:54:17 freebsd-server ppp[662]: Warning: clone: Failed 1=20
Apr 14 07:54:17 freebsd-server ppp[662]: Warning: link: deflink: Invalid
link name=20
Apr 14 07:54:17 freebsd-server ppp[662]: Warning: link: Failed 1=20
Apr 14 07:54:17 freebsd-server ppp[663]: Phase: PPP Started (ddial
mode).=20
Apr 14 07:54:41 freebsd-server ppp[663]: Phase: bundle: Establish=20
Apr 14 07:54:41 freebsd-server ppp[663]: Phase: 1: closed -> opening=20
Apr 14 07:54:41 freebsd-server ppp[663]: Phase: 1: Connected!=20
Apr 14 07:54:41 freebsd-server ppp[663]: Phase: 1: opening -> dial=20
Apr 14 07:54:41 freebsd-server ppp[663]: Phase: 1: dial -> carrier=20
Apr 14 07:54:42 freebsd-server ppp[663]: Phase: 1: /dev/i4brbch0: CD
detected=20
Apr 14 07:54:42 freebsd-server ppp[663]: Phase: 1: carrier -> login=20
Apr 14 07:54:42 freebsd-server ppp[663]: Phase: 1: login -> lcp=20
Apr 14 07:54:43 freebsd-server ppp[663]: Phase: bundle: Authenticate=20
Apr 14 07:54:43 freebsd-server ppp[663]: Phase: 1: his =3D CHAP 0x05, mine
=3D none=20
Apr 14 07:54:43 freebsd-server ppp[663]: Phase: Chap Input: CHALLENGE
(16 bytes from ci7010)=20
Apr 14 07:54:43 freebsd-server ppp[663]: Phase: Chap Output: RESPONSE
(MN1004338-000)=20
Apr 14 07:54:44 freebsd-server ppp[663]: Phase: Chap Input: SUCCESS=20
Apr 14 07:54:44 freebsd-server ppp[663]: Phase: 1: lcp -> open=20
Apr 14 07:54:44 freebsd-server ppp[663]: Phase: bundle: Network=20
Apr 14 07:54:45 freebsd-server ppp[663]: Phase: 0% saturation -> Opening
link ``2''=20
Apr 14 07:54:45 freebsd-server ppp[663]: Phase: 2: closed -> opening=20
Apr 14 07:54:45 freebsd-server ppp[663]: Phase: 2: /dev/i4brbch0 is in
use=20
Apr 14 07:54:45 freebsd-server ppp[663]: Phase: 2: Connected!=20
Apr 14 07:54:45 freebsd-server ppp[663]: Phase: 2: opening -> dial=20
Apr 14 07:54:45 freebsd-server ppp[663]: Phase: 2: dial -> carrier=20
Apr 14 07:54:46 freebsd-server ppp[663]: Phase: 2: /dev/i4brbch1: CD
detected=20
Apr 14 07:54:46 freebsd-server ppp[663]: Phase: 2: carrier -> login=20
Apr 14 07:54:46 freebsd-server ppp[663]: Phase: 2: login -> lcp=20
Apr 14 07:54:47 freebsd-server ppp[663]: Phase: 2: his =3D CHAP 0x05, mine
=3D none=20
Apr 14 07:54:47 freebsd-server ppp[663]: Phase: Chap Input: CHALLENGE
(16 bytes from stack)=20
Apr 14 07:54:47 freebsd-server ppp[663]: Phase: Chap Output: RESPONSE
(MN1004338-000)=20
Apr 14 07:54:47 freebsd-server ppp[663]: Phase: Chap Input: SUCCESS=20
Apr 14 07:54:47 freebsd-server ppp[663]: Phase: 2: Already in NETWORK
phase=20
Apr 14 07:54:47 freebsd-server ppp[663]: Phase: 2: lcp -> open=20
Apr 14 07:54:57 freebsd-server ppp[663]: Warning: ipv4_Input: IPCP not
open - packet dropped=20
Apr 14 07:55:05 freebsd-server last message repeated 11 times
--------------------------------------------------------------------


This is my ppp.conf:

--------------------------------------------------------------------
default:
 set phone 06151666768	# Replace this with your ISPs phone number

 set authname MyAuthname	# Replace these with your login name &
password.
 set authkey AuthKey	# This profile assumes you're using PAP or CHAP.

# set enddisc mac	# Assuming you have a LAN

 enable lqr
 set reconnect 3 5
 set redial 3 10
 set lqrperiod 45
 disable pred1 deflate mppe
 deny pred1 deflate mppe

 set timeout 60 300	# The minimum charge period is 5 minutes, so don't
			# hangup before then

 # We have no chat scripts in the ISDN world (yet)
 set dial
 set login
 set logout
 set hangup

 set device /dev/i4brbch0 /dev/i4brbch1		# Raw B-channel devices
 set speed sync					# ISDN is synchronous


 # Take a wild guess at an IP number and let the other side decide
 set ifaddr 172.16.0.1/0 212.0.0.0/0 0 0
 add! default hisaddr

 set mrru 1500				# Multilink mode please
 set mru 1504				# Room for the MP header

 clone 1,2				# Two new links
 link deflink rm			# And get rid of the original one

=20

 link * set mode auto			# Automatically manage the second link
 set autoload 10 80 30 		# Down @10% usage, up at 80%, 30s sample
-------------------------------------------------------------------------

and this is my isdnd.rc:

-------------------------------------------------------------------------
# accounting
# ----------

acctall		=3D on			# generate info for everything
acctfile	=3D /var/log/isdnd.acct	# name & location of accounting file
useacctfile	=3D yes			# generate accouting info to file

# monitor
# -------

monitor-allowed	=3D yes			# global switch: monitor on/off
monitor-port	=3D 451			# default monitor TCP port

# Monitor rights are granted due to the most specific host/net spec,
i.e. in=20
# the example below host 192.168.1.2 will have the rights specified on
that
# line, even so it belongs to net 192.168.1.0/24 as well.
#
# A monitor specification may either be:
#
#  - the name of a local (UNIX-domain) socket; this MUST start with a
"/"
monitor		=3D "/var/run/isdn-monitor"=20
monitor-access	=3D fullcmd
monitor-access	=3D channelstate, logevents
monitor-access	=3D callin, callout
#
#  - a dotted-quad host spec
#monitor		=3D "192.168.1.2"
#monitor-access	=3D restrictedcmd, channelstate, callin, callout
#
#  - a dotted-quad net spec with "/len" (CIDR-style) netmask spec
#monitor		=3D "192.168.1.0/24"
#monitor-access	=3D restrictedcmd, channelstate, callin, callout
#
#  - a resolveable host name
#monitor		=3D "rumolt"
monitor-access	=3D restrictedcmd, channelstate, callin, callout
#
#  - a resolveable net name with "/len" netmask (s.a.) appended
#monitor		=3D "up-vision-net/24"
#monitor-access	=3D restrictedcmd, channelstate, callin, callout

# ratesfile
# ---------

ratesfile	=3D /etc/isdn/isdnd.rates	# name & location of rates file

# regular expression pattern matching
# -----------------------------------

#regexpr	=3D "connected.*XXX"	# look for matches in log messages
#regprog	=3D connectXXX		# execute program when match is found

regexpr         =3D "<unknown> incoming call from"
regprog         =3D unknown_incoming      # execute program whan match is
found

# realtime priority section
# -------------------------

rtprio		=3D 25			# modify isdnd's process priority

#=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D
# controller section
#=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D
#controller

#firmware	=3D /etc/isdn/b1.t4	# microcode for an AVM B1 controller

#=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
# entry section: answering machine example
#=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
entry			=09

name        		=3D I4BTEL	# name for reference
usrdevicename		=3D tel		# ipr, tel, rbch
usrdeviceunit           =3D 0             # unit number
			=09
isdncontroller		=3D 0		# controller to use or -1 to use any
isdnchannel		=3D 0		# channel (1/2) to use or 0 or -1 for any

					# numbers used to verify at DIAL IN
local-phone-incoming	=3D 899393 	# this is my number
remote-phone-incoming	=3D *		# anyone can call in
			=09
alert			=3D 18=20
dialin-reaction		=3D answer	# accept, reject, ignore, answer

answerprog		=3D isdntel.sh	# program to run

b1protocol		=3D raw		# hdlc, raw

idletime-incoming	=3D 20	 	# 5 seconds idle timeout


## HEAG PPP ###
entry
name =3D HEAG=20
usrdevicename =3D rbch=20
usrdeviceunit =3D 0=20
isdncontroller =3D 0=20
isdnchannel =3D -1=20
local-phone-incoming =3D 899393=20
remote-phone-incoming =3D *=20
local-phone-dialout =3D 899393=20
remote-phone-dialout =3D 06151666768=20
remdial-handling =3D first=20
dialin-reaction =3D ignore =20
dialout-type =3D normal=20
b1protocol =3D hdlc=20
#idletime-incoming =3D 300=20
#idletime-outgoing =3D 30=20
#ratetype =3D 0=20
#unitlength =3D 90=20
#unitlengthsrc =3D rate=20
#dialretries =3D 3=20
#dialrandincr =3D off=20
#recoverytime =3D 5=20
#calledbackwait =3D 30=20
#usedown =3D off


entry
name =3D HEAG2
usrdevicename =3D rbch
usrdeviceunit =3D 1
isdncontroller =3D 0
isdnchannel =3D -1=20
local-phone-incoming =3D 899393
remote-phone-incoming =3D *
local-phone-dialout =3D 899393=20
remote-phone-dialout =3D 06151666768
remdial-handling =3D first
dialin-reaction =3D accept
dialout-type =3D normal
b1protocol =3D hdlc
#idletime-incoming =3D 300
#idletime-outgoing =3D 30
#ratetype =3D 0
#unitlength =3D 90
#unitlengthsrc =3D rate
#dialretries =3D 3
#dialrandincr =3D off
#recoverytime =3D 5
#calledbackwait =3D 30
#usedown =3D off
-----------------------------------------------------------



With this settings the second line never comes up.
Ig I change "set autoload 10 80 30" to "set autoload 0 0 1" in ppp.conf
the second line becomes established, but never utilized (no traffic on
this line, although the first line is utilized 100% for 10 min or more).


I really need help on this, I just don't understand where the problem
is.
Almost forgot: The card I use is an aold ISA AVM Card (DMN
init_controller_state: controller 0 is AVM A1 or Fritz!Card)


Thanks a lot in advance,


Jan Lentfer



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1050301205.599.18.camel>