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