对于testing环境,我有一个非常具体的问题。 我有这个networking设置:
+------------+ +------------+ | | +-----+ | | | eth0 +----+ br0 +----+ eth0 | | | +-+---+ | | | Guest1 | | | Guest2 | | | +-----+ | | | eth1 +----+ br1 +----+ eth1 | | | +---+-+ | | +------------+ | | +------------+ +-+-+--+ | Host | +------+
KVM主机为客户机(/ etc / network / interfaces)提供两个桥接器:
auto br0 iface br0 inet manual bridge_ports none bridge_fd 0 bridge_stp off auto br1 iface br1 inet manual bridge_ports none bridge_fd 0 bridge_stp off
访客机器使用此configuration连接到交换机:
# Actual interfaces allow-hotplug eth0 eth1 iface eth0 inet manual iface eth1 inet manual # Internet facing network auto eth0.100 eth1.100 iface eth0.100 inet manual iface eth1.100 inet manual auto bond0 iface bond0 inet manual bond_mode active-backup bond_miimon 200 bond_downdelay 200 bond_updelay 200 # Something I found to make the active secondary slave listening post-up echo 1 > /sys/devices/virtual/net/bond0/bonding/all_slaves_active slaves eth0.100 eth1.100 auto bond0.1 address 10.110.0.10x netmask 255.255.0.0 # Please don't ask why the three vlan is needed. # The bonding works only if these three are defined :\
现在我的问题是以下几点:
两台guest虚拟机上的默认主从机都是eth0.100接口。 如果我用下面的命令closures主站
$ ip link set eth0.100 down
链路按照“ip link”closures,bond修改主slave,但数据包在非活动接口上被接受。 (我通过运行“tshark -i eth1.100”find了它,只显示了ping-reply消息。)
如果我closures了主机上的接口,则整个通信在客人之间停止。 即使是债券也不承认这一变化。
附加信息:
问题:
任何答复表示赞赏。