Can I use same modem to 'diald' out and to 'pap' answer?

Can I use same modem to 'diald' out and to 'pap' answer?

Post by Dean M. Weite » Sun, 28 Mar 1999 04:00:00



Hi,

I've read articles advising me to purchase a second modem and put in a
second telephone line to my LINUX machine (RedHat 5.1), if I want to both do
'diald' out to the Internet and auto-answer for dial-in.  I don't really
want to purchase another modem, or put in another phone line.  Is there a
way to share the modem for these duties?

The idea here is, when I'm home, I want to use the modem for the Internet
access (and it works fine already!).  When I'm at work, I'd like access to
my home network through a dial-in line, bringing up PPP, hopefully, so I can
have forwarding access to my home network.

Thanks,

Dean Weiten.

 
 
 

Can I use same modem to 'diald' out and to 'pap' answer?

Post by William Evan » Sun, 28 Mar 1999 04:00:00


    Dean> Is there a way to share the modem for these duties?

As long as they both use the same lockfile (something like
/var/lock/LCK..ttyS2), then there shouldn't be a problem.
Configuration of each entity can be annoying, but should work.  Keep
in mind that your ppp ip-up script may want to do different things
based on whether it was started on a dialout or a dialin.

HTH

-bill

--


 
 
 

Can I use same modem to 'diald' out and to 'pap' answer?

Post by Bill Unr » Mon, 29 Mar 1999 04:00:00



Quote:>I've read articles advising me to purchase a second modem and put in a
>second telephone line to my LINUX machine (RedHat 5.1), if I want to both do
>'diald' out to the Internet and auto-answer for dial-in.  I don't really
>want to purchase another modem, or put in another phone line.  Is there a
>way to share the modem for these duties?

I don;t know about diald, but what you want is what I do all the time.
I connect out by using a ppp script (see
axion.physics.ubc.ca/ppp-linux.html for details) and have mgetty sitting
there ready to answer when I am not using it. I have it on ringback, so
that normal phone calls can also use the line without getting the modem
screaming at you.
The only important thing is to make sure that you run pppd with the lock
option. Otherwise mgetty goes mad seeing the phone
in use and feeling it should be handling it.
Now, having both diald and mgetty trying to manage the phone can make
things difficult. If diald can be set up to put in a lock file each time
it makes a connection, then it should be fine, and mgetty and diald
should be able to share. (of course one difficulty would come if the
route is left set up to route things through diald and it then tried
tomake the connection when it is already made through mgetty.)
Ie, pppd + mgetty is easy. diald+mgetty I am not sure about.
Quote:>The idea here is, when I'm home, I want to use the modem for the Internet
>access (and it works fine already!).  When I'm at work, I'd like access to
>my home network through a dial-in line, bringing up PPP, hopefully, so I can
>have forwarding access to my home network.
>Thanks,
>Dean Weiten.

 
 
 

1. Pls help: 'efax' and 'diald' don't quite get along

Hello,

I just moved my fax over to the Linux box (from Win '95), and efax was what
I chose to install.

I did some test faxen, and they were received and printed perfectly.

My problem is that I use diald to demand-dial when I need a connection to
my ISP (that works fine, too) and 'efax' doesn't seem to work properly re:
lock files.

In my diald configuration, I told it to use 'lock', so whenever it tries to
bring up the IP layer, it writes a file: '/var/lock/LCK..cua1'.  I also
told efax that it needs to share and lock, with the '-s -x
/var/lock/LCK..cua1' options.

The problem is that with efax running, the /var/lock/LCK..cua1 file exists
so diald never is able to run.  For now I'm running wo/  the -x option to
efax, but (obviously) there are big problems with this.  According to the
efax docs, it will not write the lock file when the -s option is given -
yet it seems to!

Any help would be appreciated,
Thanks!
Ron
--
The opinions expressed in this message are my own personal views
and do not reflect the official views of Microsoft Corporation

2. AltaVista's software

3. 'xdm' & 'more' problems, what was the answer again?

4. Hard drive is *really* slow

5. using the 'join' or 'sort' command...

6. additional hard disk

7. modem slooooow wt protocole 'a' and 'i'

8. Linux demo source code required for directory work.

9. execute a function using its 'name' in 'C'

10. Cant get modem to connect with 'chat' and 'pppd'

11. 'X Error: BadRequest' using 'xv' on Solaris 2.4

12. Using 'cat' with 'tee' - Input error?

13. diald, chat log error 'Can't get terminal parameters: Invalid argument'