*BSD News Article 85977


Return to BSD News archive

#! rnews 1700 bsd
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!howland.erols.net!news-peer.gsl.net!news.gsl.net!news-lond.gsl.net!news.gsl.net!netcom.net.uk!dispatch.news.demon.net!demon!arg1.demon.co.uk!not-for-mail
From: Andrew Gordon <andrew.gordon@net-tel.co.uk>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Help for Newbie:  How to configure tun0 ?
Date: Wed, 01 Jan 1997 16:45:29 +0000
Lines: 22
Message-ID: <32CA94A9.41C67EA6@net-tel.co.uk>
References: <32C9B2C6.7443@scn.org>
NNTP-Posting-Host: arg1.demon.co.uk
X-NNTP-Posting-Host: arg1.demon.co.uk
X-Mailer: Mozilla 3.01Gold (X11; I; FreeBSD 2.1.5-RELEASE i386)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:33425

Enoch Wu wrote:
> How do I configure tun0 ?  In /etc/sysconfig at initialization time or
> in a script executed at "runtime" ?

Neither.  The ppp daemon will configure tun0 (from the information
in /etc/ppp/ppp.conf or negotiated in ppp protocol) when it starts.
Configuring tun0 from /etc/sysconfig is pointless, but does no harm.

> Beside the alias parameter in /sbin/ifconfig, are actions performed by
> ifconfig_tun0
> different from those performed by /sbin/ifconfig.

No.  You can put an 'alias' keyword in /etc/sysconfig too if you
really want it, though your configuration does not look
right at all.  

> 10.0.2.15 is my IP address for SLiRP connection, also a SLiRP alias for
> my computer.
> 10.0.2.2  is SLiRP's alias for ISP's host address.

> 204.122.16.40 is ISP's real host address.
Your machine shouldn't need/want to know this.