Web lists-archives.com

Re: ifconfig network resolution

Le 10/06/2017 à 12:13, Joel Rees a écrit :
On Sat, Jun 10, 2017 at 3:52 PM, Pascal Hambourg <pascal@xxxxxxxxxxxxxxx> wrote:
Le 10/06/2017 à 03:57, Joel Rees a écrit :

    ifconfig eth0 netmask netmask

But the command returns with

SIOCSIFNETMASK: Can't allocate this address.
SIOCSIFBRDADDR: Can't allocate this address.
The address must be set before the mask and broadcast address.

Now there's another puzzle, because the man page indicates that the
address should come after the options.

Actually the man page does not indicate any order : it just says "option | address ..." (options or address)

I had been used to typing it before the options, and was getting the
same kind of results with the address before the parameters, I think.

I tested before replying and got the correct result.