Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 05-22-2004, 10:04 AM   #1
Registered: Jan 2003
Location: AU
Distribution: Whatever - mainly Red Hat
Posts: 32

Rep: Reputation: 15
ppp0 and startup script

The scenerio:

i am running Red Hat 9.0

i connect to the internet with a dial up 56k modem

i created the connection settings with kpppd but got rid of the GUI

now i connect by typing ifup ppp0

i want to make a script run automatically as soon as i have sucessfully connected to the internet.

I have no idea how to do this, i have read things about making if-up.local the script and putting it somewhere but im not sure where or if that is even right
Can anyone tell me where i should reference the script so it executes after a login?

Thanks in Advance :-)
Old 05-22-2004, 10:58 PM   #2
Senior Member
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Rep: Reputation: 58
Do you have a script /etc/ppp/ip-up? (And also ip-down, which is just a symlink to ip-up?)
I used to start and stop squid from that script.
Just have a look at that script - it is easy to read if you have some bash knowledge - and you will see where to insert the command calling your script.

Last edited by J_Szucs; 05-22-2004 at 10:59 PM.
Old 05-23-2004, 10:35 AM   #3
LQ Newbie
Registered: Aug 2003
Posts: 3

Rep: Reputation: 0
similar to what J_Szucs says, I know RedHat has that file and also /etc/ppp/ip-up.local, this is the file they recommend you add required scripts to run once the pppd is running.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
eth1 and ppp0, need to send UDP packets through ppp0 smhs Linux - Networking 2 07-12-2005 08:54 AM
ADSL-STATUS: linked to ppp0 but ppp0 seems to be down. mikkime23 Linux - Networking 1 01-01-2005 11:00 AM
Endless Loop: ppp0 Unregister Netdevice: waiting for ppp0 to be free. oberon-ken-obi Linux - Networking 1 07-20-2004 11:04 PM
how to run script on event ppp0 interface going down ? qwijibow Linux - Networking 4 02-24-2004 06:08 AM
ppp0 device startup Kane2002 Linux - Newbie 3 08-23-2003 01:59 PM

All times are GMT -5. The time now is 06:21 PM.

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