*BSD News Article 86088


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!spool.mu.edu!uwm.edu!newsfeeds.sol.net!news-xfer.netaxs.com!news.mathworks.com!news.bbnplanet.com!cam-news-hub1.bbnplanet.com!uunet!in3.uu.net!192.220.251.22!netnews.nwnet.net!news-hub.interserv.net!news.interserv.com!news
From: Enoch Wu <enochw@scn.org>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Help for Newbie:  How to configure tun0 ?
Date: Thu, 02 Jan 1997 12:39:50 -0800
Organization: InterServ News Service
Lines: 40
Message-ID: <32CC1D16.5E77@scn.org>
References: <32C9B2C6.7443@scn.org> <32CA94A9.41C67EA6@net-tel.co.uk>
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:33523

Andrew Gordon wrote:
> 
> 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.

Hi,

I have 3 more questions:

1.  What about /sbin/route add x.x.x.x y.y.y.y
versus the command in user-PPP "add x.x.x.x m.m.m.m y.y.y.y" ? 

Is user-PPP's "add" command an alternative to /sbin/route ?

2.  Can x.x.x.x and y.y.y.y have different network addresses ?  

3.  Is m.m.m.m a mask for x.x.x.x or is it a mask for y.y.y.y ?

Thanks in advance.
--EW