Desired behaviour of "ifconfig -alias"
JoaoBR
joao at matik.com.br
Sat Feb 10 01:00:54 UTC 2007
On Friday 09 February 2007 20:29, Brooks Davis wrote:
> On Fri, Feb 09, 2007 at 01:49:08PM -0800, Jeremy Chadwick wrote:
> > On Fri, Feb 09, 2007 at 04:06:56PM -0500, Kevin Way wrote:
> > > I recently ran into a bug in the jail startup scripts that caused this
> > > command to be executed:
> > >
> > > ifconfig bce0 -alias
> > >
> > > It turns out that this command eliminated the primary IP for the
> > > device.
> > >
....
>
> It's way to late to make this change. This is known behavior and has
> been for ages. If there's a bug it's in the documentation.
>
wellwell, we also were apes for ages but does not mean that we stay behaving
like them and if some still does so it is also never to late to change
that ;)
"ifconfig nic -alias" is obviously a wired and confusing behaviour and should
firstable do what it says, remove an alias and not the first IP address even
if it can be seen as an alias too. Logic would exist when ifconfig nic -alias
removes all aliases (or perhaps first of them) but not one by one starting
with the first ip. Then when there is no other alias left it should better
ask if removing the Ip address is really desired since it is essential to
have one. rmuser and other utilities also ask such kind of questions for less
reason.
then already beeing here there is more, ifconfig nic alias does not return
anything at all and ifconfig nic -alias on a nic w/o ip returns "can't assign
requested address" ...
--
João
A mensagem foi scaneada pelo sistema de e-mail e pode ser considerada segura.
Service fornecido pelo Datacenter Matik https://datacenter.matik.com.br
More information about the freebsd-stable
mailing list