Subject: Re: ip addr add command generates error

From: roopa <[email-masked]>
Date: Mon, 23 Mar 2015 17:13:14 -0700

On 3/23/15, 3:43 PM, Rose, Gregory V wrote:
> The 'ip addr add' command used to use the following syntax:
>
> # ip addr add 10.0.0.2/24 brd 10.0.0.255 dev <eth>
>
> However, attempts to use that same command syntax with the current iproute2 tip gives the following error:
>
> Error: an inet prefix is expected rather than "20.0.0.2/24"
>
> This seems like a bug.  The commit that introduces the issue is f3a2ddc124e09d3990b836e322ed39c76c35546e by Vadim Kochan.  Reverting this commit fixes the problem.
>
> Is this change deliberate?  It would break a lot of scripts if so.
>

looked like an unintended change. This was reported a few days back and 
I hit this too in another context and a patch 
https://patchwork.ozlabs.org/patch/451210/ is in the queue.