Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 May 1997 22:39:05 -0600 (MDT)
From:      Wes Peters <softweyr@xmission.com>
To:        Patrick Gardella <pgardella@geocities.com>
Cc:        questions@freebsd.org
Subject:   Yet another ppp -auto question
Message-ID:  <199705310439.WAA27204@obie.softweyr.ml.org>
In-Reply-To: <3389CBEF.15FB7483@geocities.com>
References:  <3389CBEF.15FB7483@geocities.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Patrick Gardella writes:
 > I am setting up ppp -auto for an on-demand dial setup.  I can start ppp
 > cincy (my isp) and then "dial", and ppp works fine.  But I cannot get
 > the ppp -auto to dial.  It just sits there.  If I ping/telnet/lynx/etc.
 > I get the "No route" message.  
 > 
 > netstat -rn returns only the localhost (127.0.0.1) line.
 > 
 > I'm not good at shell scripts, which is what I read many people use
 > instead of ppp -auto, so if anyone has one I could use, please send it!
 > 
 > #################################################################
 > #
 > #  	PPP  Sample Configuration File
 > #
 > #################################################################
 > 
 > # Default setup. Always executed when PPP is invoked.
 > #
 > default:
 >  set device /dev/cuaa2
 >  set speed 38400
 >  disable lqr
 >  deny lqr
 >  set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATZ OK AT&F OK-AT-OK \\dATDT\\T TIMEOUT 40 CONNECT"
 > set redial 3 10
 > 
 > cincy:
 >  set phone 5830791
 >  set openmode active
 > # set login "TIMEOUT 5 user:-\\r-user: ppp word: ppp"
 >  deny chap
 >  accept pap
 > # enable pap
 >  set authname ****
 >  set authkey  ****
 >  set ifaddr 206.173.96.3/24 10.10.11.11/0 255.255.255.0

This is all fine.  You're on the right track below, but missed the
configuration slightly.  What we need to do is enter a default route
through the IP addresses you've just configured above, even though
they're not "up" yet.  Also, you don't need to delete ALL routes, you
probably haven't got any routes except LAN interfaces installed yet.
Immediately following the "set ifaddr" line insert:

 add 0 0 10.10.11.11

This will add a default router through the address at the "other" end of
the link.  Any packets directed off your local area network will be sent
to the tunX device, forcing ppp to dial the link.

HISADDR is not really effective in the ppp.conf file; you don't really
have a HISADDR yet.

 > # set ifaddr 206.173.96.3/24 HISADDR
 >  delete ALL
 >  add 0 0 HISADDR
 > # add 206.173.96.3\24 0 HISADDR

-- 
          "Where am I, and what am I doing in this handbasket?"

Wes Peters                                                       Softweyr LLC
http://www.xmission.com/~softweyr                       softweyr@xmission.com






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199705310439.WAA27204>