我在我的2014年Macbook Pro上安装了Ubuntu20.04Server,所有这些都与USB到以太网适配器一起工作得很好。然而,当我尝试使用Thunderbolt 2到以太网适配器时,我无法使网络连接正常工作。运行ip a会显示(我认为是) Thunderbolt接口(ens9)被关闭,所以我运行了sudo ip link ens9 up。然后,Macbook作为设备出现在我的路由器上,但我仍然无法访问它(在它上运行的web服务器可以与USB适配器正常工作)。运行ping google.com提供:ping: google.com: Temporary failure in name resolution。
我没有安装任何驱动程序,只是简单地插入雷霆适配器和引导。很乐意为您提供一些疑难解答。提前感谢!
编辑:运行cat /etc/netplan/*.yaml提供:
# This is the network config written in 'subiquity'
network:
ethernets:
enx00f76f6f62ca:
dhcp4: true
version: 2运行sudo lshw -C network会给出:
*-network
description: Network controller
product: BCM4360 802.11ac Wireless Network Adapter
vendor: Broadcom Inc. and subsidiaries
physical id: 0
bus info: pci@0000:03:00.0
version: 03
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: driver=bcma-pci-bridge latency=0
resources: irq:18 memory:b0600000-b0607fff memory:b0400000-b05fffff
*-network DISABLED
description: Ethernet interface
product: NetXtreme BCM57762 Gigabit Ethernet PCIe
vendor: Broadcom Inc. and subsidiaries
physical id: 0
bus info: pci@0000:0a:00.0
logical name: ens9
version: 00
serial: 18:7e:b9:0a:c7:d6
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm vpd msi msix pciexpress bus_master cap_list rom ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=tg3 driverversion=3.137 firmware=57762-a1.10 latency=0 link=no multicast=yes port=twisted pair
resources: irq:19 memory:bcc00000-bcc0ffff memory:bcc10000-bcc1ffff memory:b0c00000-b0c0ffff发布于 2021-02-18 08:39:29
如果sudo lshw -C network正确地将ThunderBolt2以太网适配器显示为ens9,那么您的/etc/netplan/*..yaml应该如下所示.
network:
version: 2
renderer: networkd
ethernets:
ens9:
dhcp4: true
optional: truesudo netplan generate
sudo netplan apply
reboot
https://askubuntu.com/questions/1317168
复制相似问题