From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jiri Benc Subject: Re: [PATCH iproute2] iplink: allow to show ip addresses Date: Wed, 26 Nov 2014 14:12:04 +0100 Message-ID: <20141126141204.42c76a37@griffin> References: <1416847337-23661-1-git-send-email-nicolas.dichtel@6wind.com> <20141125061023.GA8819@unicorn.suse.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Nicolas Dichtel , shemminger@vyatta.com, netdev@vger.kernel.org To: Michal Kubecek Return-path: Received: from mx1.redhat.com ([209.132.183.28]:55347 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750945AbaKZNMN (ORCPT ); Wed, 26 Nov 2014 08:12:13 -0500 In-Reply-To: <20141125061023.GA8819@unicorn.suse.cz> Sender: netdev-owner@vger.kernel.org List-ID: On Tue, 25 Nov 2014 07:10:23 +0100, Michal Kubecek wrote: > On Mon, Nov 24, 2014 at 05:42:17PM +0100, Nicolas Dichtel wrote: > > This patch adds a new option (-addresses) to the 'ip link' command so that the > > user can display link details and IP addresses with the same command. > > > > Example: > > $ ip -d -a l ls gre1 > > 9: gre1@NONE: mtu 1468 qdisc noqueue state UNKNOWN mode DEFAULT group default > > link/gre 10.16.0.249 peer 10.16.0.121 promiscuity 0 > > gre remote 10.16.0.121 local 10.16.0.249 ttl inherit ikey 0.0.0.10 okey 0.0.0.10 icsum ocsum > > inet 192.168.0.249 peer 192.168.0.121/32 scope global gre1 > > valid_lft forever preferred_lft forever > > inet6 fe80::5efe:a10:f9/64 scope link > > valid_lft forever preferred_lft forever > > Perhaps it would be more consistent to add -d option to "ip addr show" > instead as we already have -s for statistics there (commit 5d5cf1b43). Agreed. Jiri -- Jiri Benc