From owner-freebsd-questions Wed Apr 10 19:02:06 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id TAA26851 for questions-outgoing; Wed, 10 Apr 1996 19:02:06 -0700 (PDT) Received: from vent.pipex.net (root@vent.pipex.net [158.43.128.5]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id TAA26846 for ; Wed, 10 Apr 1996 19:02:02 -0700 (PDT) Received: from dial.pipex.com by vent.pipex.net (8.6.12/PIPEX simple 1.20) id DAA10992; Thu, 11 Apr 1996 03:01:57 +0100 Received: (from jraynard@localhost) by dial.pipex.com (8.6.12/8.6.12) id CAA02233; Wed, 10 Apr 1996 02:06:30 GMT Date: Wed, 10 Apr 1996 02:06:30 GMT From: James Raynard Message-Id: <199604100206.CAA02233@dial.pipex.com> To: crosswjo@hp-pcd.cv.hp.com CC: questions@freebsd.org In-reply-to: <9604081753.AA11261@hpcvusd.cv.hp.com> (message from John Crosswhite on Mon, 08 Apr 96 10:53:15 -0700) Subject: Re: User PPP rtinit problems... Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >>>>> John Crosswhite writes: > > Now, this might be associated with the same problem. My provider allocates > IPs dynamically. What kind of a line should I put in my /etc/hosts > file?? I say this because the sysconfig line for ifconfig references > the hostname in hosts. If the wrong IP is given in hosts, how can > tun0 be configured correctly? As far as I am aware, ppp ignores the contents of the /etc/hosts file and uses the IP addresses given to the `set ifaddr' command. (See the section `Connecting with your service provider' in the ppp man page). I use `set ifaddr 0 0' for dynamic addressing, which means that ppp uses the address the other end gives it. > So, what it comes down to is this. How can tun0 be properly configured on > startup if I give it a bogus IP which will be different from my Provider's > allocated IP? Don't bother configuring tun0 at startup - ppp will configure it for you. > Anyone have a working dynamic IP user PPP configuration? Could you send me > your /etc/hosts, /etc/sysconfig, and ppp configuration files? Here's my ppp.conf file (with certain details obscured 8-) default: set device /dev/cuaa1 set speed 57600 disable lqr deny lqr set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATE1Q0 OK-AT-OK \\dATDT\\T TIMEOUT 40 CONNECT" pipex: set phone 123456789 set login "TIMEOUT 5 login:-\\r-login: MY_LOG word: MY_PASS ocol: ppp" set timeout 120 set ifaddr 0 0 James