Subject: Re: /etc/ifaliases, or $ifaliases_ne0
To: None <>
From: Luke Mewburn <>
List: tech-userlevel
Date: 11/29/1999 08:26:51 writes:
> >it's a shame that /etc/ifaliases wasn't as flexible as the /etc/ifconfig.XXX
> >format.
> >how about supporting /etc/ifaliases.XXX, with syntax of
> >	family aliasaddress [optional parameters]
> >where optional parameters includes netmask, prefixlen, etc...
> >that doesn't help on the variable side (e.g $ifalias_XXX). however,
> >since you may have a number of aliases per interface, it would make
> >it tricky to support a variable number of args *and* multiple aliases
> >per interface in the one shell variable, so don't try and support
> >extending the $if* syntax in your rework.
> 	Actually we can have "alias" configuration into /etc/ifconfig.XXX
> 	(not ifaliases.XXX) like:
> 		inet netmask 0xffffff00 	<-- first address
> 		inet netmask 0xffffff00 alias	<-- alias
> 	so we'd better make the use of /etc/ifaliases obsolete.

I'd forgotten about /etc/ifconfig.XXX supporting multiple lines.
That sounds like a reasonable solution.

The only problem I can see is that you probably can't do
	ifconfig XXX `cat /etc/ifconfig.XXX`
when there's multiple lines, but since multiple line support already
exists, it's not like you're breaking that behaviour...

We could continue to support /etc/ifaliases, but mention that it's