How to identify the device ID of Network Card in RHEL ?

Solution Verified - Updated -

Environment

Red Hat Enterprise Linux 4/5/6

Issue

  • I am trying to locate the device ID on my network cards but I cannot  find that specific information, I need that information to upgrade my  drivers.
  • How to findout the Device ID of Network Card ?

Resolution

The command lspci will show you the Device ID of your Network Card or any other pci device . Depending on your system you may be able to run this command without having to be root first.
Try  -nvv options with the lspci commad to get the Device ID of network card.

lspci -nvv

This options  will display lspci output in verbose mode with the numbers without performing a lookup in the device id list.

For example:

lspci shows the following nic card on my system:

09:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5752 Gigabit Ethernet PCI Express (rev 02)

lspci -nvv shows

                           +------- vendor id (Broadcom)
                           |       +--- device id
                          V      V

09:00.0 0200: 14e4:1600 (rev 02)
        Subsystem: 1028:01c2
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 64 bytes
        Interrupt: pin A routed to IRQ 46
        Region 0: Memory at ecef0000 (64-bit, non-prefetchable) [size=64K]
        Expansion ROM at <ignored> [disabled]
        Capabilities: <access denied>
        Kernel driver in use: tg3
        Kernel modules: tg3

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments