All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vadim Kochan <vadim4j@gmail.com>
To: Cong Wang <cwang@twopensource.com>
Cc: Michael Tokarev <mjt@tls.msk.ru>,
	Network Development <netdev@vger.kernel.org>
Subject: Re: iproute equivalent of replacing address with ifconfig?
Date: Mon, 18 May 2015 21:24:29 +0300	[thread overview]
Message-ID: <20150518182429.GA894@angus-think.lan> (raw)
In-Reply-To: <CAHA+R7Phpe3-ceX=zgWttfhguGWmBx9QQBtCyaGV6C3GOSdu9w@mail.gmail.com>

On Mon, May 18, 2015 at 10:46:58AM -0700, Cong Wang wrote:
> On Mon, May 18, 2015 at 7:03 AM, Michael Tokarev <mjt@tls.msk.ru> wrote:
> >
> > ip addr command however does not have the ability to "replace"
> > an address, there are two commands for that, del and add.
> > So in order to change address, one have to delete and add,
> > a two-step process.  Adding an address before deleting might
> > not work as the new address should not conflict with old
> > address in any way, or else addition fails.
> 
> Are you sure?
> 
> $ ip addr help
> Usage: ip addr {add|change|replace} IFADDR dev STRING [ LIFETIME ]
>                                                       [ CONFFLAG-LIST ]
Ha, but man page does not have it :)

      parent reply	other threads:[~2015-05-18 18:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-18 14:03 iproute equivalent of replacing address with ifconfig? Michael Tokarev
2015-05-18 17:46 ` Cong Wang
2015-05-18 18:13   ` Michael Tokarev
2015-05-18 18:24   ` Vadim Kochan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150518182429.GA894@angus-think.lan \
    --to=vadim4j@gmail.com \
    --cc=cwang@twopensource.com \
    --cc=mjt@tls.msk.ru \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.