Andy Ma wrote:
> 
> MIME-Version: 1.0
> Content-Type: text/plain; charset=us-ascii
> 
> Hello All,
> 
> Can anyone help to configure more than 1 ppp connection? I have ppp0
> set up and running fine. But, I have another ISP which I want to setup
> on ppp1. I did the setup the same as ppp0. When I dial to ppp1 it
> dailed but it will disconnect by itself. ayone know why?  My guess is
> the resolv.conf file. But how do you setup the resolv.conf for more
> than 1 ISP or DNS?//
> 
That's an interesting question (how to do resolv.conf). However, that is
not what's causing the disconnection. The symptom of a bad resolv.conf
is that you are unable to access hosts by name (you get messages like
"vger.rutgers.edu does not have a DNS entry..." or some such, usually
after a rather long wait). But you remain connected and could even
access servers by raw IP addresses (or entries in /etc/hosts). As for
how to do it, one way would be to put something like:

  cp /etc/resolv.conf.isp1 /etc/resolv.conf

and similar for the other one into your top-level script. Of course such
a script would have to run as root. Hopefully someone else has a more
clever approach. Also, it is possible that the DNS server for isp1 will
continue to resolve your queries even when you are connected via isp2
and/or vice-versa. You could put them all into resolv.conf and figure
out an optimal order for use with both isp's.

But your disconnection has nothing to do with all this. As always, in
order to diagnose it, you have to look at the log (and/or share it with
the list). And be sure your syslog.conf is set up for daemon.debug (or
*.debug) and not just info. See
http://www.chelmsford.com/home/shochat/linux/ppp/faq.html#q3 if you're
not familiar with how to do this. I suspect that the problem with isp2
is unrelated to the fact that you also have a setup for isp1, but rather
that the configuration required for isp2 is different from what you are
currently using (and different from what isp1 requires). For example, if
isp1 were my ISP, they use PAP, while if isp2 were worldnet.att.net,
they use CHAP (I believe). There are lots of other things that could be
different between the two.

-- David

-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]

Reply via email to