Desired behaviour of "ifconfig -alias"

Oliver Fromme olli at
Mon Feb 12 17:39:43 UTC 2007

Brooks Davis wrote:
 > Oliver Fromme wrote:
 > > Jeremy Chadwick wrote:
 > > > Oliver Fromme wrote:
 > > > FWIW, I still use alias/-alias.  Mainly because that's what has
 > > > existed historically, and the term "alias" is what is used in
 > > > reference to rc.conf ifconfig_iface_aliasX entries.
 > > 
 > > Maybe it would make sense to remove "alias" from the rc.conf
 > > entries and simply number them.
 > ipv4_addrs_<interface> is a much better replacement IMO.  It's easy to
 > use and doesn't required the hackish pseudo array traversal used by
 > ifconfig_iface_aliasX.

That might work for simple cases, but how do you specify
other parameters beside the IPs if you need to?

I agree that the array traversal is somewhat hackish, but
at least it works and provides a way to set all ifconfig
parameters that you need.

Best regards

Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606, USt-Id: DE204219783
Any opinions expressed in this message are personal to the author and may
not necessarily reflect the opinions of secnetix GmbH & Co KG in any way.
FreeBSD-Dienstleistungen, -Produkte und mehr:

"One of the main causes of the fall of the Roman Empire was that,
lacking zero, they had no way to indicate successful termination
of their C programs."
        -- Robert Firth

More information about the freebsd-stable mailing list