如何在Ubuntu上找出可用的網絡適配器

jopen 10年前發布 | 43K 次閱讀 Ubuntu

如何在Ubuntu上找出可用的網絡適配器

想知道在Linux中你正在使用的網卡是什么嗎? 在Linux中很容易就找出網卡的生產商。打開一個終端并輸入下面的額命令:

sudo lshw -C network

如果上面的命令不能在sudo下使用,那就別用 sudo 的特權模式。它的輸出看上去有點奇怪但是很有用。

如何在Ubuntu上找出可用的網絡適配器

*-network
    description: Wireless interface
    product: BCM4360 802.11ac Wireless Network Adapter
    vendor: Broadcom Corporation
    physical id: 0
    bus info: pci@0000:03:00.0
    logical name: wlan0
    version: 03
    serial: 9c:f3:87:c1:5d:6a
    width: 64 bits
    clock: 33MHz
    capabilities: busmaster caplist ethernet physical wireless
    configuration: broadcast=yes driver=wl0 driverversion=6.30.223.248 (r487574) ip=192.168.1.23 latency=0 multicast=yes wireless=IEEE 802.11abg
    resources: irq:18 memory:b0600000-b0607fff memory:b0400000-b05fffff

如你所見,我Macbook Air上的無線網卡是BCM4360,這是一款在Ubuntu下面很容易出現無法檢測無線網絡問題的網卡。

lshw 命令實際上是用來列出硬件的,因此命令的名字是lshw。帶上網絡的選項后,就會只過濾出網絡硬件了。

了解網卡的其他方法

另外你還可以使用lspci命令來顯示PCI總線上的信息。你應該使用普通用戶來運行這個命令。只需要在命令行下輸入:

lspci

命令的輸出看上去想這樣:

如何在Ubuntu上找出可用的網絡適配器

00:00.0 Host bridge: Intel Corporation Haswell-ULT DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 09)
00:03.0 Audio device: Intel Corporation Haswell-ULT HD Audio Controller (rev 09)
00:14.0 USB controller: Intel Corporation 8 Series USB xHCI HC (rev 04)
00:16.0 Communication controller: Intel Corporation 8 Series HECI #0 (rev 04)
00:1b.0 Audio device: Intel Corporation 8 Series HD Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 1 (rev e4)
00:1c.1 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 2 (rev e4)
00:1c.2 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 3 (rev e4)
00:1c.4 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 5 (rev e4)
00:1c.5 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 6 (rev e4)
00:1f.0 ISA bridge: Intel Corporation 8 Series LPC Controller (rev 04)
00:1f.3 SMBus: Intel Corporation 8 Series SMBus Controller (rev 04)
02:00.0 Multimedia controller: Broadcom Corporation Device 1570
03:00.0 Network controller: Broadcom Corporation BCM4360 802.11ac Wireless Network Adapter (rev 03)
04:00.0 SATA controller: Marvell Technology Group Ltd. 88SS9183 PCIe SSD Controller (rev 14)

這些命令會同時列出有線和無線的網卡。你應該注意到上面的輸出中顯示我的系統中沒有有線網卡。因為我使用的是Macbook Air,它沒有以太網端口

我希望這邊文章可以幫助你找到你系統中的網卡。歡迎提出問題和建議。


via: http://itsfoss.com/find-network-adapter-ubuntu-linux/

作者:Abhishek 譯者:geekpi 校對:wxy

本文由 LCTT 原創翻譯,Linux中國 榮譽推出

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!