[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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@plouf.fr.eu.org> wrote:
Le 10/06/2017 à 03:57, Joel Rees a écrit :

    ifconfig eth0 netmask 255.255.255.224 netmask 255.255.255.224
broadcast 10.19.23.223 10.19.23.94

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.


Reply to: