From: Ben Greear <greearb@candelatech.com>
To: NetDev <netdev@vger.kernel.org>
Subject: Re: Determine veth peer device?
Date: Thu, 16 Jul 2009 10:45:38 -0700 [thread overview]
Message-ID: <4A5F6742.6050309@candelatech.com> (raw)
In-Reply-To: <4A5E6C5E.1070808@candelatech.com>
On 07/15/2009 04:55 PM, Ben Greear wrote:
> Is there a way to determine the peer device for a
> veth interface in user-space?
>
> I didn't see anything obvious printed in 'ip link show'
>
> [root@i7-1qc-1 ~]# ip link show dev veth0
> 7: veth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
> state UP qlen 1000
> link/ether 72:2e:4d:74:5b:a6 brd ff:ff:ff:ff:ff:ff
For the record, can get it via ethtool ioctl:
[root@i7-1qc-1 ~]# ethtool -S veth1
NIC statistics:
peer_ifindex: 7
Take it easy,
Ben
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
prev parent reply other threads:[~2009-07-16 17:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-15 23:55 Determine veth peer device? Ben Greear
2009-07-16 17:45 ` Ben Greear [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=4A5F6742.6050309@candelatech.com \
--to=greearb@candelatech.com \
--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.