Solved

Two modems under diald

Posted on 1998-06-01
2
237 Views
Last Modified: 2010-03-18
I have diald up and running. It works almost out of the box with 1 interface to
bring ppp up. Now I have two modems to dialup (among other things) and I
want diald to use any of them, whichever be free. I succesfully configured pppd
and chat to use any of two interfaces, but when I use diald, it wants the device
locked before calling chat or pppd.

I remember I saw somewhere I have to hack some diald script, but I don't
remember which and how... I'm using diald 0.16.5-5 under RedHat 5.1.
0
Comment
Question by:marcelofr
2 Comments
 
LVL 3

Author Comment

by:marcelofr
Comment Utility
Adjusted points to 200
0
 
LVL 3

Accepted Solution

by:
sauron earned 200 total points
Comment Utility
In your diald configuration file, you should specify a line for each modem you want diald to use. So for a system with two modems on com1 and com2 you might have:-

device /dev/cua0
device /dev/cua1

in the configuration file. Diald will sequence through all the specified devices when a link-up request is received, until it finds one that is not locked. When it finds one of these, it will lock the device, and then dial out. The 'lock' keyword in the conf file instructs diald to perform UUCP stlye locking of the serial line. It sounds as though you may wish to turn this off,  though I'm not convinced it's a good idea to do so.

With multiple dial-out device, you probably also want to use the rotate-devices command.

One potential problem - if you have another process listening on the modem, but you want diald to use this modem anyway if a call is not in progress, you might have trouble. If diald can't find a non-locked device in the list, it won't dial out. Getting round this is not a diald configuration issue - you need to tell the listening process to not lock the device until a connection is made. Doing this will be dependant on what software you are using to listen on the modem...
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video discusses moving either the default database or any database to a new volume.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now