*BSD News Article 79004


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!news.ececs.uc.edu!news.kei.com!newsfeed.internetmci.com!news.intercall.com!news.sprintlink.net!news-pen-4.sprintlink.net!hermes.is.co.za!news
From: Inus Scheepers <inus@dockside.co.za>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Ifconfig alias problems on NE2000 clone, 2.1-R
Date: Tue, 24 Sep 1996 12:20:59 -0200
Organization: Animatica
Lines: 29
Message-ID: <3247EE4B.79F6@dockside.co.za>
NNTP-Posting-Host: ppp-2.dockside.co.za
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 2.02 (Win16; I)

Hi all, I wonder if someone has come accross this:

We're running a few virtual web servers on 2.1R FreeBSD, using apache.
There is a problem adding the alias ip's to the ethernet card. The system
comes up fine, but won't accept normal ifconfig alias commands. Our first
ip is on x.y.z.8, and we need aliases from .9 to .14.

I can get it going by typing

	ifconfig ed1 x.y.z.9 alias netmask 0xffffffff, followed by
	ifconfig ed1 x.y.z.9 alias netmask 0xffffff00, and again
	ifconfig ed1 x.y.z.9 alias netmask 0xffffffff

and repeating the same for the other ip's. 

What's going on? Surely this isn't normal? I'd like to put these aliases
setups in a rc file somwhere, but now I have to do it manually every 
time the system reboots. Would an upgrade to a later version help fix it?

Some more info: we have 2 class C addresses, x.y.54 and .55, with some 
ppp dial-up lines allocated to the .55 network. I use gated. To set up
the main ip address, (on an NE2000 clone) I use 
	ifconfig ed1 x.y.54.8 netmask 0xfffffe00
The system is quite stable and rarely falls over, with an unbroken run
of about 30 days being the best so far.

Any help/clues appreciated!
--
I