Hi there!
How can I configure pppd arguments for automatic restart when the client
wents gone ?
Shall I use the /etc/ppp/ip-up and /etc/ppp/ip-down files ?
I’ve wrote both files with these parameters :
ppp0 /dev/ser1 9600 10.1.1.1 10.1.1.2
And it doens’t appear to work.
And I start the pppd with these parameters :
in local : pppd 10.1.1.1:10.1.1.2 9600 /dev/ser1
in remote : pppd 10.1.1.2:10.1.1.1 9600 /dev/ser1
The pppd application works fine until I shutdown local or remote
machine. Thus,the other machine slays pppd. I don’t want that
it happens !
What must I do ?
Regards,
Ricardo Az : ricardoaz@terra.com.br
Ricardo Az <ricardoaz@terra.com.br> wrote:
Hi there!
How can I configure pppd arguments for automatic restart when the client
wents gone ?
Shall I use the /etc/ppp/ip-up and /etc/ppp/ip-down files ?
I’ve wrote both files with these parameters :
ppp0 /dev/ser1 9600 10.1.1.1 10.1.1.2
And it doens’t appear to work.
In /etc/ppp/ip-down, try:
sleep 5
pppd <local_ip>:<remote_ip> 9600 /dev/ser1
See how it works for you.
Another way is start pppd as:
pppd <local_ip>:<remote_ip> 9600 /dev/ser1 persist
-xtang
And I start the pppd with these parameters :
in local : pppd 10.1.1.1:10.1.1.2 9600 /dev/ser1
in remote : pppd 10.1.1.2:10.1.1.1 9600 /dev/ser1
The pppd application works fine until I shutdown local or remote
machine. Thus,the other machine slays pppd. I don’t want that
it happens !
What must I do ?
Regards,
Ricardo Az : > ricardoaz@terra.com.br
The soluction is getting closer.
I´ve used these settings in /etc/ppp/ip-down file:
sleep 5
pppd : 9600
And it remains not working.
However, I´ve traced the argument “persist” in :
“pppd : 9600 nodetach persist”
It does 10 times a restart in pppd, every 30 seconds, while the link isn´t
up.
I woud like that pppd does a restart forever.
Is it possible ? Or it´s a Neutrino’s bug ?
Ricardo Az <ricardoaz@terra.com.br> wrote:
However, I’ve traced the argument “persist” in :
“pppd : 9600 nodetach persist”
It does 10 times a restart in pppd, every 30 seconds, while the link isn’t
up.
Only if 10 tries are all faild.
I woud like that pppd does a restart forever.
Try add “maxfail 0” in pppd command line.
Another alternative is use shell loop:
while true; do
pppd : nodetach
done
-xtang
Thank you very much,Xiaodan Tang !
It’s working!!
pppd ip1:ip2 </dev/serx> persist nodetach maxfail 0
Reards,
Ricardo Az <ricardoaz@terra.com.br>