Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jan 2003 17:00:02 -0500
From:      "Doug Reynolds" <mav@wastegate.net>
To:        "FreeBSD Questions" <freebsd-questions@FreeBSD.org>, "Louis LeBlanc" <leblanc+freebsd@keyslapper.org>
Subject:   Re: PPP strangeness - hosed my /etc/hosts file
Message-ID:  <20030122215957.3CB5348463@wastegate.net>
In-Reply-To: <20030122174911.GC95122@keyslapper.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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<UP,POINTOPOINT,RUNNING,MULTICAST> 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
>not supposed to be the case, but I don't know how I should fix it.  My
>/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

---
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030122215957.3CB5348463>