From owner-freebsd-questions Wed Dec 18 23:57:49 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id XAA06913 for questions-outgoing; Wed, 18 Dec 1996 23:57:49 -0800 (PST) Received: from gatekeeper.barcode.co.il (gatekeeper.barcode.co.il [192.116.93.17]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id XAA06895 for ; Wed, 18 Dec 1996 23:57:44 -0800 (PST) Received: (from smap@localhost) by gatekeeper.barcode.co.il (8.7.5/8.6.12) id JAA01848; Thu, 19 Dec 1996 09:55:34 +0200 (IST) X-Authentication-Warning: gatekeeper.barcode.co.il: smap set sender to using -f Received: from localhost.barcode.co.il(127.0.0.1) by gatekeeper.barcode.co.il via smap (V1.3) id sma001846; Thu Dec 19 09:55:19 1996 Message-ID: <32B8F47D.30CE@barcode.co.il> Date: Thu, 19 Dec 1996 09:53:33 +0200 From: Nadav Eiron X-Mailer: Mozilla 3.0 (X11; I; SunOS 5.5 sun4m) MIME-Version: 1.0 To: Vincent Poy CC: Darius Moos , questions@freebsd.org Subject: Re: two ip's for one ne0 interface References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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