我有一个由以下内容组成的设置:
-> 运行 KVM 的主机具有以下网络配置:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet manual
# The bridge used by GUESTS
auto br0
iface br0 inet static
bridge_ports eth0
bridge_stp off
bridge_fd 9
bridge_hello 2
bridge_maxage 12
bridge_maxwait 0
# Configure the bridge to act also as a maintenance interface
address AAA.BBB.CCC.62
netmask 255.255.255.0
gateway AAA.BBB.CCC.1
dns-nameservers AAA.BBB.CCC.1
# For HOST-GUEST Communications
auto maintenancebr0
iface maintenancebr0 inet static
gateway FFF.XXX.XXX.2
dns-nameservers FFF.XXX.XXX.2
address FFF.XXX.XXX.1
netmask 255.255.255.128
# Add this as a gateway with a lower metric so that is used for fallback only
post-up route add default gw FFF.XXX.XXX.2 metric 2
pre-down route del default gw FFF.XXX.XXX.2
# The interface giving me troubles, can't access this IP through a direct cable connection
auto eth0:0
iface eth0:0 inet static
address FFF.XXX.XXX.188
netmask 255.255.255.240
-> 使用以下网络配置运行的客户机:
# Loopback interface:
auto lo
iface lo inet loopback
# Ethernet 0 interface:
auto eth0
iface eth0 inet static
address AAA.BBB.CCC.67
netmask 255.255.255.0
gateway AAA.BBB.CCC.1
dns-nameservers AAA.BBB.CCC.1
# For HOST-GUEST communication (fallback) connected to maintenancebr0 using libvirt
auto eth7
iface eth7 inet static
address FFF.XXX.XXX.2
netmask 255.255.255.128
# Guest also has a maintenance IP address (this one works fine with a direct cable connection)
auto eth0:0
iface eth0:0 inet static
address FFF.XXX.XXX.178
netmask 255.255.255.240
我的问题如下,其余一切正常:将电缆直接连接到 eth0 端口上的主机,并将我的计算机配置为 IP 地址 FFF.XXX.XXX.177,这样我就可以正常访问 FFF.XXX.XXX.178 上的客户机,但是我似乎无法访问 FFF.XXX.XXX.188 上的主机,为什么?