Team,
I need to establish a correspondence between the NIC's on the system and the interface names. I need a mechanism that will work without having physical access to the system(ethtool and making the LED on the NIC blink).
lspci -vmm
Slot: 03:00.0
Class: Ethernet controller
Vendor: Broadcom Corporation
Device: NetXtreme II BCM5708 Gigabit Ethernet
SVendor: Dell
SDevice: Device 01b2
Rev: 12
Slot: 07:00.0
Class: Ethernet controller
Vendor: Broadcom Corporation
Device: NetXtreme II BCM5708 Gigabit Ethernet
SVendor: Dell
SDevice: Device 01b2
Rev: 12
ip ad sh
<snip>
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master virbr0 state UP qlen 1000
link/ether 00:22:19:92:ef:ac brd ff:ff:ff:ff:ff:ff
3: eno2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
link/ether 00:22:19:92:ef:ae brd ff:ff:ff:ff:ff:ff
<snip>
Googling tells me that fedora has a tool called "lshw" which will give me exactly what I want. I can, however, not find it for CentOS.
As usual any tips will be appreciated. Regards,
Kartik Vashishta
Need NIC to interface name correspondence
- AlanBartlett
- Forum Moderator
- Posts: 9345
- Joined: 2007/10/22 11:30:09
- Location: ~/Earth/UK/England/Suffolk
- Contact:
Re: Need NIC to interface name correspondence
You can find both lshw and lshw-gui in the EPEL repository for EL7.
Just --
yum --enablerepo extras epel-release
and then --
yum install lshw
(or yum install lshw-gui, depending upon which interface is required).
Just --
yum --enablerepo extras epel-release
and then --
yum install lshw
(or yum install lshw-gui, depending upon which interface is required).
100% Linux and, previously, Unix. Co-founder of the ELRepo Project.
-
- Posts: 66
- Joined: 2015/02/15 18:35:55
Re: Need NIC to interface name correspondence
Thanks Alan. I was however incorrect in my assumption that "lshw will give me everything"...it does not provide a slot number and any correspondence with the interface name from the ip ad sh command.