*BSD News Article 81029


Return to BSD News archive

Newsgroups: comp.unix.bsd.freebsd.misc
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!nntp.coast.net!howland.erols.net!newsfeed.internetmci.com!in1.uu.net!news.interactive.net!news
From: Jay Sachs <sachs@luddite.org>
Subject: Re: Dial On Demand using IIJPPP
X-Newsreader: Gnus v5.2.25/XEmacs 19.14
X-Nntp-Posting-User: (Unauthenticated)
To: eric@tns.co.za (Eric Smith)
Sender: news@interactive.net (System Administrator)
Organization: IBS Interactive, Inc.
Lines: 90
Message-ID: <87wwwoxsv7.fsf@luddite.org>
References: <543bj6$fk5@hermes.is.co.za>
X-Trace: 845647908/10586
X-Nntp-Posting-Host: host028.madison.interactive.net
Date: Fri, 18 Oct 1996 14:13:48 GMT


I just tackled your exact problem two days ago & got some key help from
someone on the questions freebsd list.

Two things I needed to do:

1) In /etc/sysconfig, remove "tun0" from the network_interfaces var, and
remove the ifconfig_tun0 line altogether.

2) In /etc/ppp/ppp.conf, I have:


ondemand:
# just loads phone # & login sequence
  load interactive 
# i put in chat while fixing the problem
  set debug phase lcp chat
# this is the line that I had to change
# originally, it was
#   set ifaddr 0 208.192.224.5
  set ifaddr  208.192.224.0/24 208.192.224.5
  add 0 255.255.255.0 208.192.224.5


Also, my /etc/ppp/ppp.linkup is

ondemand:
 delete ALL
 add 0 0 HISADDR

MYADDR:
 add 0 0 HISADDR


And, as one more suggestion (pardon me if I'm saying too much), I
recommend

/usr/sbin/ppp -auto ondemand >/dev/null 2>&1 && echo -n ' ppp'

in your /etc/rc.local file once you get on-demand dialing working. 

Hope this helps ...

-jay


eric@tns.co.za (Eric Smith) writes:

> 
> Hi there,
> 
> I am trying to get a PPP connection (dial on demand) to a service
> provider that provides dynamically allocated IP addresses (surprise,
> surprise).  Well, I got the thing working halfway.  There seem to be a
> couple of bugs in iijppp though:
> 
> (1) The automatic dial-up only happens after I manually dial up once;
> e.g. if I start from a fresh boot with 'ppp -auto ondemand', it
> returns with 'host is down' despite the fact that the default route is
> set up to the tunnel device.  Then I dial up manually at least once,
> and thereafter the DOD works fine.
> 
> (2) if I telnet to an IP address through the default route (and
> therefore force an automatic dialup), the connection gets established
> fine but the telnet session doesn't actually connect, it just times
> out.  (the connection is established long before the timeout).
> Thereafter all telnet or ftp connections work fine.
> 
> I am using v0.94 of iijppp and FreeBSD version 2.1.0.  any ideas?  I'm
> getting pretty desperate.
> 
> If there is no solution to the above problems, could you direct me to
> a set of scripts that are especially designed to deal with the
> following situation:
> 
> * Dynamically allocated IP addresses
> * Routing through the ppp interface, as well as retaining routes to a
> local area network. (i.e., this is not an "Internet leaf" situation).
> 
> This doesn't have to be DOD, provided I can just call a script and get
> a return value indicating that either the connection is up or it
> failed; and it doesn't necessarily need to use iijppp, it could use
> pppd.
> 
> --Eric
> 
> Eric Smith
> Trusted Network Solutions
> eric@tns.co.za
>