Ubuntu / KVM桥接接口IP分配

我有一个运行KVM / libvirt的Ubuntu 12.04 LTS机器。 它有两个物理的以太网接口。 我有专用的eth0作为主接口,并为我的虚拟机在eth1上configuration桥接。 KVM主机/ etc / network / interfaces看起来像这样:

# The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet static address 10.0.5.5 netmask 255.255.255.0 gateway 10.0.5.254 dns-nameservers 10.0.5.1 # The secondary network interface auto br0 iface br0 inet static address 10.0.5.6 netmask 255.255.255.0 gateway 10.0.5.254 bridge_ports eth1 bridge_stp off bridge_fd 0 bridge_maxwait 0 

我的KVM客人在10.0.5.0/24networking上有IP地址。 一切都按预期工作。

我的问题是:如果我想要将networking地址更改为不同的networking,只需在guest虚拟机操作系统中更改它,然后将eth1接口插入其他networking中,或者需要桥接接口在主机上重新configuration? 如果是这样,怎么样? 我想了解br0虚拟接口上IP分配的作用。

br0接口上的IP分配是主系统可以在该接口上通话。 由于您为主机使用单独的网卡,因此可以安全地closuresIP地址。 如何用Ubuntu /etc/network/interfaces来实现,我不知道,但我已经在Centos上完成了。