Subject: Re: [RFC] Stable interface index option

From: Stephen Hemminger <[email-masked]>
Date: Tue, 1 Dec 2015 14:31:10 -0800

On Tue, 01 Dec 2015 22:54:54 +0100
Hannes Frederic Sowa <[email-masked]> wrote:

> 
> On Tue, Dec 1, 2015, at 22:44, Stephen Hemminger wrote:
> > On Tue, 01 Dec 2015 22:14:59 +0100
> > Hannes Frederic Sowa <[email-masked]> wrote:
> > > I had several snmp installations with net-snmp and munin, cacti and so
> > > on and all had the interface name in ifDescription already some years
> > > back.
> > 
> > In net-snmp 5.7 or later ifDescr is set to result of pci_lookup_name
> > (by default).
> 
> Seems the data should simply be in ifName nowadays (unconfirmed):
> <http://www.net-snmp.org/docs/mibs/ifMIBObjects.html>
> 
> Bye,
> Hannes

By default
  ifDescr == ifName == interface name (ie eth0, enp0s1, ...)
If the device is on PCI bus then result is like:

IF-MIB::ifDescr.2 = STRING: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
IF-MIB::ifName.2 = STRING: enp3s0