Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Mar 2016 16:44:17 -0600
From:      John Nielsen <lists@jnielsen.net>
To:        Pallav Bose <pallav_bose@yahoo.com>
Cc:        "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>
Subject:   Re: Identify physical port given a network interface name on Dell PowerEdge servers?
Message-ID:  <5FABB126-8926-40FF-915E-8F7BC0181314@jnielsen.net>
In-Reply-To: <1143344414.2163848.1459287753408.JavaMail.yahoo@mail.yahoo.com>
References:  <1143344414.2163848.1459287753408.JavaMail.yahoo.ref@mail.yahoo.com> <1143344414.2163848.1459287753408.JavaMail.yahoo@mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help


> On Mar 29, 2016, at 3:42 PM, Pallav Bose via freebsd-net <freebsd-net@freebsd.org> wrote:
> 
> Is there a way for me to identify which physical port corresponds to a given interface name? For example, the input to my script/program is the network interface name, like bge0/ix0, and the output is the physical port which maps to this interface, like, LOM1/LOM2 or NIC1 port 1 (in case a NIC card is attached via the PCI bus). This program/script will run on a Dell PowerEdge server.
> 
> LOM stands for LAN On Motherboard.

It sounds like you're looking for something like Dell's biosdevname for Linux. I don't think such a thing exists on FreeBSD, but if you can figure out how to get it the same data should be available from the BIOS. I would start by scrutinizing the output of "dmidecode"; if it's in there then you can just parse it out for your script. If not, you can always dive through the source of biosdevname:

http://linux.dell.com/git/biosdevname.git/




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5FABB126-8926-40FF-915E-8F7BC0181314>