From owner-freebsd-isdn Sun Aug 15 22:23: 9 1999 Delivered-To: freebsd-isdn@freebsd.org Received: from elch.de.uu.net (elch.de.uu.net [192.76.144.55]) by hub.freebsd.org (Postfix) with ESMTP id 8A40614F10 for ; Sun, 15 Aug 1999 22:23:04 -0700 (PDT) (envelope-from ben.bucksch@uumail.de) Received: from uumail.de (pec-40.au1.wi.uunet.de [149.228.146.40]) by elch.de.uu.net (5.5.5/5.5.5) with ESMTP id HAA10178; Mon, 16 Aug 1999 07:18:51 +0200 (MET DST) Message-ID: <37B79FCA.C84ED88@uumail.de> Date: Mon, 16 Aug 1999 07:21:14 +0200 From: Ben Bucksch X-Mailer: Mozilla 4.6 [en] (X11; I; Linux 2.0.36 i686) X-Accept-Language: de MIME-Version: 1.0 To: Klaus Herrmann Cc: freebsd-isdn@FreeBSD.org Subject: Re: dynamic provider ip References: <19990716121943.1281.rocketmail@web905.mail.yahoo.com> <99071716170200.00347@wunderland> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > My isp has a dynamic ip. What can I do ? > ifconfig isp0 0.0.0.0 0.0.0.1 ... > just use 0.0.0.1 as provider ip. I tried to use that, but with both using a static gatewayor 0.0.0.1 as "provider ip", netstat shows gateway and destination swapped: Destination Gateway Flags Refs Use Mtu Interface 195.125.130.33 default UH 0 0 - isp0 or 0.0.0.1 default UH 0 0 - isp0 I got no connection. So I wrote the following script to change that: route delete default ifconfig isp0 delete -link1 down spppcontrol isp0 myauthproto=pap myauthname="..." myauthsecret="..." ifconfig isp0 0.0.0.0 0.0.0.1 netmask 0xffffffff link1 sleep 5 route delete default route add default `ifconfig isp0 | sed -n 2p | sed "\:inet:s///" |sed "\:--> 0.0.0.1 netmask 0xffffffff:s///"` After that, it seems to work. Although, I have to run the script twice. After the first run, I only get 0.0.0.1 as gateway. I don't know, if I'm misunderstanding something (I'm new to unix, as you can see from my use of the "red" editor :-)). Ben To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message