Date: Fri, 21 May 1999 07:25:23 -0600 (MDT) From: "Aaron D. Gifford" <agifford@infowest.com> To: freebsd-isp@freebsd.org Subject: Re: ifconfig_if0_alias? Message-ID: <19990521132523.642AD20F65@infowest.com>
next in thread | raw e-mail | index | archive | help
>> On Thu, May 20, 1999 at 09:46:50AM +0000, Nathanael Lierly wrote: >> > Aloha, >> > >> > I am working on getting a slew of ip's addressed to one interface on a >> > FreeBSD 3.1-R box. Formerly on other boxes I have done this through useing >> > the actuall ifconfig command in rc.local. I am trying to get the right >> > sytax for enteringin rc.conf, I have seen the example in defaults/rc.conf. >> > >> > My question is this, does the aliasX have to ascend in exact order from 0 >> > up with no breaks. If this is so it makes it auful hard for someone with >> > alot of ip's. I suspect Nathanael is asking if the lines in /etc/rc.conf ifconfig_if0_aliasXX="inet AA.BB.CC.DD netmask 0xffffffff" must start at 0 for XXX and ascend in increments of 1 with no breaks. By looking at the code in /etc/rc.networks (I am looking at a 3.2-STABLE box) I see that indeed this is true. They MUST ascend with NO BREAKS or the code believes that the aliases end. For instance: ifconfig_if0_alias0="inet AA.BB.CC.DD netmask 0xffffffff" ifconfig_if0_alias1="inet EE.FF.GG.HH netmask 0xffffffff" ifconfig_if0_alias3="inet II.JJ.KK.LL netmask 0xffffffff" The above fragment would fail to add II.JJ.KK.LL as an an alias. This makes managing aliases by hand in /etc/rc.conf painful once you have more than several tens, because if you ever delete one in the middle, you must renumber the subsequent lines. Another reason I rely on a perl script to write my /etc/rc.conf file for me. Aaron out. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990521132523.642AD20F65>