*BSD News Article 66697


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!spool.mu.edu!howland.reston.ans.net!EU.net!sun4nl!news.simplex.nl!xs1!rob
From: rob@xs1.simplex.nl (Rob Simons)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: getting FBSD to see multiple ip addrs
Date: 24 Apr 1996 09:25:35 GMT
Organization: SimpleX Networking Amsterdam
Lines: 49
Message-ID: <4lks2f$frd@news.simplex.nl>
References: <4ljc1d$fl@pelican.unf.edu>
NNTP-Posting-Host: xs1.simplex.nl
X-Newsreader: TIN [version 1.2 PL2]

Cliff Addy (caddy@osprey.unf.edu) wrote:
: I've been fighting with fbsd to get the box to respond to multiple ip 
: addresses.  I've tried using the alias option on ifconfig to set ed0
: to multiple addresses, but this only works with two.  All the examples
: I've seen only set up two ip addresses.  I've tried multiple aliases,
: multiple commands, but the bottom line is I can only have two.

: I've got the problem hacked by setting up multiple fake slip ports, but
: this seems so damn clumsy.

: Is there a better way?
Sure .. setup the ether to have multiple ip's as you tried.  It has to
work, does for me at least. I've got 5 aliases, but I've heard of people
who had *lots* more aliases .. 
Did you try just typing it on the command line ?  

ifconfig ed0 inet x.y.z.5		(primary, suppose this is present)

ifconfig ed0 inet x.y.z.10 netmask 0xffffffff alias
route add x.y.z.10 x.y.z.5

ifconfig ed0 inet x.y.z.11 netmask 0xffffffff alias
route add x.y.z.11 x.y.z.5

ifconfig ed0 inet x.y.z.12 netmask 0xffffffff alias
route add x.y.z.12 x.y.z.5
 etc ..

If it works on the command line, your problem is the configuration 
in the system files.  Actually now we're talking about that, where did
you put the ifconfig's ?  If you put them (hardcoded) into the sysconfig
file you're up shit creek since netstart will only read the last one.
Perhaps you should put them into /etc/start_if.ed0 (only the ifconfig's)

- Rob.

--
/*--------------------------------------------------------------*\
/*   Rob Simons                      |  rob@simplex.nl          *\
/*   ------------  |  -------------  |  --------  |  -------    *\
/*   Novell Netware System Operator  |  UNIX system operator    *\
/*--------------------------------------------------------------*\

--
/*--------------------------------------------------------------*\
/*   Rob Simons                      |  rob@simplex.nl          *\
/*   ------------  |  -------------  |  --------  |  -------    *\
/*   Novell Netware System Operator  |  UNIX system operator    *\
/*--------------------------------------------------------------*\