LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-19-2005, 07:39 AM   #1
maginotjr
Member
 
Registered: Aug 2004
Location: BR - Floripa
Distribution: Ubuntu 9.10 - 2.6.x.x
Posts: 661

Rep: Reputation: 35
how to run script after connecting with pppd


I have seted a GPRS connection and it uses pppd to call the Cellphone to connect through bluetooth...
but after running pppd call gprs I have to put by hand the DNS and the route. if I run the if-up.local script the nameserver are inserted in /etc/resolve.conf but still have to add the default route.

What I realy want to do was that this 2 things was made automaticly after connecting...
I remember that this is possible but I dont remember how, I holpe someone could help-me on this...


regards [ ]ś
 
Old 11-20-2005, 07:12 AM   #2
nukkel
Member
 
Registered: Mar 2003
Location: Belgium
Distribution: Hardened gentoo
Posts: 323

Rep: Reputation: 30
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems connecting to ADSL (with pppd / pppoatm) gnirtS Linux - Networking 1 03-07-2005 04:34 AM
PPPD Script problem when cron-scheduling the script andresurzagasti Linux - Networking 0 11-24-2004 02:54 PM
connecting to net by pppd - problems archish Slackware 17 02-06-2004 04:16 PM
Help with connecting Two Pc's Via PPPd (Red Hat Vr 7.3) anamk001 Red Hat 0 09-11-2003 06:49 PM
Help with connecting Two Pc's Via PPPd (Red Hat Vr 7.3) anamk001 Linux - Networking 0 09-11-2003 01:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration