From mboxrd@z Thu Jan 1 00:00:00 1970 From: roopa Subject: Re: ip addr add command generates error Date: Mon, 23 Mar 2015 17:13:14 -0700 Message-ID: <5510AC1A.7050507@cumulusnetworks.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "stephen.hemminger@vyatta.com" , "netdev@vger.kernel.org" , "vadim4j@gmail.com" , "Brandeburg, Jesse" To: "Rose, Gregory V" Return-path: Received: from mail-pd0-f182.google.com ([209.85.192.182]:34299 "EHLO mail-pd0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751997AbbCXANQ (ORCPT ); Mon, 23 Mar 2015 20:13:16 -0400 Received: by pdbni2 with SMTP id ni2so203069700pdb.1 for ; Mon, 23 Mar 2015 17:13:16 -0700 (PDT) In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: 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 > > 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.