首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Ubuntu 20.04上使用Apple Thunderbolt 2以太网适配器

在Ubuntu 20.04上使用Apple Thunderbolt 2以太网适配器
EN

Ask Ubuntu用户
提问于 2021-02-17 16:55:41
回答 1查看 2.6K关注 0票数 2

我在我的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提供:

代码语言:javascript
复制
# This is the network config written in 'subiquity'
network:
  ethernets:
    enx00f76f6f62ca:
      dhcp4: true
    version: 2

运行sudo lshw -C network会给出:

代码语言:javascript
复制
  *-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
EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2021-02-18 08:39:29

如果sudo lshw -C network正确地将ThunderBolt2以太网适配器显示为ens9,那么您的/etc/netplan/*..yaml应该如下所示.

代码语言:javascript
复制
network:
  version: 2
  renderer: networkd
  ethernets:
    ens9:
      dhcp4: true
      optional: true

sudo netplan generate

sudo netplan apply

reboot

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1317168

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档