| From | Sent On | Attachments |
|---|---|---|
| Kevin Way | Feb 9, 2007 9:35 pm | |
| Jeremy Chadwick | Feb 9, 2007 9:48 pm | |
| Brooks Davis | Feb 9, 2007 10:54 pm | |
| JoaoBR | Feb 10, 2007 1:00 am | |
| Kevin Way | Feb 10, 2007 2:13 am | |
| Jeremy Chadwick | Feb 10, 2007 2:47 am | |
| Ian Smith | Feb 10, 2007 5:12 am | |
| JoaoBR | Feb 10, 2007 10:16 am | |
| Michael Nottebrock | Feb 10, 2007 12:15 pm | |
| Ian Smith | Feb 10, 2007 2:19 pm | |
| Bruce M. Simpson | Feb 11, 2007 1:35 am | |
| Oliver Fromme | Feb 12, 2007 2:26 pm | |
| Brooks Davis | Feb 12, 2007 2:42 pm | |
| Jeremy Chadwick | Feb 12, 2007 3:36 pm | |
| Oliver Fromme | Feb 12, 2007 4:22 pm | |
| Brooks Davis | Feb 12, 2007 4:36 pm | |
| JoaoBR | Feb 12, 2007 5:27 pm | |
| Oliver Fromme | Feb 12, 2007 5:39 pm | |
| Brooks Davis | Feb 12, 2007 5:59 pm | |
| Oliver Fromme | Feb 12, 2007 6:09 pm | |
| Oliver Fromme | Feb 12, 2007 6:23 pm | |
| Brooks Davis | Feb 12, 2007 6:40 pm | |
| Jeremy Chadwick | Feb 12, 2007 7:16 pm | |
| Brooks Davis | Feb 12, 2007 7:27 pm | |
| John Hay | Feb 12, 2007 7:32 pm | |
| Jeremy Chadwick | Feb 12, 2007 7:34 pm | |
| Brooks Davis | Feb 12, 2007 7:43 pm | |
| Freddie Cash | Feb 12, 2007 7:47 pm | |
| JoaoBR | Feb 12, 2007 7:54 pm | |
| JoaoBR | Feb 12, 2007 9:17 pm | |
| Oliver Fromme | Feb 12, 2007 10:04 pm | |
| J. T. Farmer | Feb 12, 2007 11:14 pm | |
| Kevin Way | Feb 12, 2007 11:26 pm | |
| Joerg Pernfuss | Feb 13, 2007 2:01 am | |
| Brooks Davis | Feb 13, 2007 2:23 am | |
| Sam Leffler | Feb 13, 2007 4:00 am | |
| Freddie Cash | Feb 13, 2007 6:08 am | |
| JoaoBR | Feb 13, 2007 7:43 am | |
| Oliver Fromme | Feb 13, 2007 7:57 am | |
| JoaoBR | Feb 13, 2007 8:52 am | |
| Oliver Fromme | Feb 13, 2007 10:38 am | |
| Oliver Fromme | Feb 13, 2007 10:47 am | |
| Bruce M. Simpson | Feb 13, 2007 1:17 pm | |
| Freddie Cash | Feb 13, 2007 5:14 pm | |
| Pete French | Feb 13, 2007 5:19 pm | |
| Freddie Cash | Feb 13, 2007 5:22 pm | |
| Freddie Cash | Feb 13, 2007 5:44 pm | |
| Jeremy Chadwick | Feb 13, 2007 6:08 pm | |
| Oliver Fromme | Feb 13, 2007 6:37 pm | |
| Oliver Fromme | Feb 13, 2007 6:41 pm | |
| Freddie Cash | Feb 13, 2007 6:55 pm | |
| sth...@nethelp.no | Feb 13, 2007 7:02 pm | |
| Joan Picanyol i Puig | Feb 13, 2007 7:04 pm | |
| Patrick M. Hausen | Feb 13, 2007 7:10 pm | |
| Oliver Fromme | Feb 13, 2007 8:06 pm | |
| Oliver Fromme | Feb 13, 2007 8:36 pm | |
| Jeremy Chadwick | Feb 13, 2007 9:32 pm |
| Subject: | Desired behaviour of "ifconfig -alias" | |
|---|---|---|
| From: | JoaoBR (jo...@matik.com.br) | |
| Date: | Feb 12, 2007 5:27:22 pm | |
| List: | org.freebsd.freebsd-stable | |
On Monday 12 February 2007 12:26, Oliver Fromme wrote:
JoaoBR <jo...@matik.com.br> wrote:
....
"ifconfig nic -alias" is obviously a wired and confusing behaviour
It might be confusing to you. Personally I think that the current behaviour isn't that far off.
the question is not you or me, I guess that you are like me perfectly capable of working around messed things. But that does not make it being right or acceptable.
First you need to be aware that there is no distinction between a primary IP and alias IPs (such a distinction existed historically, but it's gone). All of the IPs on an interface are equal, just like hardlinks on a file.
I said this in shorter words in my post but it is not the point at all.
The "-alias" parameter simply removes an address from an
man page tells us that it removes THE specified address ... not AN address
interface. The term "alias" should really be avoided because it is misleading. You can use "delete" or "remove" which do the same thing. I think "-alias" should really be regarded to exist for backwards compatibility only. Personally I always use "delete".
it is not misleading and it is a perfect term. With alias you add secondary addresses to an interface. Like secondary is probably the better word, as cisco does, but what we have is alias and that is ok. It could be any other word so long as it works as it should. (We do have "add" also I remember.)
also don't forget the following, alias is a perfect and usual term, then when I can add an IP address with the alias cmd then -alias should remove it.
I know that I can add the first IP also with alias but that is not the usual way.
Also do not forget that the usual way since ever is ifconfig_nic_alias0 to add one. So this thing is confusing.
If no IP address is specified, then it's not completely nonsensical to remove the first address. In fact I've used that short-cut to quickly remove the only address from an interface. I've used "ifconfig xyz0 delete" quite a lot.
the man page tells us that -alias removes *the* specified address and not the first, also the man page does not say that there is any further action when *no* IP address specified
delete is according to the man page another word for -alias, that means, using grammatical logic that -alias is the main command, then according to the man page there is no other command as "-alias *IP*" to remove an IP address and -alias only should not remove anything
then already beeing here there is more, ifconfig nic alias does not return anything at all
That's the same as "ifconfig nic add". If you don't tell it anything to add, then it won't add anything, of course. Remember that UNIX always tries to do exactly what you tell it to dao. ;-)
you see, now you apply logic because you want to and when not not ... ;)
to let it more clear what I mean, you say: "you don't tell it anything to add" so why the heck "ifconfig nic -alias" should remove one if I do not tell so?
and ifconfig nic -alias on a nic w/o ip returns "can't assign requested address" ...
That error corresponds to EADDRNOTAVAIL, which is the correct errno to return, because there's no address left on the interface. However, I agree that the message is a bit confusing to the unfamiliar.
at least one agreement here :)
--
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





