我刚刚从OVH购买了一个dedi服务器(Ubuntu14.04LTS)&额外的IP服务器(称为故障转移IP)。我想要设置一个KVM虚拟机,以便他们有自己的独立IP。下面是我的/etc/网络/接口文件。在目前的状态下,它正在使新的IP从服务器本身&我的家用计算机上切换到ping。然而,当使用虚拟机向导(KVM)时,它会显示"eth0:0不桥接“。我假设我必须连接这个连接,这样它才能利用那个IP。对于一个新的专用服务器所有者来说,有什么简单的方法可以做到吗?Ubuntu一直是我选择的服务器设置,非常有经验。
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 158.69.240.XXX (sensored my IP, but the beginning is accurate)
netmask 255.255.255.0
network 158.69.240.0 (same as my IP... except for last numbers)
broadcast 158.69.240.255 (same as my IP... except for last numbers)
gateway 158.69.240.254 (same as my IP... except for last numbers)
auto eth0:0
iface eth0:0 inet static
address 192.99.229.XXX (this is one of the failover IP's)
netmask 255.255.255.255
broadcast 192.99.229.XXX (this is the same as address)发布于 2016-01-14 14:29:51
不要在主机上配置eth0,而是在主机上使用bridge_ports eth0配置br0。
当使用网桥时,客户可以配置自己的IP,所以您不会在主机上这样做。
https://serverfault.com/questions/748979
复制相似问题