Date: Mon, 02 Sep 2002 15:11:05 +0200 From: Werner Rips <wrips@kordel.de> To: freebsd-isdn@freebsd.org Subject: i4brbch - problems Message-ID: <3D736369.A406817D@kordel.de>
next in thread | raw e-mail | index | archive | help
Please help on i4brbch! I have a FreeBSD4.6 box that can do a connection to my isp with rc.isdn start that uses /etc/isdn/isdnd.rc. Can someone help me how to do a connection with ppp.conf so that i get a multilink connection? With the ppp.conf script and the devices i4brbch0 and i4brbch1 all i get is: Phase: 1: /dev/i4brbch0: No carrier (increase "set cd" from 6?) Phase: 2: /dev/i4brbch1: No carrier (increase "set cd" from 6?) Thanks in advance, Werner Rips # /etc/rc.isdn - file #!/bin/sh #--------------------------------------------------------------------------- # # /etc/rc.isdn - isdn4bsd startup script # -------------------------------------- # # $Id: rc.isdn,v 1.1.1.1 1997/12/14 14:26:32 hm Exp $ # # last edit-date: [Thu Dec 11 15:11:33 1997] # Modified by Gary Jennejohn #--------------------------------------------------------------------------- # output device for fullscreen mode - must be set correctly out_dev=/dev/ttyv4 # terminal type for fullscreen mode out_typ=cons25 restart=0 # check usage if [ $# -gt 1 ] then echo "usage: /etc/rc.isdn [start|restart|stop]" exit 1 fi # get the first param if [ $# -ge 1 ] then first=$1 fi # restart or stop ? if [ "x$first" = "xrestart" ] then restart=1 kill `cat /var/run/isdnd.pid` sleep 3 elif [ "x$1" = "xstop" ] then echo 'terminating the isdn4bsd ISDN management daemon ...' kill `cat /var/run/isdnd.pid` route delete default ifconfig isp0 down rm /etc/resolv.conf exit 0 fi if [ $restart -eq 0 ] then echo "configuring I4BISDN/PPP-interface isp0" # debug can be removed after everything works ifconfig isp0 link1 0.0.0.0 0.0.0.1 netmask 0xffffffff debug ifconfig isp0 down # NOTE: at some time ispppcontrol will be replaced with /sbin/spppcontrol ! # myauthproto is chap or pap - set this correctly # /usr/sbin/ispppcontrol isp0 myauthproto=pap myauthname=<set this> myauthsecret=<set this> hisauthproto=none callin /sbin/spppcontrol isp0 myauthproto=pap myauthname=001052768288 myauthsecret=5119 hisauthproto=none callin else ifconfig isp0 down route delete default rm /etc/resolv.conf fi if [ -f /var/log/isdnd.log ] then echo "rotating /var/log/isdnd.log file ..." cd /var/log if [ -f isdnd.log4 ] ; then mv -f isdnd.log4 isdnd.log5 ; fi if [ -f isdnd.log3 ] ; then mv -f isdnd.log3 isdnd.log4 ; fi if [ -f isdnd.log2 ] ; then mv -f isdnd.log2 isdnd.log3 ; fi if [ -f isdnd.log1 ] ; then mv -f isdnd.log1 isdnd.log2 ; fi if [ -f isdnd.log0 ] ; then mv -f isdnd.log0 isdnd.log1 ; fi cp -pf isdnd.log isdnd.log0 cat /dev/null > isdnd.log fi # start the isdn daemon if [ -x /usr/sbin/isdnd ] then if [ $restart -eq 1 ] then echo 'restarting the isdn4bsd ISDN management daemon ...' else echo 'starting the isdn4bsd ISDN management daemon ...' fi /usr/sbin/isdnd -d0xf9 -f -r $out_dev -t $out_typ fi # can be enabled to turn on debugging #if [ -x /usr/sbin/isdndebug -a $restart -eq 0 ] #then #/usr/sbin/isdndebug -l 1 -s 0x2000 #echo 'turning on layer4 dial trace...' #/usr/sbin/isdndebug -l 4 -s 9 #fi echo "Enabling isp0" ifconfig isp0 up echo 'adding default route' route add default -interface isp0 cp /etc/resolv.conf.otelo /etc/resolv.conf # /etc/isdnd.rc - file # example of a configuration file for the isdn daemon & user-ppp # # $FreeBSD: src/share/examples/ppp/isdnd.rc,v 1.2.4.1 2000/11/30 23:12:22 brian Exp $ # SYSTEM section: isdnd global configuration parameters system # accounting acctall = on # generate info for everything acctfile = /var/log/isdnd.acct # name & location of accounting file useacctfile = yes # generate accouting info to file isdntime = on monitor-allowed = no # global switch: monitor on/off # User-ppp example entry name = OTELO1 usrdevicename = isp usrdeviceunit = 0 isdncontroller = 0 isdnchannel = -1 local-phone-incoming = 02594992189 remote-phone-incoming = * local-phone-dialout = 02594992189 # This *MUST* be your local number remote-phone-dialout = 00191510 # Einwahlnummer bei OTELO remdial-handling = first dialin-reaction = ignore dialout-type = normal b1protocol = hdlc idletime-incoming = 2000 # Should be larger than ppp's timeout idletime-outgoing = 2000 # Should be larger than ppp's timeout unitlength = 0 unitlengthsrc = conf dialretries = 1 dialrandincr = on recoverytime = 1 # Should be smaller than ppp's redial usedown = off downtries = 2 downtime = 30 entry name = OTELO2 usrdevicename = isp usrdeviceunit = 1 isdncontroller = 0 isdnchannel = -1 local-phone-incoming = 02594992189 remote-phone-incoming = * local-phone-dialout = 02594992189 # This *MUST* be your local number remote-phone-dialout = 00191510 # Einwahlnummer bei OTELO remdial-handling = first dialin-reaction = accept dialout-type = normal b1protocol = hdlc idletime-incoming = 2000 # Should be larger than ppp's timeout idletime-outgoing = 2000 # Should be larger than ppp's timeout unitlength = 0 unitlengthsrc = conf dialretries = 1 dialrandincr = on recoverytime = 1 # Should be smaller than ppp's redial usedown = off downtries = 2 downtime = 30 #/etc/ppp.conf - file default: set device /dev/i4brbch0 /dev/i4brbch1 # Raw B-channel devices set speed sync # ISDN is synchronous set ctsrts off otelo: set phone 00191510 # Replace this with your ISPs phone number set authname 001052768288 # Replace these with your login name & password. set authkey 5119 # 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 # enable dns # Ask the peer what to put in resolv.conf # Take a wild guess at an IP number and let the other side decide set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 add! default hisaddr set mrru 1500 # Multilink mode please set mru 1504 # Room for the MP header # Gary meint set mru 1492 waehre besser clone 1,2 # Two new links link deflink rm # And get rid of the original one link 1,2 set mode ddial # Schalte beide B-Kanaele sofort ein # link * set mode auto # Automatically manage the second link # set autoload 10 80 30 # Down @10% usage, up at 80%, 30s sample # set server /var/run/ppp/ppp-isdn "" 0177 # The diagnostic port (-rw-------) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D736369.A406817D>