On Mon, 17 Jul 2000, Bob Taylor wrote:

> In message <[EMAIL PROTECTED]>, "Peter 
> Massey" writ
> es:
> > 
> > Heya all,
> > 
> > I am having some major problems with the ppp-watch re-dial "daemon". I use
> > my RH6.2 box as a ip masq gateway to the net through a 56k dialup
> > connection. I have used netconf to setup my ppp0. I have also read a
> > previous post by Bret Hughes who was having the similar problem. To dial
> > the connection I run "ifup ppp0" and like Bret the connection isn't
> > "completed" until there is traffic sent to the remote server. This I can
> > handle cos I just ping the remote server.
> 
> Try setting PERSIST="no" in /etc/sysconfig/network-scripts/ifcfg-pppx.
> 

You need persist with the demand option.

What works for me:

/etc/sysconfig/network-scripts/ifcfg-ppp0:

DEVICE="ppp0"
ONBOOT="yes"
USERCTL="no"
MODEMPORT="/dev/ttyS3"   (internal ISA modem set to COM4)
LINESPEED="115200"
PERSIST="yes"
DEFABORT="yes"
DEBUG="no"
INITSTRING="ATZ"
DEFROUTE="yes"
HARDFLOWCTL="yes"
ESCAPECHARS="no"
PPPOPTIONS="ipcp-accept-local ipcp-accept-remote demand idle 3000"
PAPNAME="xxxxxxx"
REMIP="10.0.0.2"
NETMASK=""
IPADDR="10.0.0.1"
MRU=""
MTU=""
DISCONNECTTIMEOUT="60"
RETRYTIMEOUT="5"
BOOTPROTO="dhcp"
PEERDNS="yes"



I don't trust "idiot unix" scripts such as
netconf (called by linuxconf) or whatever.

If you have trouble, just for yucks,
then try changing the
ONBOOT="yes" to "no" and firing up
pppd from rc.local (just before you fire up
rc.firewall) - be sure to BACKGROUND it 

/usr/sbin/ppp0 &


Also, do you have multimple copies of 
ifcfg-ppp0 under different names in 
/etc/sysconfig/network-scripts?

e.g.

ifcfg-ppp0
ifcfg-ppp0.bak
ifcfg-ppp0.foo


In this case, if you look at netconf (or linuxconf) 
you might see that it thinks you have more than one
modem and it's trying to define additional interfaces.
That can make things a bit interesting.

Suggested that you rename to copies to something like:

_ifcfg-ppp0.foo     

Then you won't confuse the system, which is what
may be happening.

I had lots of problems with getting demand to
work properly, but I seemed to have tamed them.

Good luck.
 
        



-- 
***************************************************************************
Jerry Winegarden        OIT/Technical Support           Duke University
[EMAIL PROTECTED]            http://www-jerry.oit.duke.edu
phone: (919)-660-6911   pager: (919)-970-4270           fax: (919)-681-0808
***************************************************************************


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to