*BSD News Article 85954


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!news.ou.edu!news.nodak.edu!netnews1.nwnet.net!netnews.nwnet.net!news-hub.interserv.net!news.interserv.com!news
From: Enoch Wu <enochw@scn.org>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Help for Newbie:  How to configure tun0 ?
Date: Tue, 31 Dec 1996 16:41:42 -0800
Organization: InterServ News Service
Lines: 26
Message-ID: <32C9B2C6.7443@scn.org>
NNTP-Posting-Host: ralph.ci.seattle.wa.us
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.0Gold (Win95; I)
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:33406

Hi,

How do I configure tun0 ?  In /etc/sysconfig at initialization time or
in a script executed at "runtime" ?  What is the difference ?  Here is
what I have in mind:

In /etc/sysconfig:
ifconfig_tun0="inet 10.0.2.15 10.0.2.2 netmask 0xffffff00"

In a script called /etc/ppp/ppp.init

/sbin/ifconfig tun0 inet 10.0.2.15 10.0.2.2 netmask 0xffffff00 alias
204.122.16.40

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

Key:
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.

Thanks 
EW