[Ilugc] pci slot mappings in Linux

  • From: balu.manyam@xxxxxxxxx (Balu manyam)
  • Date: Tue Mar 25 08:04:47 2008

to clarify my woes a bit further - if i add a new pci device (lets assume a
SCSI controller or even another NIC) ..the device names get reordered and/or
renamed  - so one has to redo the ifcfg-ethNN files ..check if the drivers
are attaching to the right NICs ...reconfigure
modules.conf/modprobe.conf(distro
specific).......

doing a search on the web , few folks have suggested to have a udev
rule(kernel version >=2.6.*) to bind mac adresss or device adresss to the
device logical name  -- hmm - there must be a simpler way to do this -
especially in 2.4 kernels .............



On Tue, Mar 25, 2008 at 7:28 AM, Balu manyam <balu.manyam@xxxxxxxxx> wrote:

right - i am looking to find a way how the device names are assigned - and
in what particular order the onbaord , pci nics are scanned in linux ....if
i have no physical access to the server and if someone tells me PCI slot 4
(labeled on the server) is connected to switch A....how can i figure out
which ethN  it is .....

thanks!


What could be the need for doing such a thing?

PCI has been a plug and play bus for years now. And newer versions viz
PCI-e and PCI-X are going to be even more easy.

Why do you want to manually figure out the PCI slot?

All that a driver needs in the PCI world are three things.

a) PCI device number
b) PCI function number
c) PCI bus number (Usually this is just 0)

Anyway to answer your question

#lspci -v -v |grep Ethernet

should get you what you want.

-Girish
_______________________________________________
To unsubscribe, email ilugc-request@xxxxxxxxxxxxx with
"unsubscribe <password> <address>"
in the subject or body of the message.
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc



Other related posts: