Linux Network Info

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

Internal

Network Interfaces

ip

To see all network interfaces present on the system: Linux ip#Show_All_Network_Interfaces_and_Their_Details.

To see details about a specific network interface: Linux ip#Show_Details_for_a_Specific_Network_Interface.

For more details see ip.

ifconfig

Performance Characteristics

Go to /sys/class/net/eth0/

Then:

cat speed

Performance characteristics can also be obtained with:

ethtool

Vendor

lspci | grep -i Ethernet

More about

lspci

Driver Information

Using dmesg and modinfo

Grep the dmesg messages for "Ethernet" to figure out the name of the network driver:

dmesg | grep -i ethernet
[    2.304678] tg3 0000:02:00.0 eth0: attached PHY is 5720C (10/100/1000Base-T Ethernet) (WireSpeed[1], EEE[1])
...

The name of the driver loaded in the kernel is "tg3".

To get the driver version, use modinfo:

modinfo tg3
[root@noper430 ~]# modinfo tg3
filename:       /lib/modules/3.10.0-514.16.1.el7.x86_64/kernel/drivers/net/ethernet/broadcom/tg3.ko
firmware:       tigon/tg3_tso5.bin
firmware:       tigon/tg3_tso.bin
firmware:       tigon/tg3.bin
version:        3.137
license:        GPL
description:    Broadcom Tigon3 ethernet driver
author:         David S. Miller (davem@redhat.com) and Jeff Garzik (jgarzik@pobox.com)
rhelversion:    7.3
srcversion:     D276F97F491ADECC61C8284
alias:          pci:v000010CFd000011A2sv*sd*bc*sc*i*
...
signer:         CentOS Linux kernel signing key
sig_key:        3F:E1:EB:8B:4F:91:D4:84:CD:55:44:84:54:A0:24:DE:56:34:E1:06
sig_hashalgo:   sha256
parm:           tg3_debug:Tigon3 bitmapped debugging message enable value (int)

Using ethtool

ethtool -i eth0

driver: tg3
version: 3.137
firmware-version: FFV20.2.17 bc 5720-v1.39
expansion-rom-version:
bus-info: 0000:02:00.0
supports-statistics: yes
supports-test: yes
supports-eeprom-access: yes
supports-register-dump: yes
supports-priv-flags: no

lshw

Use lshw:

lshw -class network

The driver information is listed under "configuration":

configuration: ... driver=tg3 driverversion=3.137 firmware=FFV20.2.17 bc 5720-v1.39 ...

Using OpenManage UI on Dell Servers

System -> Main System Chassis -> Network -> Click on interface -> Driver Name/Driver Version.

For more on OpenManage see:

Dell OpenManage Server Administrator

Hostname

Getting the Hostname

iftop

iftop