*BSD News Article 92215


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!cs.mu.OZ.AU!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!news.maxwell.syr.edu!news.mathworks.com!rill.news.pipex.net!pipex!tank.news.pipex.net!pipex!news.utell.co.uk!usenet
From: brian@shift.lan.awfulhak.org (Brian Somers)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: configure 2 ip
Date: 25 Mar 1997 16:12:38 GMT
Organization: Awfulhak Ltd.
Lines: 23
Message-ID: <5h8thm$qnv@ui-gate.utell.co.uk>
References: <5h871a$6vs@ms.mimos.my>
Reply-To: brian@awfulhak.demon.co.uk, brian@utell.co.uk
NNTP-Posting-Host: shift.utell.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Newsreader: knews 0.9.8
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:37956

In article <5h871a$6vs@ms.mimos.my>,
	zarina@ms.mimos.my (Zarina Musa) writes:
> Hi,
> 	I am using FreeBSD and would like it to have 2 IP addresses.
> How should i put it in sysconfig ? 
> Thanx in advance.
> 
> Please email to : zarina@ms.mimos.my
> -Zarina
> 

Search for "alias" in /etc/sysconfig.  There's an example.  You
want something like

network_interfaces=".... ed0"
ifconfig_ed0="inet 10.0.1.1 netmask 0xffffff00"
ifconfig_ed0_alias0="inet 10.0.1.2 netmask 0xffffff00"
ifconfig_ed0_alias1="inet 10.0.1.3 netmask 0xffffff00"

-- 
Brian <brian@awfulhak.demon.co.uk> <brian@freebsd.org>
      <http://www.awfulhak.demon.co.uk>
Don't _EVER_ lose your sense of humour !