Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Jan 2014 12:25:20 -0500
From:      Jason Hellenthal <jhellenthal@dataix.net>
To:        Mark Felder <feld@FreeBSD.org>
Cc:        "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>
Subject:   Re: network.subr _aliasN handling
Message-ID:  <722E0822-0511-49B5-82EB-BA298B0AA102@dataix.net>
In-Reply-To: <1388769205.18631.66232001.48DB5958@webmail.messagingengine.com>
References:  <20131228055324.GA72764@aim7400.DataIX.local> <A7699871-A170-4AD5-B740-ED8BE17C7107@fisglobal.com> <1388769205.18631.66232001.48DB5958@webmail.messagingengine.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail-97004E15-0B3F-4A67-B0CF-0113B2AEDCDD
Content-Type: text/plain;
	charset=us-ascii
Content-Transfer-Encoding: quoted-printable

Is that a confirmed test ?

I still haven't got a chance on a run in with this yet but pretty damn confi=
dent of it.

--=20
 Jason Hellenthal
 Voice: 95.30.17.6/616
 JJH48-ARIN

> On Jan 3, 2014, at 12:13, Mark Felder <feld@FreeBSD.org> wrote:
>=20
>> On Sat, Dec 28, 2013, at 22:24, Teske, Devin wrote:
>>=20
>>> On Dec 27, 2013, at 9:53 PM, <jhellenthal@dataix.net> wrote:
>>>=20
>>> Curious what everyone's opinion would be on modifying the handling of _a=
liasN functions or providing a wrapper around it to handle non-sequential or=
dering.
>>>=20
>>> My goal on this is simple and based around groupings similiar to that of=
 the way user id(1)'s in passwd and group are handled or denoted for use on m=
odern systems.
>>>=20
>>> I.e.: I would like to achieve this...
>>>=20
>>> *_alias[1-99] =3D System type addresses "Importand addresses or internal=
"
>>> *_alias[100-199] =3D Aliases for interface 1
>>> *_alias[200-299] =3D Aliases for interface 2
>>> etc...
>>>=20
>>> NOt looking to achieve some sort of prefered naming convention for the i=
nterface aliases, but loosen them so they may be defined by the user in what=
ever means neccesary to their benefit.
>>>=20
>>> In a scheme similiar to above I attempted to set an address on every oth=
er 4th alias leaving 3 space rule room for insertion of further addresses bu=
t was surprised when the processing of the aliases ceased at the first non-s=
equential space.
>>>=20
>>> So why not just grab every _aliasN no matter of what it is for the inter=
face and shove them into an arrary to be processed by a "for" statement ? th=
e order would still be kept without having to inspect every defintion of ali=
as and incrementing prehistorically.
>>>=20
>>> As well this could provide early loading of the addresses into their res=
pective arrays so they may be processed and provided to any other functions t=
hat may need to access them earlier on in script fallthrough.
>>>=20
>>> Looking at _alias'N' sequentialy feels like a neucense.
>>=20
>> You mean something like the attached?
>> --
>=20
> Commit this and I'll buy you a beverage of your choice the next time I
> run into you :-) I have webservers with a hundred or more aliases, each
> followed by a comment like:
>=20
> ifconfig_em0_aliasXX=3D"1.2.3.4/32" # customer or vhost name
>=20
> And when you need to move an IP to another server or disable one
> temporarily it's very painful. Renumbering is not fun, and it's annoying
> when a new guy not familiar with the consequences makes a change on the
> server and then it's rebooted a month later and some IPs are no longer
> activated on boot!
> _______________________________________________
> freebsd-net@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"

--Apple-Mail-97004E15-0B3F-4A67-B0CF-0113B2AEDCDD
Content-Type: application/pkcs7-signature;
	name=smime.p7s
Content-Disposition: attachment;
	filename=smime.p7s
Content-Transfer-Encoding: base64

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIUOTCCBjAw
ggUYoAMCAQICAwaijjANBgkqhkiG9w0BAQsFADCBjDELMAkGA1UEBhMCSUwxFjAUBgNVBAoTDVN0
YXJ0Q29tIEx0ZC4xKzApBgNVBAsTIlNlY3VyZSBEaWdpdGFsIENlcnRpZmljYXRlIFNpZ25pbmcx
ODA2BgNVBAMTL1N0YXJ0Q29tIENsYXNzIDEgUHJpbWFyeSBJbnRlcm1lZGlhdGUgQ2xpZW50IENB
MB4XDTEzMDUxODA4NTA0OFoXDTE0MDUxOTIyMDk0N1owSDEfMB0GA1UE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