From owner-freebsd-questions Wed Jan 13 18:29:10 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA00844 for freebsd-questions-outgoing; Wed, 13 Jan 1999 18:29:10 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from elara.frii.com (elara.frii.com [208.146.240.9]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA00835 for ; Wed, 13 Jan 1999 18:29:07 -0800 (PST) (envelope-from jott@elara.frii.com) Received: from localhost (jott@localhost) by elara.frii.com (8.9.1a/8.9.1) with ESMTP id TAA28942; Wed, 13 Jan 1999 19:27:37 -0700 (MST) Date: Wed, 13 Jan 1999 19:27:36 -0700 (MST) From: Jake Ott To: Damon Hammis cc: Karl Pielorz , freebsd-questions@FreeBSD.ORG Subject: Re: Ethernet Alias limits? In-Reply-To: <02e801be3d9d$f37bf6e0$944845d1@Samantha.mi.verio.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I couldn't find a response to this on the list, so here goes. They way I learned how to add aliases was a totall seperate file that seems to work much easier for large numbers of aliases. In /etc/rc.conf, just setup the first interface, no aliases. Then, create a file /etc/aliases (or whatever). It should be chmod'ed 700 and chowned to root. The file looks something like this: ifconfig de0 inet aliases.ip physical.ip alias netmask 0xffffff00 ifconfig de0 inet aliases.ip physical.ip alias netmask 0xffffffff ifconfig de0 inet aliases.ip physical.ip alias netmask 0xffffffff The aliases.ip is just the new ip, and the physical ip is the ip of the box. Notice the netmask, 255.255.255.255 (0xffffffff). This is because you are creating a little 1 host network that the computer thinks is also your real ip. The de0 is just your network card's device. After creating the file with all the ips you need, place a line in /etc/rc.local running this file at startup. I.E.: echo -n ` aliases` /etc/aliases That should work for an unlimited number of ips (theres probably some huge limit, but oh well). I've seen over 3 C classes running off 1 box without a problem. -Jake Sally sells C Shells by the seashore. On Mon, 11 Jan 1999, Damon Hammis wrote: > I have them set up like this. > > ifconfig_fxp1_alias0="xxx.xxx.xxx.xxx netmask 0xffffffe0" > ifconfig_fxp1_alias1="xxx.xxx.xxx.xxx netmask 255.255.255.240" > etc...on through 11. > > --Damon > > -----Original Message----- > From: Karl Pielorz > To: Damon Hammis > Cc: freebsd-questions@FreeBSD.ORG > Date: Monday, January 11, 1999 1:37 PM > Subject: Re: Ethernet Alias limits? > > > > > > > >Damon Hammis wrote: > >> > >> Does anyone know if there are limits to the number of aliases you can put > on > >> one ethernet interface? > >> > >> I can't seem to get any of them to work after 10 or so. > > > >Don't think so - theres been people posting to these groups with 200+ > aliases > >on one interface... How are you adding them? (i.e. what command line / > >'/etc/rc.conf' entry?) > > > >-Kp > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message