(Ubuntu 22.04)我正在使用 NetworkManager 配置两个网络接口:一个板载接口设置为使用配置文件A以及 Profile 上的 USB 适配器乙每次我重新启动时,它们都会切换:板载网卡设置为乙, USB 适配器A。
系统日志中没有任何有趣的内容。接口每次启动时都会收到一致的名称和 MAC 地址。两个配置文件都选中了“自动连接”。我尝试设置GRUB_CMDLINE_LINUX_DEFAULT="net.ifnames=0"
- 现在而不是在两者之间切换A和乙设备将被随机分配其他可用配置文件之一(C,德, ETC。)
lshw
如果有帮助的话,这是我的:
*-network
description: Wireless interface
product: Cannon Lake PCH CNVi WiFi
vendor: Intel Corporation
physical id: 14.3
bus info: pci@0000:00:14.3
logical name: wlan0
version: 10
serial: 5c:80:b6:76:d8:51
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=iwlwifi driverversion=5.19.0-41-generic firmware=46.ea3728ee.0 9000-pu-b0-jf-b0- latency=0 link=no multicast=yes wireless=IEEE 802.11
resources: irq:16 memory:b4618000-b461bfff
*-network
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:08:00.0
logical name: eth0
version: 15
serial: 80:fa:5b:78:bb:7a
size: 1Gbit/s
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=5.19.0-41-generic duplex=full firmware=rtl8168h-2_0.0.2 02/26/15 ip=10.0.20.81 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s
resources: irq:18 ioport:3000(size=256) memory:b4404000-b4404fff memory:b4400000-b4403fff
*-network
description: Ethernet interface
physical id: e
bus info: usb@1:2.4
logical name: eth1
serial: 00:e0:4c:df:f5:17
size: 1Gbit/s
capacity: 1Gbit/s
capabilities: ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8152 driverversion=v1.12.13 duplex=full firmware=rtl8153b-2 v1 10/23/19 ip=137.128.161.66 link=yes multicast=yes port=MII speed=1Gbit/s