Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Dec 1996 09:53:33 +0200
From:      Nadav Eiron <nadav@barcode.co.il>
To:        Vincent Poy <vince@venus.GAIANET.NET>
Cc:        Darius Moos <moos@degnet.baynet.de>, questions@freebsd.org
Subject:   Re: two ip's for one ne0 interface
Message-ID:  <32B8F47D.30CE@barcode.co.il>
References:  <Pine.BSF.3.95.961218112727.3152A-100000@venus.GAIANET.NET>

next in thread | previous in thread | raw e-mail | index | archive | help
Vincent Poy wrote:
> 
> On Wed, 18 Dec 1996, Darius Moos wrote:
> 
> > In FreeBSD-2.1.5 there is a special mechanism for doing this.
> 
>         Never knew about that one...
> 
> > Howto:
> > In /etc/sysconfig:
> >   Set your network-devices but don't specify any arguments for them.
> >   In your case:
> >   ...
> >   network_interfaces="ne0 lo0"
> >   # no ifconfig_ne0- or ifconfig_lo0-options here
> > Then create files /etc/start_if.ne0 and /etc/start_if.lo0
> > In /etc/start_if.ne0:
> >    /sbin/ifconfig ne0 inet 206.171.98.29 netmask 0xffffff00
> >    /sbin/ifconfig ne0 inet 206.171.98.1 netmask 0xffffffff alias
> >    # more aliases if desired.
> > In /etc/start_if.lo0:
> >    /sbin/ifconfig lo0 inet 127.0.0.1
> >
> > Reboot.
> > That's it
> 
>         Sounds simple enough.   Does ifconfig automatically do routing for
> 206.171.98.x to all use the ne0 interface?

If you use the netmask of all 1s all the routing stuff will be set up
automaticaly.

> 
> Vince
> GaiaNet Corporation - Unix Networking Operations
> vince@GAIANET.NET - http://www.GAIANET.NET
> Beverly Hills, California USA 90210
Nadav



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?32B8F47D.30CE>