Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!spool.mu.edu!sol.net!spool.mu.edu!newsspool.sol.net!howland.erols.net!newsfeed.internetmci.com!masternews.telia.net!nntp.bigblue.no!usenet From: Frode Nordahl <froden@bigblue.no> Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: multiple IP on one i/f Date: Fri, 20 Jun 1997 13:45:53 +0200 Organization: Big Blue Systems AS Lines: 47 Message-ID: <33AA6D71.7338F12A@bigblue.no> References: <33a7fdfb.5230095@news1.star.net> NNTP-Posting-Host: eagle.bigblue.no Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------545D9BB4FF1150AF9C5AFE0F" X-Mailer: Mozilla 4.01 [en] (Win95; I) X-Priority: 3 (Normal) Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:43213 This is a multi-part message in MIME format. --------------545D9BB4FF1150AF9C5AFE0F Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Frank DiPrete wrote: > > 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/ Yes, by executing the following commands: ifconfig ep0 xxx.yyy.zzz alias netmask 0xffffffff route add xxx.yyy.zzz localhost Where you replace "ep0" with your network interface, and replace "xxx.yyy.zzz" with the IP adress or hostname to assign. If you want to remove the alias again, execute the same command but with a dash ("-") infront of alias ("-alias"), and remember to remove the route. --------------545D9BB4FF1150AF9C5AFE0F Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Frode Nordahl Content-Disposition: attachment; filename="vcard.vcf" begin: vcard fn: Frode Nordahl n: Nordahl;Frode org: Big Blue Systems AS adr: P.B. 9043 Grønland;;0133 Oslo;Oslo;-;N-0133;NORWAY email;internet: froden@bigblue.no title: Technical manager tel;work: (+47) 22204718 tel;fax: (+47) 22203919 tel;home: - x-mozilla-cpt: ;0 x-mozilla-html: TRUE end: vcard --------------545D9BB4FF1150AF9C5AFE0F--