天嵌 ARM开发社区

 找回密码
 注册
查看: 2608|回复: 4

开发板ping不同虚拟机

[复制链接]
景1 发表于 2011-4-4 23:28:37 | 显示全部楼层 |阅读模式
在开发板
[root@EmbedSky /]# ifconfig
eth0      Link encap:Ethernet  HWaddr 10:23:45:67:89:AB
          inet addr:192.168.1.6  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:51 Base address:0x4000
                                                                                
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
                                                                                
虚拟机上
[root@localhost root]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0C:29:E4:0A:21
          inet addr:192.168.1.4  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4919691 errors:0 dropped:0 overruns:0 frame:0
          TX packets:824 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:616282553 (587.7 Mb)  TX bytes:40784 (39.8 Kb)
          Interrupt:10 Base address:0x2024

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:75325 errors:0 dropped:0 overruns:0 frame:0
          TX packets:75325 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:5153891 (4.9 Mb)  TX bytes:5153891 (4.9 Mb)


PC机
Ethernet adapter 本地连接 2:
        Connection-specific DNS Suffix  . :
        IP Address. . . . . . . . . . . . : 192.168.1.13
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 192.168.1.1


现在情况是
PC机  虚拟机  能互相ping通
PC机  开发板  能互相ping通
虚拟机 开发板  互相ping不通


虚拟机采用的桥接方式,防火墙已经关了
这个问题已经困扰我很好几天了,虚拟机也重装过,网线直连交叉都一样。
一直是这样。请问该怎么办,谢谢。
 楼主| 景1 发表于 2011-4-7 22:31:18 | 显示全部楼层
请问有谁知道吗??
回复

使用道具 举报

shufexiu 发表于 2011-4-8 09:58:37 | 显示全部楼层
你的问题,还真愁人
回复

使用道具 举报

 楼主| 景1 发表于 2011-4-14 21:35:19 | 显示全部楼层
没人知道吗,老大去哪了
回复

使用道具 举报

liangpan 发表于 2011-4-15 18:33:11 | 显示全部楼层
4# 景1
PC机都能ping通开发板了,开发板却不能ping通虚拟机,楼主确定是把开发板和PC机都连接到路由上了么?使用桥接,应该都连接到路由上。不行的话 试一试NAT方式可以么?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2025-6-22 13:36 , Processed in 2.044680 second(s), 20 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表