*BSD News Article 74426


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!news.mira.net.au!inquo!news.uoregon.edu!vixen.cso.uiuc.edu!uwm.edu!math.ohio-state.edu!jussieu.fr!eurocontrol.fr!ramses.eurocontrol.fr!not-for-mail
From: rbt@eurocontrol.fr (Ollivier Robert)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: IP aliases?
Date: 22 Jul 1996 11:54:27 GMT
Organization: Eurocontrol EEC, Bretigny, France
Lines: 26
Message-ID: <4svq5j$e79@ramses.eurocontrol.fr>
References: <Duwuuw.AE@alisa.org>
NNTP-Posting-Host: mozart.eurocontrol.fr

 [courtesy cc of this posting sent to cited author via email]

In article <Duwuuw.AE@alisa.org>, John J. Rushford <wjjr@alisa.org> wrote:
> sure how to setup IP aliasing using ifconfig.  I'm working with my ISP on

Look into either the FAQ or the Handbook. Read ifconfig(8) too.

In short, you do something like

ifconfig ed0 inet foo.bar.com netmask 0xffffffff alias

if the machine is on the same subnet and you can omit the netmask if not.

You can see aliases with

netstat -I ed0

> using two IP addresses aimed at my machine using two different DNS domain
> names.  I'd appreciate any pointers in this regard.  BTW, how many IP aliases
> will FreeBSD support?

No real limit except mbufs and memory. Some have tried more than a couple 
hundred without problem.
-- 
Ollivier ROBERT   -=- Eurocontrol EEC/TIS -=-   Ollivier.Robert@eurocontrol.fr
Usenet Canal Historique