[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHA+R7Ps+Fz7tww0-4XOtYT4-=iPYhA7OQxLTJcJYFptiRzsnA@mail.gmail.com>
Date: Tue, 2 Sep 2014 12:30:02 -0700
From: Cong Wang <cwang@...pensource.com>
To: Ovidiu Mara <ovidiu.mara@...l.ch>
Cc: netdev <netdev@...r.kernel.org>
Subject: Re: Order of interfaces in output of ip link
On Tue, Sep 2, 2014 at 7:27 AM, Ovidiu Mara <ovidiu.mara@...l.ch> wrote:
> eth0 and eth1 are two ports on the same network card, so I would expect them to be shown together, as they are numbered. According to the documentation I found here ( http://www.policyrouting.org/iproute2.doc.html#ss9.1.1 ): "The number followed by a colon is the interface index or ifindex. This number uniquely identifies the interface. If you look at the output from cat /proc/net/dev you will see that the network devices are listed in the same order as the numbering you see here."
>
You can't rely on the output order to tell if they are the ports
on the same card, you need to dig some other information
for example sysfs.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists