Breaking News
Loading...
Friday 3 January 2014

Ethernet Card and Link Information in Linux

22:13

Command to find out Ethernet card driver name

You can try any one of the following command to find out your Ethernet card driver:
#lspci | grep Ethernet
Output:
04:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5722 Gigabit Ethernet PCI Express
05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8169 PCI Gigabit Ethernet Controller (rev 10)
        Subsystem: Realtek Semiconductor Co., Ltd. RTL8169/8110 Family PCI Gigabit Ethernet NIC
Or

# dmesg | grep 'Ethernet driver'

Output:
8139cp: 10/100 PCI Ethernet driver v1.2 (Mar 22, 2004)
Or search a file called /var/log/dmesg:

# grep 'Ethernet driver' /var/log/dmesg

Output:
8139too Fast Ethernet driver 0.9.27
8139cp: 10/100 PCI Ethernet driver v1.2 (Mar 22, 2004)

You can also get driver name from config file:

# grep eth0 /etc/modprobe.conf

Output:
alias eth0 8139too

OR

# vi /etc/modprobe.conf

Search for eth0 string.

In above example 8139too is driver loaded for eth0. You can find out more information about this driver using modinfo command:

# modinfo 8139too

modinfo program to show information about a Linux Kernel module. You can also find out all loaded modules or drivers using lsmod command:

# lsmod | less

lsmod is a program to show the status of modules in the Linux Kernel.

Command to check Ethernet Link status

#mii-tool eth0
Output:eth0: negotiated 100baseTx-FD flow-control, link ok

0 comments:

Post a Comment

 
Toggle Footer