如何撤消多通道对我的网络设备造成的损坏

如何撤消多通道对我的网络设备造成的损坏

我运行以下命令,尝试从主机外部访问多通道虚拟机。

multipass launch --network name=enp8s0,mode=auto

这是“multipass networks--format yaml”的输出:

br-enp8s0:
  - type: bridge
    description: Network bridge with enp8s0
enp8s0:
  - type: ethernet
    description: Ethernet device
lxdbr0:
  - type: bridge
    description: Network bridge
mpbr0:
  - type: bridge
    description: Network bridge for Multipass

现在多通道已损坏。我无法创建/访问任何虚拟机。我的主机仍可工作,但 enp8s0 现在是 br-enp8s0 的“子”。我想删除 br-enp8s0,让 enp8s0 再次直接与路由器通信。

以下是 ip a 的输出:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: enp8s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel master br-enp8s0 state UP group default qlen 1000
    link/ether bc:5f:f4:96:02:dd brd ff:ff:ff:ff:ff:ff
3: br-enp8s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether e6:55:e5:22:21:3d brd ff:ff:ff:ff:ff:ff
    inet 10.0.0.38/24 brd 10.0.0.255 scope global dynamic noprefixroute br-enp8s0
       valid_lft 85938sec preferred_lft 85938sec
    inet6 fe80::b0f5:2316:4c9:3f29/64 scope link noprefixroute
       valid_lft forever preferred_lft forever
4: lxdbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether 00:16:3e:18:91:f2 brd ff:ff:ff:ff:ff:ff
    inet 10.18.84.1/24 scope global lxdbr0
       valid_lft forever preferred_lft forever
    inet6 fd42:afc8:d9de:b09a::1/64 scope global
       valid_lft forever preferred_lft forever
5: mpbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether 00:16:3e:cf:bb:61 brd ff:ff:ff:ff:ff:ff
    inet 10.162.239.1/24 scope global mpbr0
       valid_lft forever preferred_lft forever
    inet6 fd42:da6c:15b3:7a5a::1/64 scope global
       valid_lft forever preferred_lft forever
    inet6 fe80::216:3eff:fecf:bb61/64 scope link
       valid_lft forever preferred_lft forever```

答案1

事实证明我要做的就是删除两个设备 enp8s0 和 br-enp8s0 并重新创建 enp8s0。

这并没有让我更接近从主机外部的机器直接从访问虚拟机,但我又回到了正轨。

相关内容