Date: Wed, 10 Apr 1996 02:06:30 GMT From: James Raynard <jraynard@dial.pipex.com> To: crosswjo@hp-pcd.cv.hp.com Cc: questions@freebsd.org Subject: Re: User PPP rtinit problems... Message-ID: <199604100206.CAA02233@dial.pipex.com> In-Reply-To: <9604081753.AA11261@hpcvusd.cv.hp.com> (message from John Crosswhite on Mon, 08 Apr 96 10:53:15 -0700)
next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> John Crosswhite <crosswjo@hpcvusd.cv.hp.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199604100206.CAA02233>