Setting up PPP and KPPPD
The default profile is usually 0 (this can be changed via AT&Y.) The profile
currently in use is called the "active" profile.
When you change a setting, the active profile is modified. The ATZ command will
have the modem load the default profile, erasing any changes you have made.
To save changes, Load the profile you want to change via ATZn (where n is the
profile number). Make the changes you want, and then save it with AT&Wn.
To have kppp use the profile you want, change the modem initialisation string
(Settings/More/Modem/Modem Commands/Initialisation String.) For example ATZ1
will have the kppp reset the modem and use stored profile #1.
If you want reset you modem to get back to some known starting point, use AT&F&W
to set the active profile to the factory defaults, and store those settings
as the default profile.
Click on Modem Commands, and set your favorite initialization string: In most
cases "AT&FX1L3S10=200" should be enough. If you have to dial
Pulse instead of Tone, change the Dial String from ATDT to ATDP. Click on OK.
Now to see if your modem is talking to the serial port, click on Query modem,
after a few seconds you should see some results, and should also see the send
or receive lights on your modem flashing. If they don't (and if Data Terminal
Ready-DTR dosen't come on) then you have selected the wrong modem port, correct
that in the Device setting. If the lights flash but you still get an error message,
your port speed in Device is probably too high, change it to 57600 or lower.
When kppp opens the serial port, the DTR line is pulled low, on an external
modem, you can see the DTR (or TR) light come on when this happens. When the
TR light goes out (because kppp has closed the serial port, or something worse!),
the modem will hang-up
Finally, click on the PPP tab, and enable all settings except "Quit on
Disconnect". Set pppd timeout to 30 seconds. Click on OK. Repeat this entire
sequence for any other dialup accounts you want to define. Create the file /etc/ppp/ip-up.local,
and put the following commands.
/usr/bin/killall -9 named
grep -v pppconnection /etc/hosts > /tmp/hosts.tmp
echo "$4 pppconnection" >> /tmp/hosts.tmp
mv /tmp/hosts.tmp /etc/hosts
ntpdate 188.8.131.52 &> /dev/null &