{"id":3578,"date":"2017-11-04T00:42:33","date_gmt":"2017-11-04T00:42:33","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=3578"},"modified":"2017-11-04T00:42:33","modified_gmt":"2017-11-04T00:42:33","slug":"show-list-network-cards-linux","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2017\/11\/04\/show-list-network-cards-linux\/","title":{"rendered":"Show List Of Network Cards in Linux"},"content":{"rendered":"<p>How do I display a list of all network cards under Linux operating systems?<\/p>\n<p>You can use any one of the following command to list network cards installed under Linux operating systems. Please note that the ifconfig and ip commands will also display interfaces information about vpn, loopback, and other configured interfaces.<\/p>\n<ul>\n<li>lspci command : List all PCI devices.<\/li>\n<li>lshw command : List all hardware.<\/li>\n<li>dmidecode command : List all hardware data from BIOS.<\/li>\n<li>ifconfig command : Outdated network config utility.<\/li>\n<li>ip command : Recommended new network config utility.<\/li>\n<li>lspci command<\/li>\n<\/ul>\n<p>Type the following command:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># lspci | egrep -i --color &#039;network|ethernet&#039;\n\n<\/pre>\n<p>Sample outputs:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">09:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5761e Gigabit Ethernet PCIe (rev 10)\n0c:00.0 Network controller: Intel Corporation Ultimate N WiFi Link 5300\n\n<\/pre>\n<p>lshw command<\/p>\n<p>The lshw command can extract detailed information on the hardware configuration of the machine including network cards. Type the following command:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># lshw -class network\n\n<\/pre>\n<p>Sample outputs:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">  *-network DISABLED      \n       description: Wireless interface\n       product: Ultimate N WiFi Link 5300\n       vendor: Intel Corporation\n       physical id: 0\n       bus info: pci@0000:0c:00.0\n       logical name: wlan0\n       version: 00\n       serial: 00:21:6a:ca:9b:10\n       width: 64 bits\n       clock: 33MHz\n       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless\n       configuration: broadcast=yes driver=iwlwifi driverversion=3.2.0-0.bpo.1-amd64 firmware=8.83.5.1 build 33692 latency=0 link=no multicast=yes wireless=IEEE 802.11abgn\n       resources: irq:46 memory:f1ffe000-f1ffffff\n  *-network\n       description: Ethernet interface\n       product: NetXtreme BCM5761e Gigabit Ethernet PCIe\n       vendor: Broadcom Corporation\n       physical id: 0\n       bus info: pci@0000:09:00.0\n       logical name: eth0\n       version: 10\n       serial: b8:ac:6f:65:31:e5\n       size: 1GB\/s\n       capacity: 1GB\/s\n       width: 64 bits\n       clock: 33MHz\n       capabilities: pm vpd msi pciexpress bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation\n       configuration: autonegotiation=on broadcast=yes driver=tg3 driverversion=3.121 duplex=full firmware=5761e-v3.71 ip=192.168.1.5 latency=0 link=yes multicast=yes port=twisted pair speed=1GB\/s\n       resources: irq:48 memory:f1be0000-f1beffff memory:f1bf0000-f1bfffff\n\n<\/pre>\n<p>ifconfig and ip command<\/p>\n<p>To see all configured network devices, enter:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># ifconfig -a\n\n<\/pre>\n<p>OR<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># ip link show\n\n<\/pre>\n<p>OR<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># ip a\n\n<\/pre>\n<p>Sample outputs:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">1: lo:  mtu 16436 qdisc noqueue state UNKNOWN \n    link\/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00\n    inet 127.0.0.1\/8 scope host lo\n    inet6 ::1\/128 scope host \n       valid_lft forever preferred_lft forever\n2: eth0:  mtu 1500 qdisc mq state UP qlen 1000\n    link\/ether b8:ac:6f:65:31:e5 brd ff:ff:ff:ff:ff:ff\n    inet 192.168.1.5\/24 brd 192.168.1.255 scope global eth0\n    inet6 fe80::baac:6fff:fe65:31e5\/64 scope link \n       valid_lft forever preferred_lft forever\n3: wlan0:  mtu 1500 qdisc noop state DOWN qlen 1000\n    link\/ether 00:21:6a:ca:9b:10 brd ff:ff:ff:ff:ff:ff\n4: pan0:  mtu 1500 qdisc noop state DOWN \n    link\/ether 92:0a:e7:31:e0:83 brd ff:ff:ff:ff:ff:ff\n5: vmnet1:  mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000\n    link\/ether 00:50:56:c0:00:01 brd ff:ff:ff:ff:ff:ff\n    inet 192.168.121.1\/24 brd 192.168.121.255 scope global vmnet1\n    inet6 fe80::250:56ff:fec0:1\/64 scope link \n       valid_lft forever preferred_lft forever\n6: vmnet8:  mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000\n    link\/ether 00:50:56:c0:00:08 brd ff:ff:ff:ff:ff:ff\n    inet 192.168.179.1\/24 brd 192.168.179.255 scope global vmnet8\n    inet6 fe80::250:56ff:fec0:8\/64 scope link \n       valid_lft forever preferred_lft forever\n\n<\/pre>\n<p>\/proc\/net\/dev<\/p>\n<p>The dev pseudo-file contains network device status information. This gives the number of received and sent packets, the number of errors and collisions and other basic statistics.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">$ cat \/proc\/net\/dev\n\n<\/pre>\n<p>Sample outputs:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">Inter-|   Receive                                                |  Transmit\n face |bytes    packets errs drop fifo frame compressed multicast|bytes    packets errs drop fifo colls carrier compressed\n    lo:   20097     179    0    0    0     0          0         0    20097     179    0    0    0     0       0          0\nvmnet8:       0       0    0    0    0     0          0         0        0      33    0    0    0     0       0          0\n  pan0:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0\n wlan0:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0\n  eth0: 592509534  623058    0    0    0     0          0      1053 122269656  401567    0    0    0     0       0          0\nvmnet1:       0       0    0    0    0     0          0         0    \n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>How do I display a list of all network cards under Linux operating systems? You can use any one of the following command to list network cards installed under Linux operating systems. Please note that the ifconfig and ip commands will also display interfaces information about vpn, loopback, and other configured interfaces. lspci command : &#8230; <a title=\"Show List Of Network Cards in Linux\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2017\/11\/04\/show-list-network-cards-linux\/\" aria-label=\"Read more about Show List Of Network Cards in Linux\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[58,72],"tags":[139],"class_list":["post-3578","post","type-post","status-publish","format-standard","hentry","category-linux","category-networking","tag-linux"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/3578","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=3578"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/3578\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=3578"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=3578"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=3578"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}