*BSD News Article 53416


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!vtc.tacom.army.mil!agis!news2.net99.net!news.cais.net!news.sprintlink.net!howland.reston.ans.net!Germany.EU.net!Dortmund.Germany.EU.net!interface-business.de!not-for-mail
From: j@interface-business.de (J Wunsch)
Newsgroups: comp.unix.bsd.bsdi.misc
Subject: Re: Installing a dummy network interface ??????
Date: 24 Oct 1995 16:48:33 +0100
Organization: interface business GmbH, Dresden
Lines: 21
Message-ID: <46j1sh$el@ida.interface-business.de>
References: <46f2aa$ltm@news.computek.net>
NNTP-Posting-Host: ida.interface-business.de

<root@actc.com> wrote:
> 
>I would like to have my BSDI boxes respond to 
>two different IP addresses. 
>
>What is the best way of doing this ?

I think that's part of the generic 4.4BSD network code, so it might
work with BSDI as well:


	ifconfig xx0 inet primary.address netmask whatever.applies
	ifconfig xx0 inet alias secondary.address netmask 0xffffffff

The all-1 netmask is necessary when the secondary.address lies in the
same subnet as the primary.address.  In case you wish to have aliases
responding to different networks, use the real netmasks, of course.
-- 
J"org Wunsch					       Unix support engineer
joerg_wunsch@interface-business.de
					[private: http://www.sax.de/~joerg/]