INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

pppd won't re-establish link after one client reboots

pppd won't re-establish link after one client reboots

(OP)
I have a major problem with a system i have. Mind you, I can't discuss it in detail as it's a military application. I need to know if any of you have some ppp experience/expertise!

This is what I have: (This may not be the clearest diagram ;) )

Client A-> usb-to-rs422 -> wireless analog radio --->

Client B-> usb-to-rs422 -> wireless analog radio --->

Client C->usb-to-rs422 -> wireless analog radio --->



<----> wireless analog radio -> rs422-to-usb -> Server


We use a pppd process to connect between the systems. The server runs through a loop to setup ip addresses on the clients.

Server command: (this is surrounded by a for loop which basically sets $ip_add to 1,2, or 3 and $i to 0,1,2)

usr/sbin/pppd -detach lock maxfail 0 persist unit $ppp_unit 192.168.$ip_add.101:192.168.$ip_add.100 /dev/ttyUSB$i 19200 &

client command:

/usr/sbin/pppd -detach lock maxfail 0 persist defaultroute unit 0 /dev/ttyUSB2 19200 &

OS = Fedora Core 5
pppd version 2.4.3

Here's the problem: Upon initially setting up the 3 clients and server, everything is fine. Client A gets 192.168.1.100, B gets 192.168.2.100, C gets 192.168.3.100 as it should. However, if, say, client B gets rebooted, it won't reconnect. Or, if the server gets rebooted, NOTHING works.

Now, i think I've found an issue, but I'm not sure how to resolve it... IF we bring everything down, boot up the server first, then boot up A, then B, and finally C, they all work. It's a nice workaround, but considering A, B, and C are all a 20 minute drive from each other, it's not very good.

So it's obviously an issue of the server not re-establishing the ppp link. I don't know enough about ppp to get it working fast enough.

now, one other thing i've noticed is the "-detach" option. Looking at the man pages for pppd, they have a nodetach and updetach option, but no "-detach" option. I don't get any complaints from running pppd with -detach, but I'm not sure it's supported anymore. This command was originally run on Fedora Core 3 with a currently unknown version of pppd.


Sooooo.... does anyone have an idea as to why the server won't re-establish a ppp link? Oh, and background: There was an existing, working, setup here which was replaced with new client/server hardware, OS, and software, but basically the same stuff. The old stuff "works" as it should, i.e. can take down any piece of the system and it will re-establish connection without having to be reconnected in any specific order.


any help will be greatly appreciated and your names will be put into the comments line as a special development supporter by the military unless you don't want the recognition.

Thanks!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close