How can I tell what network card I have on PC without opening the box. In other words, Linux networking is working fine, which network card module is it using ? Thanks Marius
On Fri, Sep 05, 2003 at 12:06:16PM +0200, Marius.Roets@eskom.co.za wrote:
How can I tell what network card I have on PC without opening the box. In other words, Linux networking is working fine, which network card module is it using ?
If it's a PCI card, try 'lspci', possibly with '-v' or '-vv' options, or cat /proc/pci -- David Smith Work Email: Dave.Smith@st.com STMicroelectronics Home Email: David.Smith@ds-electronics.co.uk Bristol, England GPG Key: 0xF13192F2
On Fri, 5 Sep 2003 08:06 pm, Marius Roets wrote:
How can I tell what network card I have on PC without opening the box. In other words, Linux networking is working fine, which network card module is it using ?
Try pasting this shell script into a command window a line at a time. for mod in `lsmod | perl -pe's/\s.*$/.o/'` do modprobe -nlt drivers/net $mod done The first line generates a list of all the modules loaded using lsmod The perl pipe strips all but the name of the module and appends ".o" Then inside the do statement modprobe finds the relevant module for you. -n means don't load it, just find it -l means tell me about it -t drivers/net means only network drivers If you put -t fs it would tell you about the filesystem modules and -t drivers/sound would tell you about the sound driver Enjoy, michaelj -- Michael James michael.james@csiro.au System Administrator voice: 02 6246 5040 CSIRO Bioinformatics Facility fax: 02 6246 5166
participants (4)
-
Dave Smith
-
Marius Roets
-
Michael.James@csiro.au
-
Silviu Marin-Caea