找出Ubuntu Linux中可用的网络适配器
时间:2020-01-09 10:38:23 来源:igfitidea点击:
想知道我们在Ubuntu或者任何其他Linux操作系统中使用哪些网络适配器?在Linux中,很容易找到计算机中网络适配器的制造商。打开一个终端并使用以下命令:
sudo lshw -C network
如果以上命令不适用于sudo,请删除超级用户特权。很奇怪但是有帮助。命令的输出内容如下:
*-network description: Wireless interface product: BCM4360 802.11ac Wireless Network Adapter vendor: Broadcom Corporation physical id: 0 bus info: theitroad@localhost:03:00.0 logical name: wlan0 version: 03 serial: 9c:f3:87:c1:5d:6a width: 64 bits clock: 33MHz capabilities: bus_master cap_list 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
该命令的输出为:
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,它没有以太网端口。