楼主:
herbacin (herbacin)
2016-12-18 10:23:25我的环境 VirtualBox 5.1.10
VM : CentOS 7.0
HOST : Windows 7
第一次使用CetnOS 7.0
目前碰到的情况是Host与VM没办法Ping也无法SSH,
我提供我所有相关的配置档5个部分包含(网卡、防火墙、VM)
(1) 网卡设定
配置如下 :
VM :
http://imgur.com/a/xrseb
http://imgur.com/a/r7PfX
Host :
http://imgur.com/a/20Ghv
网段配置都是一样的, 只有ip不同
(2) 防火墙
我已经将新版的firewalld停用 systemctl disable firewalld, 改用iptables
我也暂时先把防火墙关闭了 : systemctl stop iptables
目前iptables : http://imgur.com/a/rHVQ9
(3) 启动sshd
http://imgur.com/a/QWSFI
(4) VM设定
VirtualBox网络部分已经设定桥接接口卡
http://imgur.com/a/FDOiv
(5) VM Ping自己与SSH自己
测试Ping自己与SSH没有问题
http://imgur.com/a/U4Kry
但Host Ping VM 或 VM Ping Host就会出现
http://imgur.com/a/DPELY
作者:
Adama (So Say We All.)
2016-12-18 10:32:00host IP/netmask是?哦 看到了firewalld只是iptables的设定工具,真正FW还是iptablesiptables不是用systemctl关的,那只是开机加载规则的服务要关要用iptables指令去卸载规则。建议还是用firewalld设定iptables -L -n 列出目前规则看有没有挡到ssh
楼主:
herbacin (herbacin)
2016-12-18 10:39:00但至少iptables目前是没档的吧, 只是还是连不上
楼主:
herbacin (herbacin)
2016-12-18 12:45:00目前一样只有timeout的错误
楼主:
herbacin (herbacin)
2016-12-18 13:23:00linux也ping不到win,(5)附图片改成CentOS 6.8就没问题
楼主:
herbacin (herbacin)
2016-12-18 16:44:00比较了他们的不同在 CENTOS 6 ifcfg-eth0 多了 HWADDR的设定
作者:
Bellkna (柔弱气质伪少女)
2016-12-18 19:24:00更新vbox看看
HOST : Windows 7 <--- 把这台防火墙关掉试试看
楼主:
herbacin (herbacin)
2016-12-19 08:37:00装完CentOS 6.8VM后 选择桥接接口卡mode后CetnOS 7也突然可以了 ....