From owner-freebsd-questions Sun Sep 29 18:50: 4 2002 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 66E3237B401 for ; Sun, 29 Sep 2002 18:50:03 -0700 (PDT) Received: from mta7.pltn13.pbi.net (mta7.pltn13.pbi.net [64.164.98.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2060C43E42 for ; Sun, 29 Sep 2002 18:50:03 -0700 (PDT) (envelope-from mbsd@pacbell.net) Received: from atlas ([64.168.24.134]) by mta7.pltn13.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with ESMTP id <0H3800IFEAFEQM@mta7.pltn13.pbi.net> for freebsd-questions@FreeBSD.org; Sun, 29 Sep 2002 18:50:02 -0700 (PDT) Date: Sun, 29 Sep 2002 18:50:02 -0700 (PDT) From: =?ISO-8859-1?Q?Mikko_Ty=F6l=E4j=E4rvi?= Subject: Re: PPP, dynamic IPs, and handling renumbering In-reply-to: <20020930002532.GC430@keyslapper.org> X-X-Sender: mikko@atlas.home To: FreeBSD Questions Message-id: <20020929184245.C308-100000@atlas.home> MIME-version: 1.0 Content-type: TEXT/PLAIN; charset=US-ASCII Content-transfer-encoding: 7BIT 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 Sun, 29 Sep 2002, Louis LeBlanc wrote: > I have a new question. I have ppp set up on interface tun0, got my IP > and all, handling the DSL connection quite nicely - so far. > > Now the question: Since the IP is dynamic, I have some things that > need doing anytime it changes, like update the Apache config and > restart it, update the zoneedit dns records so I still get my mail, > etc. Where do I handle this? Is there an exit hook I can specify for > ppp to call when it gets a new IP? The "hooks" go in /etc/ppp/ppp.linkup and /etc/ppp/ppp.linkdown. The ppp(8) man page is kind of long, but well worth the read. There are assorted sample files in /usr/share/examples/ppp/ too. > I can't even find the dhcp lease or the network broadcast info. When > I was with AT&T, it was basic DHCP and it all went into > /var/db/dhclient.leases. The only place I can get the IP from now is > ifconfig tun0 [...] You are not getting your address via DHCP, as you are using PPP which does its own address negotiation. One of these days I will understand the point of running PPP over ethernet... $.02, /Mikko To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message