我刚安装了一个XenServer 6.1。 它带有标准configuration, networking0连接到NIC 0 。
我创build了一个虚拟机,但是我无法访问主机之外的任何networking。
从VM(172.18.32.20),我尝试ping 172.18.32.254。
试着让它工作,我对主机的基础configuration做了如下修改:
编辑sysctl.conf :
net.ipv4.ip_forward = 1 net.ipv4.icmp_echo_ignore_broadcasts = 1 net.ipv4.conf.all.arp_filter = 1 net.ipv4.conf.default.proxy_arp = 1
运行sysctl -p
/etc/init.d/iptables stop iptables -A FORWARD -j ACCEPT “Ifconfig -a”显示4个接口:eth0,lo,vif12.0(我的VM)和xenbr0(IP = 172.18.32.10,netmask = 255.255.255.0,网关= 178.18.32.254)
$ brctl show bridge name bridge id STP enabled interfaces xenbr0 5000.042b21457249 no eth0 vif12.0
毕竟,我的虚拟机仍然可以ping 172.18.32.10而不是172.18.32.254。
主机可以ping它。
有人能告诉我如何进行,如果桥接是正确的事情?
我成功地使它工作。 问题可能来自与服务器上的ILO适配器的冲突。