I haven't used the demand dialing feature yet, but my understanding of the
feature is that the only thing that is automatic is the actual dialing
feature. The pppd daemon and the interface need to be up and running,
waiting for a packet to tell it to dial out. It is also my understanding
that if you use the 'demand' option, pppd does not automatically dial out
upon startup. You could then have it start on bootup and remain up until it
is ready to dial out. This assumes that you allow pppd to initiate the
dialing and not have a dialer dial out and then start up pppd. The demand
option implies the 'persist' option, which allows pppd to remain running
after the connection times out to wait for another wakeup packet.
It only makes sense that there has to be an interface running and a route
pointing to it in order for a 'wakeup' packet to know that it needs to go
out that interface.
Mike Childers
----- Original Message -----
From: Nicolas Blanc <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Monday, September 27, 1999 12:31 AM
Subject: Re: PPP Demand Dialing
> On 27 Sep, Rajiv Ghai wrote:
> > Hi Nicolas,
> > Thanks for the tip. I have checked the var/log/messages and there does
not
> > appear to be anything strange there. It shows the chat script worked,
> > followed by connected and finally IP address allocation.
> > To connect to my ISP I use the command ./ifup-ppp ifcfg-ppp0 &
> > The Linux box dials out, chat script executes and I get connected with
> > remote and local IP address allocated dynamically. I then deliberately
do
> > nothing until the connection times out and disconnects after a few
minutes.
> > At the prompt I then telnet any site on the internet and the dialer
fires
> > up again, makes the connection again to my ISP. So demand dialing works
fine.
> > My question is: Is this the normal way that demand dialing is supposed
to
> > work ?
>
> The second part of your experience seems good but why are you obliged
> to connect manually one time before???
> you should first try to telnet somewhere else and see if the link is
> establishing. if not, diald need some more tunning, it's the reason why
> you've to increase debugging (in diald.conf)
>
> > Why cant I just telnet at the prompt to fire up the connection the first
> > time ?
>
> see up ;-}
> > The second option I mentioned is that I activate the PPP interface at
boot
> > time (from selecting the relevant ppp settings in linuxconf). As the
linux
> > box boots up the machine dials out and connects to the internet. I wait
a
> > few minutes until the connection times out and try a telnet. It fires up
> > again.
> i had the same problem because in the /etc/rc3.d (or rc5.d) directory,
> there was two Sxxdiald scripts (???), one cause diald to start before
> sendmail and then sendmail initiated the connexion ...have a look at it
> what 's strange with that fact is that diald seems to work well ...
>
> > It seems to me that for ppp demand dialing to work an initial connection
> > must be made to the ISP (or other ppp link) manually after booting the
> > system or automatically at bootup. Is this correct ?
> > There is no LAN involved here. Just a standalone linux box at this time.
> > What I did notice in both cases is that after doing a dialout and
timeout
> > the pppd daemon is still running when I check the process list using ps
ax.
> > Is there a way to get the pppd daemon running in demand dialing mode at
> > boot up without actually dialing out ?
>
> I 'm not "guruh" enough to answer but i think that pppd don't need to
> work until diald ask for it so you musn't see it with ps eax.
> Try to see at ifconfig when you're not connected, you should only have
> lo and tap0 interfaces presents.
>
> > Has anyone else run into the same problem ?. I saw on the diald mailing
> > list that several people had this problem using diald but no one posted
a
> > solution. Perhaps they just leave the machine on 24hrs a day so it
doesnt
> > really matter wasting a few minutes of access time during bootup.
> > Regards
> > Rajiv
> >
>
> Diald is sometime very strange for begginers like me ......
>
> Ciao
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
> the body of a message to [EMAIL PROTECTED]
>