Normally, after IP connectivity is established the ppp daemon calls /etc/ppp/ip-up.
You could check if there is already a script on that location, and modify it, or else create a new one.
If you specify the option "usepeerdns" in the PPP options file then this script will be able to access the nameservers through the variables $DNS1 and $DNS2.
For the default route: if you specify "defaultroute" in the PPP options file, normally
then ppp will take care of setting the default route, so you no longer need to do this manually.
Let me know if it works,
nukkel
|