On Friday 29 August 2003 12:04, Yehuda Berlinger wrote:
> I would like to set up my working pptp command to automatically run when
> I start up by putting it into an rc file. I'm using redhat 9.0.

Instead of hacking your startup scripts, you can simply add the following 
option to your PPP options:
  
pty "pptp 10.0.0.138 --nolaunchpppd"
  
This configuration gives you two benefits:
1. You can use the system standard configuration files, ifup and ifdown 
utilities and the system will start your connection as soon as it starts the 
Networking service.
 
2. You can use pppd's option "persist", which saves you the need of writing 
custom ADSL reconnect-if-disconnected scripts.
 
To add the "pty" option to your PPP options:
1. If you configure your ISP in RedHat's standard way (in 
/etc/sysconfig/network-scripts, or with their "setup" tool), edit 
/etc/sysconfig/network-scripts/ifcfg-ppp0 and add:
 
        PPPOPTIONS="pty \"pptp 10.0.0.138 --nolaunchpppd\""
 
2. If you configure your ISP in /etc/ppp/peers/ISP, simply add it to the ISP's 
configuration file.
 
 
P.S. Replace 10.0.0.138 with your modem's IP.
 

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to