From owner-freebsd-questions Wed Dec 18 11:30:29 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id LAA23030 for questions-outgoing; Wed, 18 Dec 1996 11:30:29 -0800 (PST) Received: from venus.GAIANET.NET (vince@venus.GAIANET.NET [206.171.98.27]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id LAA23024 for ; Wed, 18 Dec 1996 11:30:25 -0800 (PST) Received: from localhost (vince@localhost) by venus.GAIANET.NET (8.8.3/8.8.3) with SMTP id LAA04378; Wed, 18 Dec 1996 11:30:15 -0800 (PST) Date: Wed, 18 Dec 1996 11:30:13 -0800 (PST) From: Vincent Poy To: Darius Moos cc: Nadav Eiron , questions@freebsd.org Subject: Re: two ip's for one ne0 interface In-Reply-To: <3.0.32.19961218130435.006b80cc@cyclone.degnet.baynet.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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? Vince GaiaNet Corporation - Unix Networking Operations vince@GAIANET.NET - http://www.GAIANET.NET Beverly Hills, California USA 90210