*BSD News Article 45999


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msunews!uwm.edu!cs.utexas.edu!news.sprintlink.net!gate2.internet-eireann.ie!news.internet-eireann.ie!jkh
From: jkh@whisker.internet-eireann.ie (Jordan K. Hubbard)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: 2.0.5 iij-ppp won't -auto connect
Date: 24 Jun 1995 13:58:14 GMT
Organization: Internet Eireann
Lines: 65
Message-ID: <JKH.95Jun24145814@whisker.internet-eireann.ie>
References: <3s0ndg$5h1@legend.txdirect.net>
NNTP-Posting-Host: whisker.internet-eireann.ie
In-reply-to: rsnow@txdirect.net's message of Sun, 18 Jun 1995 08:20:12 GMT

In article <3s0ndg$5h1@legend.txdirect.net> rsnow@txdirect.net (Rob Snow) writes:
   Am I the only person on EARTH that is having problems getting iij-ppp
   to work with -auto connections?

[click clickety click] "Why yes, Mr. Snow.  Our database shows that
you are the ONLY person on earth having such problems!  You win this
week's Homo Habilis Award!  Congradulations!" [clap clap clap]

Actually, I'm sure you're not..  Lesse here.

   I have NO problems with manual or automatic dialing, however when I
   try to use the -auto switch for ondemand dialing I cannot get the
   triggering program (ie. ftp freebsd.cdrom.com) to connect.  I can
   CTRL-C out and redo the command (ie. ftp freebsd.cdrom.com) and it'll
   work fine.

Here's my /etc/ppp/ppp.conf file:

default:
 set device /dev/cuaa3
 set speed 38400
 disable lqr
 deny lqr
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATE1Q0M0 OK-AT-OK \\dATDT\\T TIMEOUT 40 CONNECT"

# eireann is my service provider
eireann:
 set phone nnnnnnnnn
 set login "TIMEOUT 5 login:-\\r-login: myname word: mypass protocol: ppp"
 set ifaddr myipaddress hisipaddress
 add 0 0 HISADDR
 set dfilter 0 deny icmp
 set dfilter 1 permit 0/0 0/0
 set timeout 60

And here's my /etc/ppp/ppp.linkup file

MYADDR:
 add 0 0 HISADDR

Then, finally, I have this in /etc/sysconfig

...
network_interfaces="lo0 tun0"
ifconfig_lo0="inet localhost"
ifconfig_tun0="inet myipaddress hisipaddress netmask 0xffffff00"
...

And this in /etc/start_if.tun0:

#!/bin/sh
/usr/sbin/ppp -auto eireann

---

I also have "hosts" before "bind" in /etc/host.conf, and that's basically
it.

For the settings of "myipaddress" or "hisipaddress" you can also put 0
if it's being dynamically negotiated.  I've tried this also, and it
works fine.

Good luck!

						Jordan