From owner-freebsd-questions Fri Jun 19 00:01:40 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA09746 for freebsd-questions-outgoing; Fri, 19 Jun 1998 00:01:40 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from awfulhak.org (awfulhak.force9.co.uk [195.166.136.63]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA09704 for ; Fri, 19 Jun 1998 00:01:12 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from gate.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.org (8.8.8/8.8.8) with ESMTP id HAA01523; Fri, 19 Jun 1998 07:54:24 +0100 (BST) (envelope-from brian@gate.lan.awfulhak.org) Message-Id: <199806190654.HAA01523@awfulhak.org> X-Mailer: exmh version 2.0.1 12/23/97 To: robert@chalmers.com.au cc: freebsd-questions , Brian Somers Subject: Re: [2 x Q] Help determing kernel parameters, AND PPP warnings. COMPLEX. In-reply-to: Your message of "Fri, 19 Jun 1998 13:43:55 +1000." <3589DE7B.3C8D1DEE@chalmers.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 19 Jun 1998 07:54:24 +0100 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Hi, > sorry to trouble you directly, but I have upgraded to the ppp-980618.src, and > put the ifconfig tun0 bits in place. I'm running a much hacked about > 2.2-961014-SNAP. I know, I know. I will upgrade when I can get this server > off-line. Or better, replace it with a whole new system, including upgraded OS. > > However, > trying to find out what some of these things are: > > These are the interfaces I have in place: I know what ed0 is, but according to > this I have 4 point-to-point links up! Surely I only need tun0, for PPP? Yep (and you always need ``lo0''). > I also know what the lo0 lookback is. I also know what ppp0 is, and have taken > it out since I listed this. however, I can find virtually nothing on lp0, or > sl0 . > > Can I take out sl from the KERNEL? And what about lp0? Where is that > enabled/disabled? ``sl0'' is a slip device (slattach/sliplogin). It can be removed. ``lp0'' is a IP over parallel port device. If you never want to use a laplink-style parallel cable to connect machines you can remove it. > ed0: flags=8843 mtu 1500 > inet 203.1.96.5 netmask 0xffffff00 broadcast 203.1.96.255 > inet 203.1.96.150 netmask 0xffffffff broadcast 203.1.96.150 > inet 203.1.96.151 netmask 0xffffffff broadcast 203.1.96.151 > inet 203.1.96.152 netmask 0xffffffff broadcast 203.1.96.152 > inet 203.1.96.153 netmask 0xffffffff broadcast 203.1.96.153 > ether 00:00:c0:4f:7a:54 > lp0: flags=8810 mtu 1500 > tun0: flags=8051 mtu 1500 > inet 203.1.96.1 --> 203.26.20.131 netmask 0xffffff00 > sl0: flags=c010 mtu 552 > ppp0: flags=8010 mtu 1500 > lo0: flags=8049 mtu 16384 > inet 127.0.0.1 netmask 0xff000000 > > > Now, also, I am getting these warnings at start up. > > ppp[181]: Warning: No available tunnel devices found (Device busy). > ppp[181]: Warning: bundle_Create: No such file or directory > > However, PPP does come up, and actually starts up. > This is the configs related to it. > The appropriate bits in /etc/sysconfig: > > network_interfaces="lo0 ed0 tun0" > ifconfig_lo0="inet localhost" > ifconfig_ed0="inet 203.1.96.5 netmask 255.255.255.0" > ifconfig_tun0= > # > router=NO > > > *********************************** PPP setups. ppp.conf: > # PPP setups. ppp.conf: > # Default setup. > default: > set log Phase Chat Connect command > set device /dev/cuaa0 > set speed 57600 > set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" > ATZ OK-AT-OK ATM0E1Q0&C1&D2 OK \\dATDT\\T TIMEOUT 40 CONNECT" > > ################ > # tpgi > ############### > tpgi: > set phone 49440894 > set login " Username:-\\r-Username: xxxxx Password: xxxxx choice:> ppp" > set timeout 120 > set hangup "\"\" AT OK-AT-OK ATZ OK" > set redial 30 0 > set ifaddr 203.1.96.1 203.26.20.131 > add default HISADDR > #===== > > ********************************* PPP.linkup: > # PPP.linkup: > # By default > # > MYADDR: > 203.1.96.1: > # > > > Now, when the system is booting, > it tellms me there is no route to delete? and > it shows the ifconfig tun line TWICE. > tun0: flags=8051 mtu 1500 > tun0: flags=8051 mtu 1500 Try putting a ``set -x'' line at the top of /etc/rc. This will make your next boot-up verbose enough to find out why ppp is being started twice. What does ``/etc/start_if.tun0'' say ? > There is about a 30 second pause after boot up before it actually connects to > the upline server. > It does come up, but I notice at night, if there is a hangup, it doesn't want > to reconnect. Or, it won't keep trying if it does. It gives up after about > three tries. Use the ``set reconnect'' command in your config to get ppp to redial after an unexpected disconnection. > Any pointers would be thankfully accepted, > > Cheers > Robert > > -- > Support Whirled Peas. Business in China? China House > robert@chalmers.com.au ph:61 7 49440357 fx:61 7 49578425 > China House Uses Webposition to ensure Top Spot in Searches > http://www.chalmers.com.au/ChinaHouse/Business/webposition -- Brian , , Don't _EVER_ lose your sense of humour.... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message