免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 12038 | 回复: 19
打印 上一主题 下一主题

win7不能ping通linux虚拟机 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-11-11 21:04 |只看该作者 |倒序浏览
win7系统,vm虚拟机安装的linux系统。win7ip为192.168.0.127 网关为192.168.0.1 ,linux ip为192.168.0.128 网关为192.168.0.1
在linux下能ping通win7和网关,但是在win7下不能ping通linux(能ping通网关)。linx下firewall已经是stopped。

可能是那里设置有问题了,请大家帮忙看一下。

论坛徽章:
0
2 [报告]
发表于 2010-11-11 21:12 |只看该作者
我虚拟机用的连接方式是桥接。

论坛徽章:
0
3 [报告]
发表于 2010-11-11 21:20 |只看该作者
桥接 。。。。。。。嘎嘎

论坛徽章:
0
4 [报告]
发表于 2010-11-11 22:04 |只看该作者
arp 能看到邻居的mac么?

论坛徽章:
5
未羊
日期:2014-08-04 16:15:21天秤座
日期:2014-08-13 13:52:372015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:56:112015亚冠之浦和红钻
日期:2015-06-29 15:30:48
5 [报告]
发表于 2010-11-11 23:59 |只看该作者
iptables -vnL
service iptables status
结果发上来看看

论坛徽章:
0
6 [报告]
发表于 2010-11-12 10:44 |只看该作者
[root@localhost ~]# iptables vnL
Bad argument `vnL'
Try `iptables -h' or 'iptables --help' for more information.
[root@localhost ~]# service iptables status
Firewall is stopped.
[root@localhost ~]#

论坛徽章:
0
7 [报告]
发表于 2010-11-12 10:46 |只看该作者
--arp 能看到邻居的mac么?


[root@localhost ~]# arp
Address                  HWtype  HWaddress           Flags Mask            Iface
192.168.0.1              ether   1C:BD:B9:B3:C6:04   C                     eth0

不能看见192.168.0.127,能看见192.168.0.1

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
8 [报告]
发表于 2010-11-12 17:21 |只看该作者
换桥接方式吧,一般没问题的。

论坛徽章:
5
未羊
日期:2014-08-04 16:15:21天秤座
日期:2014-08-13 13:52:372015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:56:112015亚冠之浦和红钻
日期:2015-06-29 15:30:48
9 [报告]
发表于 2010-11-12 20:41 |只看该作者
[root@localhost ~]# iptables vnL
Bad argument `vnL'
Try `iptables -h' or 'iptables --help' for mor ...
liyijie79 发表于 2010-11-12 10:44



    LZ我服了you。。。。。。中间还有一个“-”呢。。。。。

论坛徽章:
0
10 [报告]
发表于 2010-11-13 10:32 |只看该作者
这回对了,dn833帮忙看看
[root@localhost ~]# iptables -vnL
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target     prot opt in     out     source               destination         

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target     prot opt in     out     source               destination         

Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target     prot opt in     out     source               destination         
[root@localhost ~]#
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP