Date: Mon, 16 Aug 1999 07:21:14 +0200 From: Ben Bucksch <ben.bucksch@uumail.de> To: Klaus Herrmann <Klaus.Herrmann@gmx.net> Cc: freebsd-isdn@FreeBSD.org Subject: Re: dynamic provider ip Message-ID: <37B79FCA.C84ED88@uumail.de> References: <19990716121943.1281.rocketmail@web905.mail.yahoo.com> <99071716170200.00347@wunderland>
next in thread | previous in thread | raw e-mail | index | archive | help
> > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?37B79FCA.C84ED88>