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!yarrina.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!paladin.american.edu!gatech2!swrinde!newsfeed.internetmci.com!EU.net!Germany.EU.net!news.maz.net!news.omnilink.net!news.toplink.de!toplink1.toplink.net!ck From: ck@news.toplink.de (Christian Kratzer) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: Multiple IP addresses with ifconfig alias Date: 29 Nov 1995 20:32:58 GMT Organization: TopLink GbR, Germany, Internet Services Lines: 32 Message-ID: <49ig1q$7v6@toplink1.toplink.net> References: <49cknd$fpd@eplet.mira.net.au> NNTP-Posting-Host: toplink1.toplink.net X-Newsreader: TIN [version 1.2 PL2] : Hi, : I am running FreeBSD 2.0 with a NE2000 compatible NIC (ed1) and I am : trying to add multiple IPs in order to run multple web servers with : multiple domains, but it doesn't seem to work. The command I have tried : is of the form "ifconfig ed1 inet xxx.xxx.xxx.xxx alias". It doesn't : complain when I enter the command but I get no response when trying to : ping the alias address. : Anybody got any clues. When addinng an alias on the same subnet you also need to add an explicit route to the interface. This works for me on FreeBSD2.0R. Although I will be dumping the NE2000's I have tomorrow (but thats another story). Here's the hack I use to register an additional ip on ed1 ifconfig ed1 inet 1.2.3.4 alias route add 1.2.3.4 localhost ps: Is this still the same on FreeBSD2.0.5 or FreeBSD 2.1R. I will be upgrading soon and would not like to spend 2 days experimenting and searching the net ;-) Greetings Christian -- TopLink GbR, Internet Services info@toplink.net Christian Kratzer http://www.toplink.net/ Phone: +49 7452 87174 Fax: +49 7452 87175 FreeBSD spoken here!