*BSD News Article 90188


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!news.maxwell.syr.edu!nntp.uio.no!news.apfel.de!news-fra1.dfn.de!news-kar1.dfn.de!news-stu1.dfn.de!news-mue1.dfn.de!news-nue1.dfn.de!news-lei1.dfn.de!news.urz.tu-dresden.de!irz401!orion.sax.de!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Routed, default routes and ppp0 interfaces ?
Date: 2 Mar 1997 21:18:11 GMT
Organization: Private BSD site, Dresden
Lines: 37
Message-ID: <5fcqqj$8u@uriah.heep.sax.de>
References: <33192DF6.41C67EA6@silas.cc.monash.edu.au>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.6
X-Phone: +49-351-2012 669
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F  93 21 E0 7D F9 12 D6 4E
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:36409

Chooka <dhenshaw@silas.cc.monash.edu.au> wrote:

> I recently decided to start using kernel ppp rather than the user ppp
> supplied with 2.1.5.
> 
> Naturally (well at least to me!) I edited /etc/sysconfig and removed the
> references to the tun0 device (although I haven't removed it from the
> kernel)

You shouldn't have any need to edit it.

> I therefore have in my /etc/sysconfig
> 
> 
> network_interfaces="lo0 ppp0"

That's wrong.  (But don't worry, if you had "tun0" there previously,
it was not better either.)

The interfaces "sl", "tun", and "ppp" do only have a meaning if they
are attached to a process (slattach, ppp, pppd).  It's the task of
this process to set the interfaces up, and give them IP addresses etc.
Trying to ifconfig them separately is a moot point, since they are not
in a state where they could transport any packet at all without the
accompanying process.

So, leave your /etc/sysconfig with "lo0" only, and have the pppd doing
the rest.  pppd has the ability to call some scripts that are run when
the interface goes up or down, that's the place where you should put
route commands and such.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)