[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dial on demand, works & perfectly ....



Dave Selby wrote:
OK heres my recepie for dial on demand, works great, doesnt seem to suffer from loseing first lookup ...


Debian 3.0, pppd

Oh what a world of trouble !!!!!
First kill the default diald demon

for /etc/rc2.d to /etc/rc5.d
mv S20diald _S20diald

setup pppd with
pppconfig

BEWARE, the default connection for everything is provider, use it. pppconfig also sometimes screws up, delete provider and start again.

NTL uses chat, yes chat authentication !!!

pppd options are held in
/etc/ppp/peers/provider

the chat script is held in
/etc/chatscripts/provider

The pppd options needed are ...

# This optionfile was generated by pppconfig 2.0.10.
#
#
hide-password
noauth
connect "/usr/sbin/chat -v -f /etc/chatscripts/provider"
debug
/dev/modem
115200
defaultroute
noipdefault
user XXXX.XXXX
ipparam provider
demand
usepeerdns
idle 240
holdoff 3
And the chat script is ....

# This chatfile was generated by pppconfig 2.0.10.
# Please do not delete any of the comments.  Pppconfig needs them.
#
# ispauth PAP
# abortstring
ABORT BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE' ABORT 'NO DIAL TONE' ABORT 'NO ANSWER' ABORT DELAYED
# modeminit
'' ATZ
# ispnumber
OK-AT-OK ATDT126308005190100
# ispconnect
CONNECT \d\c
# prelogin
# ispname
# isppassword
# postlogin
# end of pppconfig stuff

To start the dial on demand link
pon

To stop the dial on demand link
poff

Ensure authorised users are entered in pppconfig.
Put pon in ~/.kde/Autostart for all users who want it.


GOOD LUCK
dave



One more thing to make things a bit easier...if you want.

Rename "/etc/ppp/no_ppp_on_boot" to "/etc/ppp/ppp_on_boot", and the next time you bootup, pppd will be started and run right up to the point of dialing, but will hold. The first packet that comes along that needs to go outside the network will trigger dialing! No more need to mess around with pon or poff! No need to put anything in ~/.kde/Autostart.

You might want to open up this file and read the comments in there. There are some useful things available if you un-comment a few things.

Oh, BTW, you can remove the entire diald package if you want. It is no longer a "player' if this works for you.

Congrats!

Cheers,
-Don Spoon-




Reply to: