我们有一台Ubuntu-12.04主机,在eth4上运行另一个具有kvm虚拟化和桥接networking接口的ubuntu-12.04虚拟机。 这个networking允许虚拟机访问外部世界。 我想添加另一个桥(br0)到虚拟机,以便它可以访问本地networking。 但每次我尝试这个时,第一个桥都会以某种方式“崩溃”,因为我无法通过ssh访问虚拟机,甚至无法ping通虚拟机。
以下是我试图使用的主机上的/etc/network/interfaces文件
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback auto eth4 iface eth4 inet manual auto br4 iface br4 inet static address 10.52.4.247 netmask 255.255.255.0 gateway 10.52.4.1 dns-nameservers 10.27.3.2 10.25.3.2 broadcast 10.52.4.255 bridge_ports eth4 bridge_stp off bridge_maxwait 5 metric 0 # Local network auto eth0 iface eth0 inet manual auto br0 iface br0 inet static address 192.168.0.21 netmask 255.255.255.0 broadcast 192.168.0.255 bridge_ports eth0 bridge_stp off bridge_maxwait 5 metric 0
我在这里错过了什么? 任何帮助非常感谢!