Dynamic IP with PPP remembers ALL old IPs!

Dynamic IP with PPP remembers ALL old IPs!

Post by Mobeen Azha » Sun, 21 Feb 1999 04:00:00



I just upgraded to FreeBSD 2.2.8 from 2.2.5.  I have the system
running STABLE as of 02-18-1999.  I am running user mode ppp and my
addresses are dynamically assigned.  The ppp.conf I am using is the
same that I was using with 2.2.5 with no problems.  However, with
2.2.8 I noticed that upon doing ifconfig tun0, I see a long list of
addresses.  PPP does not seem to be removing the addresses assigned
when it disconnects!  What happens is that the list of address
displayed by ifconfig for tun0 keeps on growing and growing and
growing.

I am not using ppp.linkup or ppp.linkdown.  The ppp configuration is
the same that worked without a flaw under 2.2.5.  Does anybody have
any ideas on what is causing this and how to get rid of the problem?

Thanks in advance for any help.

Regards,
Moby.

 
 
 

Dynamic IP with PPP remembers ALL old IPs!

Post by twc.. » Mon, 22 Feb 1999 04:00:00


Hi,

ppp on 2.2.8 has the "sticky routes" stuff, which I believe
allows the very first net access to work correctly when
in -alias mode.  However it creates that mess of the
growing address list most of which are stale.

By disabling sticky routes ("disable sroutes" in your
ppp.conf) the problem went away.

Hope this helps.  And hope Brian Somers will somehow or
other fix this :)

Regards

  -T.W.Chan-


> I just upgraded to FreeBSD 2.2.8 from 2.2.5.  I have the system
> running STABLE as of 02-18-1999.  I am running user mode ppp and my
> addresses are dynamically assigned.  The ppp.conf I am using is the
> same that I was using with 2.2.5 with no problems.  However, with
> 2.2.8 I noticed that upon doing ifconfig tun0, I see a long list of
> addresses.  PPP does not seem to be removing the addresses assigned
> when it disconnects!  What happens is that the list of address
> displayed by ifconfig for tun0 keeps on growing and growing and
> growing.
> I am not using ppp.linkup or ppp.linkdown.  The ppp configuration is
> the same that worked without a flaw under 2.2.5.  Does anybody have
> any ideas on what is causing this and how to get rid of the problem?
> Thanks in advance for any help.
> Regards,
> Moby.


 
 
 

Dynamic IP with PPP remembers ALL old IPs!

Post by Murali Sundaresa » Mon, 22 Feb 1999 04:00:00



>2.2.8 I noticed that upon doing ifconfig tun0, I see a long list of
>addresses.  PPP does not seem to be removing the addresses assigned
>when it disconnects!  What happens is that the list of address

Clearly due to the "sticky" routes in the newer version of ppp. One
way to get around this problem is to use the "iface clear" command
as in ppp.linkdown.sample
 
 
 

Dynamic IP with PPP remembers ALL old IPs!

Post by Mobeen Azha » Wed, 24 Feb 1999 04:00:00


Thanks to all who responded.  I am going to try those suggestions now
and see what happens.  I think I am going to try setting "disable
sroutes" first, and if it does not work then I will use ppp.linkdown
with "iface clear".

Thanks again,
Moby.

 
 
 

Dynamic IP with PPP remembers ALL old IPs!

Post by Fred Igschwart » Wed, 24 Feb 1999 04:00:00


Thanks for asking that question.
I was just about to ask the same thing!

>Thanks to all who responded.  I am going to try those suggestions now
>and see what happens.  I think I am going to try setting "disable
>sroutes" first, and if it does not work then I will use ppp.linkdown
>with "iface clear".

>Thanks again,
>Moby.

 
 
 

Dynamic IP with PPP remembers ALL old IPs!

Post by Mobeen Azha » Wed, 24 Feb 1999 04:00:00


Ok, here are some results of my tinkering around after receiving all
these suggestions:

1)  I put "disable sroutes" in my ppp.conf.  Even after this, every time
I do ifconfig tun0, I see all the previous addresses.

2)  I put "iface clear" in ppp.linkdown.  After doing this, the whole
thing stopped working.  The machine would dial real quick and then just
stop.  This might have something to do with the paragraph below.

I ought to add that I am running ppp with the following command "ppp
-auto -alias pmdemand".  The FreeBSD machine is acting as an Internet
gateway for a bunch of assorted Micro$oft machines.  I think using
"iface clear" in ppp.linkdown somehow messed up the aliasing or routing
stuff in the BSD box.

One more thing that I am thinking of trying, perhaps tomorrow if I can
find the time, is not to use -alias on the PPP command line and instead
use NATD for IP masquerading.  I am not really too enthusiastic about
doing that since right now everything works, except for the fact of a
growing list of address under tun0.  I am not sure how ICQ, FTP, and
various other things used by my users will do with NATD.  I guess I will
find out!.

Regards,
Moby.


> I just upgraded to FreeBSD 2.2.8 from 2.2.5.  I have the system
> running STABLE as of 02-18-1999.  I am running user mode ppp and my
> addresses are dynamically assigned.  The ppp.conf I am using is the
> same that I was using with 2.2.5 with no problems.  However, with
> 2.2.8 I noticed that upon doing ifconfig tun0, I see a long list of
> addresses.  PPP does not seem to be removing the addresses assigned
> when it disconnects!  What happens is that the list of address
> displayed by ifconfig for tun0 keeps on growing and growing and
> growing.

> I am not using ppp.linkup or ppp.linkdown.  The ppp configuration is
> the same that worked without a flaw under 2.2.5.  Does anybody have
> any ideas on what is causing this and how to get rid of the problem?

> Thanks in advance for any help.

> Regards,
> Moby.

 
 
 

Dynamic IP with PPP remembers ALL old IPs!

Post by Michael Levi » Sat, 27 Feb 1999 04:00:00


Hi!

Quote:>I ought to add that I am running ppp with the following command "ppp
>-auto -alias pmdemand".  The FreeBSD machine is acting as an Internet
>gateway for a bunch of assorted Micro$oft machines.  I think using
>"iface clear" in ppp.linkdown somehow messed up the aliasing or routing
>stuff in the BSD box.

As far as I understood the man ppp, the command-line key "-alias"
now plays new role: how to assign IP addresses for tunX device. In past
versions of FreeBSD this key was just synonym of "enable alias yes"
command from ppp.conf . Then I always wrote "-alias" into start_if.tunX
files (just for assurance).

After installing 2.2.8 I did setup ppp by this way and met the same
problem as you do. So, I thing the first step to avoid its is delete
"-alias" from ppp start file (/etc/start_if.tunX). I'll try it as soon
as possible (I can't stop internet access for our network just for fun).

Have a nice day.

BTW, the part of map ppp:

       iface-alias
         Default: Enabled if -alias is specified.  This option simply tells
!!!>     ppp to add new interface addresses to the interface rather than re-
         placing them.  The option can only be enabled if IP aliasing is en-
         abled (``alias enable yes'').

         With this option enabled, ppp will pass traffic for old interface
ad-
         dresses through the IP alias engine (see libalias(5)),  resulting
in
         the ability (in -auto mode) to properly connect the process that
         caused the PPP link to come up in the first place.

         Disabling IP aliasing with ``alias enable off'' will also disable
         `iface-alias'.

 
 
 

1. tcp/ip LAN IPs and dynamic IP ppp connections....

My Friend and I have a tcp/ip LAN running in our apartment building, and are
having a great deal of trouble with running both the LAN and making PPP
connections w/ dynamic IPs. As of now we are only able to grab the nameserver
of our provider when we first kill the eth0 device and then run pppd. is
there some way that we can "point" to a name server, and at the same time
keep the LAN up.  I was also told that we could possibly ues both PPP
conections simultaneously to some benefit of greater throughput.... If I am
dreaming someone tell me, otherwise perhaps, some advice?  Verbose
explination of the situation would be appreciated, I am in the middle of a
self tought crash course in Linux... thanks...


2. Mac-CD

3. NIC remembers "old" IP address

4. 2.4.x problems (this is *not* a distribution related question!)

5. IP-Masq and Dynamic IPs

6. Building X11R5

7. IP-Masquerading: Trouble with dynamic IPs

8. problem with inn (news server)

9. Need script to dial using PPP with dynamic IPs

10. ipconfig - multiple IPs - swapping IP effect on alias IPs?

11. Anyone using Mobile-IP combined with PPP and dynamic IP address ?

12. IP Masq w/ PPP dynamic IP???

13. newbie: static ip laptop behind dynamic ip ppp link