我在家里的根服务器上新安装的 Debian 10 遇到了一个大问题。我使用连接到交换机的 2 个 NIC 作为“bond0”,现在我想为我的 kvm 客户端添加一个桥接器“br0”。我不想为“bond0”或“br0”分配 IPv4 地址。它们应该只允许客户端获取 IPv4 地址。遗憾的是,客户端只变成了 IPv6,而且可以正常工作,但我需要为它们使用 IPv4,我不知道问题出在哪里。
我在内核中启用了 IPv4 转发echo 1 > /proc/sys/net/ipv4/ip_forward
这是我的 /etc/network/interfaces:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eno1
iface eno1 inet manual
# The primary network interface
allow-hotplug eno2
iface eno2 inet manual
#Bonding Interface to HP-Switch for br0
auto bond0
iface bond0 inet manual
bond_slaves eno1 eno2
bond_mode 0
bond_miimon 100
bond_updelay 200
bond_downdelay 200
#br0 für KVm/QEMU
auto br0
iface br0 inet manual
bridge_ports bond0
bridge_fd 2
bridge_stp on
bridge_maxwait 0
# The primary network interface
auto eno3
allow-hotplug eno3
iface eno3 inet static
address 192.168.223.201/24
gateway 192.168.223.254
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.223.254
dns-search japasp.local