*BSD News Article 99533


Return to BSD News archive

#! rnews 1248 bsd
From: "OkMi Lynch" <okmi@jorsm.com>
Subject: Re: multiple IP on one i/f
Newsgroups: comp.unix.bsd.freebsd.misc
References: <33a7fdfb.5230095@news1.star.net>
Organization: JORSM Enterprises, Inc.
Message-ID: <01bc8eea$87594fc0$438370cf@okmi.jorsm.com>
X-Newsreader: Microsoft Internet News 4.70.1161
NNTP-Posting-Host: venus.jorsm.com
Date: 12 Jul 97 16:36:51 GMT
Lines: 17
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.Hawaii.Edu!news.caldera.com!enews.sgi.com!ix.netcom.com!news.maxwell.syr.edu!howland.erols.net!news2.digex.net!news5.digex.net!news.kcdata.com!venus.jorsm.com
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:44340

Frank DiPrete <frankd@star.net> wrote in article
<33a7fdfb.5230095@news1.star.net>...
> 
> question:
> can you/how do you put a second IP address on an interface in freeBSD?
> in BSD it was done in the /etc/ethers file.
> frankd@star.net
> www.star.net/People/~frankd/
> 

/sbin/ifconfig de0 inet xxx.xxx.xxx.xxx netmask 255.255.255.255 alias

Of course replace the de0 with your ethernet device and the xxx's with your
ip address. This works for FreeBSD 2.2.1

--jeff (posting from a friends mailbox, please do not reply, they will get
incredibly confused)