From owner-freebsd-questions Fri Jan 24 11:30: 7 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6030F37B401 for ; Fri, 24 Jan 2003 11:30:05 -0800 (PST) Received: from sccrmhc01.attbi.com (sccrmhc01.attbi.com [204.127.202.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id 99BCB43F1E for ; Fri, 24 Jan 2003 11:30:04 -0800 (PST) (envelope-from mav@wastegate.net) Received: from wastegate.net (12-226-185-104.client.attbi.com[12.226.185.104]) by sccrmhc01.attbi.com (sccrmhc01) with ESMTP id <2003012419300300100hq225e>; Fri, 24 Jan 2003 19:30:03 +0000 Received: from MOTHER (mother.wg.local [192.168.1.5]) by wastegate.net (Postfix) with ESMTP id 6E72A48463; Fri, 24 Jan 2003 14:31:33 -0500 (EST) From: "Doug Reynolds" To: "FreeBSD Questions" , "Louis LeBlanc" Date: Fri, 24 Jan 2003 14:31:35 -0500 X-Mailer: PMMail 2000 Professional (2.20.2657) For Windows 2000 (5.1.2600) In-Reply-To: <20030122222229.GH95122@keyslapper.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: Re: PPP strangeness - hosed my /etc/hosts file Message-Id: <20030124193133.6E72A48463@wastegate.net> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 22 Jan 2003 17:22:29 -0500, Louis LeBlanc wrote: >On 01/22/03 05:00 PM, Doug Reynolds sat at the `puter and typed: >> On Wed, 22 Jan 2003 12:49:12 -0500, Louis LeBlanc wrote: >> >> >Hey all. I've been with Verizon DSL for 3 or 4 months now, and just >> >when I think I'm getting things right, I start seeing some really >> >screwy behavior. ifconfig shows the following for the PPP interface >> >(tun0) >> >tun0: flags=8051 mtu 1492 >> > inet6 fe80::2a0:c9ff:fe74:12a3%tun0 prefixlen 64 scopeid 0x8 >> > inet 68.160.2.89 --> 10.9.64.1 netmask 0xff000000 >> > inet 68.160.25.67 --> 10.9.76.1 netmask 0xff000000 >> > Opened by PID 67 >> > >> >The weird thing is that the first IP is not valid. I'm sure this is > >> >/etc/hosts and httpd.conf files were hosed because of it, so I'm going >> >to have to figure out how to spot this problem in the scripts, and at >> >least warn about it, if not fix it on the fly. >> >> sounds like your being assigned a new ip address and not getting the >> routing cleared. on dialup, i add this: >> >> /etc/ppp/ppp.linkup >> /etc/ppp/ppp.linkdown >> >> and add >> >> CONNECTIONNAME: <-- change to your connection name >> iface clear >> >> >> and that does the trick for me.. with dialup, ez-ipupdate would grab >> the first one (which was the previous IP) and send it in wrong >> > >I started to ask what ez-ipupdate was, but I took a look at the ports. >I get my IP updated fine on zoneedit, but it doesn't require the IP in >the request. I just have ppp.etherup call lynx for each domain as >follows: > >/usr/local/bin/lynx -dump -auth=UID:PASS 'http://dynamic.zoneedit.com/auth/dynamic.html?host=mydomain.org' > >Zoneedit gets the IP from the tcp connection anyway, so I got lucky there. > >I take it you mean that you added iface clear to the ppp.linkdown? I >thought I was supposed to add it to ppp.conf. > >I'm also trying to figure out the best way to kill ppp and restart the >connection clean without having to reboot the machine. Any ideas >there? at least for me, I had to add iface clear to ppp.linkdown as well, because it would then delete it after the connection is dropped. about killing ppp, I always do a 'killall ppp' and that always seems to do the trick.. you might add the set server line to add a pppctl socket. it is as good as running it in interactive mode, and you can spy on the connection and open/close/etc to ppp --- doug reynolds | the maverick | mav@wastegate.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message