Identify physical port given a network interface name on Dell PowerEdge servers?
John Nielsen
lists at jnielsen.net
Tue Mar 29 22:44:22 UTC 2016
> On Mar 29, 2016, at 3:42 PM, Pallav Bose via freebsd-net <freebsd-net at 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/
More information about the freebsd-net
mailing list