Re: Desired behaviour of "ifconfig -alias"



Oliver Fromme wrote:
In the case of adding something, what should be added if
nothing is specified? Should the tool invent an arbitrary
IP address and add it? Now that would be nonsensical.

But when removing something without specifying which one,
it makes some sense to simply remove the first existing
address on that interface. It would even be OK with me
to remove the last one, or an arbitrary one -- I use that
shortcut mostely when I need to remove the only address
from an interface (or all existing addresses), so it
doesn't matter.
Doing apparently random and arbitrary things is bad, regardless. To
re-cast the argument, suppose you found out that your employer had
a command in the company accounting system called
"VacationConfig -transfer" that would transfer random days from your
vacation pot to some arbitrary receiver. ..

It is very clear that ifconfig does not behave in the manner that the man
pages claim. Part of that appears to be simple bit-rot, part of it appears
to be an issue as to what it should do. I suggest that everyone toss there
ideas over to -current/hackers and forge a consensus to what ifconfig
should do, and willing volunteers go off and mung the code & docs until it's
that way in -current. Then MFC it back to -stable...

John

------------------------------------------------------------------
John T. Farmer Owner & CTO GoldSword Systems
jfarmer@xxxxxxxxxxxxx 865-691-6498 Knoxville TN
Consulting, Design, & Development of Networks & Software

_______________________________________________
freebsd-stable@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Change an IP address without a reboot
    ... It so happens in this little isolated network I'm ... interface configuration using ifconfig and both the addresses were present. ... specifying the host portion, removing all NS addresses will allow ...
    (freebsd-questions)
  • Re: Desired behaviour of "ifconfig -alias"
    ... man ifconfig defines the behavior of -alias to be: ... specifying the host portion, ... I'd argue that -alias doing what you described (removing the non-aliased ... If there's a bug it's in the documentation. ...
    (freebsd-stable)
  • Re: Desired behaviour of "ifconfig -alias"
    ... man ifconfig defines the behavior of -alias to be: ... specifying the host portion, ... I'd argue that -alias doing what you described (removing the non-aliased ...
    (freebsd-stable)
  • Desired behaviour of "ifconfig -alias"
    ... It turns out that this command eliminated the primary IP for the device. ... man ifconfig defines the behavior of -alias to be: ... specifying the host portion, ...
    (freebsd-stable)