[NTLUG:Discuss] WVDial/Multiple Phone Numbers
Rob Holland
rob.holland at insi.com
Fri May 10 11:57:02 CDT 2002
What I had in mind was something like:
ppp0 --> ISP A, phone 1
ppp1 --> ISP A, phone 2
ppp3 --> ISP A, phone 3
ppp4 --> ISP B, phone 1
etc.
That way, you only need one phone number per dialer. I'm not sure that
multiple numbers per dialer are supported.
To be honest, I took the easy way out and used the GUI to add ppp0 and ppp1.
I used the neat tool, which may or may not be Red Hat specific. Anyway it
modified the following files (near as I can tell):
/etc/sysconfig/networking/devices/ifcfg-ppp0:
USERCTL=no
BOOTPROTO=dialup
NAME=ppp0
DEVICE=ppp0
TYPE=Modem
ONBOOT=no
BSDCOMP=off
CCP=off
VJCCOMP=off
AC=off
VJ=off
PC=off
LINESPEED=115200
MODEMPORT=/dev/ttyS0
DEMAND=yes
PROVIDER=SWBell
DEFROUTE=yes
PERSIST=no
PAPNAME=myuserid
WVDIALSECT=SWBell
MODEMNAME=Modem0
PEERDNS=yes
IDLETIMEOUT=600
PPPOPTIONS=proxyarp
/etc/sysconfig/networking/devices/ifcfg-ppp1:
USERCTL=no
BOOTPROTO=dhcp
NAME=ppp1
DEVICE=ppp1
TYPE=Modem
ONBOOT=no
BSDCOMP=off
CCP=off
VJCCOMP=off
AC=off
VJ=off
PC=off
LINESPEED=115200
MODEMPORT=/dev/ttyS0
IDLETIMEOUT=600
DEMAND=yes
PROVIDER=dummy
DEFROUTE=yes
PERSIST=no
PAPNAME=secret
WVDIALSECT=ppp1
MODEMNAME=Modem0
PEERDNS=yes
/etc/ppp/peers/ppp0:
----- Original Message -----
From: "Stephen Davidson" <gorky at freenet.carleton.ca>
To: <discuss at ntlug.org>
Sent: Friday, May 10, 2002 11:21 AM
Subject: Re: [NTLUG:Discuss] WVDial/Multiple Phone Numbers
> Hi Rob.
>
> What is the syntax for multiple phone numbers for a single ISP?
>
> [Dialer myISP]
> Phone= phone1:phone2
>
> OR is it;
> [Dialer myISP]
> Phone= phone1
> Phone= phone2
>
> Or is it something completely different? There are NO examples anywhere
that I could find!!!! :-(
>
> Thanks,
> Steve
>
> Rob Holland wrote:
>
> > You can define ppp0, ppp1, ... for as many ISPs and phone numbers as you
> > need. Then, in a script, cycle through them with ifup ( e.g. ifup
ppp0 ),
> > checking the status ($?) as you go.
> >
> > ----- Original Message -----
> > From: "Stephen Davidson" <gorky at freenet.carleton.ca>
> > To: <discuss at ntlug.org>
> > Sent: Thursday, May 09, 2002 5:37 PM
> > Subject: Re: [NTLUG:Discuss] WVDial/Multiple Phone Numbers
> >
> >
> >
> >>Greetings.
> >>
> >>I have an multiple ISPs each with multiple phone numbers. I am trying to
> >>
> > figure out how to have each ISP store the multiple numbers, and rotate
> >
> >>through on demand.
> >>
> >>Thanks,
> >>Steve
> >>
> >>Sean Cook wrote:
> >>
> >>
> >>>from the wvdial man page:
> >>>
> >>>[Dialer Defaults]
> >>>Modem = /dev/ttyS2
> >>>Baud = 57600
> >>>Init = ATZ
> >>>Init2 = AT S11=50
> >>>Phone = 555-4242
> >>>Username = apenwarr
> >>>Password = my-password
> >>>
> >>>[Dialer phone2]
> >>>Phone = 555-4243
> >>>
> >>>[Dialer shh]
> >>>Init3 = ATM0
> >>>
> >>>[Dialer pulse]
> >>>Dial Command = ATDP
> >>>
> >>>
> >>>For example, the command:
> >>> wvdial phone2
> >>>
> >>>will read default options from the [Dialer Defaults] section, then
> >>>override any or all of the options with those found in the [Dialer
> >>>phone2] section.
> >>>
> >>>
> >>>Cheers,
> >>>Sean
> >>>
> >>>
> >>>* gorky at freenet.carleton.ca [2002.05.09 11:29]:
> >>>
> >>>
> >>>>Greetings.
> >>>>
> >>>>Does anyone know how to get WVDial to store/use multiple phone numbers
> >>>>
> > for a given ISP? I was not able to find any info in the info or man
pages.
> >
> >>>>Thanks,
> >>>>Steve
> >>>>
> >>>>
> >>>>_______________________________________________
> >>>>http://www.ntlug.org/mailman/listinfo/discuss
> >>>>
> >>>>
> >>
> >>
> >>_______________________________________________
> >>http://www.ntlug.org/mailman/listinfo/discuss
> >>
> >>
> >
> >
> > _______________________________________________
> > http://www.ntlug.org/mailman/listinfo/discuss
> >
> >
>
>
>
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss
>
More information about the Discuss
mailing list