From owner-freebsd-questions Fri Jul 4 05:03:29 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id FAA22611 for questions-outgoing; Fri, 4 Jul 1997 05:03:29 -0700 (PDT) Received: from chain-gateway.iafrica.com (tkO74HxH2q2n5RADfNtar97R/pZVWwsb@chain-gateway.iafrica.com [196.31.1.126]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id FAA22606 for ; Fri, 4 Jul 1997 05:03:22 -0700 (PDT) Received: from localhost (khetan@localhost) by chain-gateway.iafrica.com (8.8.5/8.8.5) with SMTP id OAA07545 for ; Fri, 4 Jul 1997 14:03:19 +0200 (SAT) Date: Fri, 4 Jul 1997 14:03:19 +0200 (SAT) From: Khetan Gajjar Reply-To: Khetan Gajjar To: questions@freebsd.org Subject: IJPPP and leased line problem(s) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi. I've got a FreeBSD box connected via a analogue leased line to my ISP. I'm using userland ppp, with the following ppp.conf file : default: set device /dev/cuaa0 set speed 38400 disable lqr deny lqr leasedline: set timeout 0 set ifaddr 196.7.74.174 196.7.0.145 delete ALL add 0 0 HISADDR set openmode active (196.7.74.174 is my IP address, 196.7.0.145 is the static IP address assigned to the Portmaster). I try to launch this with ppp -auto leasedline, but that often fails. So, What I do is run it on a spare terminal, enter my password and type dial leasedline. Hey presto, that works. Question 1 : why does it not work with -auto ? PS. No username/password is necessary - the Portmaster just starts speaking PPP immediately. The next thing is that sometimes the line goes down. In a case like that, the modems will re-negotiate. Is there anything I can do to user-ppp which will cause it to re-initialise the PPP connection ? Question 2 : how do I get user-PPP to re-start itself when PPP dies ? The following thing is that often the add 0 0 HISADDR line does nothing. I have to delete ALL, and re-enter add 0 0 HISADDR, and then it works. Sometimes, this happens quite often. Question 3 : who does the routing fail, and more importantly, how do I get the routing to work when noone is there to type it in ? Question 4 : how do I add the equivalent command of route 196.7.74.174 -interface lo0 using user-ppp ? Thanks very much to anyone who can help. --- Khetan Gajjar | khetan@os.org.za www.freebsd.os.org.za/~khetan/ | khetan@iafrica.com PGP : finger khetan@chain.freebsd.os.org.za | I run FreeBSD - www.za.freebsd.org UUNET Internet Africa Support | 0800-030-002 & help@iafrica.com The idea is to die young as late as possible. -- Ashley Montagu