即使拔掉电缆后,物理/桥接和 KVM 端口仍然会显示出来!

即使拔掉电缆后,物理/桥接和 KVM 端口仍然会显示出来!

我们有 Debian 10,它有两个物理接口,我们将其桥接到 KVM。

我遇到的问题是,当我从虚拟操作系统关闭端口或断开电缆时,主机映像 (Debian 10) 的桥接和物理接口仍然会显示。并且在虚拟机中也会显示。可能是什么原因?下面是我的网络配置文件。

# Backplane ("internal") network interface
auto eth0
iface eth0 inet manual

auto br0
iface br0 inet static
        address 192.168.0.4
        netmask 255.255.255.0
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0
        bridge_maxwait 0

# Front panel (RJ45) network interface
auto eth1
iface eth1 inet manual

auto br1
iface br1 inet static
        address 192.168.1.4
        netmask 255.255.255.0
        gateway 192.168.1.1
        bridge_ports eth1
        bridge_stp off
        bridge_fd 0
        bridge_maxwait 0

ip 链接输出

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master br1 state UP mode DEFAULT group default qlen 1000
    link/ether 94:b8:c5:9a:63:58 brd ff:ff:ff:ff:ff:ff
3: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master br0 state UP mode DEFAULT group default qlen 1000
    link/ether 94:b8:c5:9a:63:59 brd ff:ff:ff:ff:ff:ff
4: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
    link/ether 94:b8:c5:9a:63:59 brd ff:ff:ff:ff:ff:ff
5: br1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
    link/ether 94:b8:c5:9a:63:58 brd ff:ff:ff:ff:ff:ff
10: vnet0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master br1 state UNKNOWN mode DEFAULT group default qlen 1000
    link/ether fe:54:00:24:91:84 brd ff:ff:ff:ff:ff:ff
11: vnet1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master br0 state UNKNOWN mode DEFAULT group default qlen 1000
    link/ether fe:54:00:09:c5:f9 brd ff:ff:ff:ff:ff:ff

相关内容