登录站点

用户名

密码

xp系统上安装了虚拟机,虚拟机上安装了Linux,Linux与xp通信如何保持畅通?

已有 1300 次阅读  2010-06-12 13:43   标签Linux  虚拟机  通信  畅通  系统 
xp系统上安装了虚拟机,虚拟机上安装了Linux,Linux与xp通信如何保持畅通?
我的设置如下:
一/在Linux系统:#setup  进入如下图形界面:
Devernet Configuration
 
Name                    eth0
Device                  eth0
Use DHCP                [  ]
Static IP               128.128.128.56
Netmask                 255.255.0.0
Default gateway IP      128.128.128.1
 
在XP系统“开始”-〉“运行”-〉输入“cmd”,配置如下:
Microsoft Windows XP [版本 5.1.2600]
<C> 版权所有  1985-2001  Microsoft Corp.
C:\Documents and Settings \ymx>ipconfig
Windows IP Configuration
Ethernet adapter VMware Network Adater VMnet8:
                   Connetction -specific DNS Suffix .:
                   IP Address ....................... :192.168.252.1
                   Subnet Mask .......................:255.255.255.0
                   Default Gateway ...................:
Ethernet adapter VMware Network Adater VMnet1:
                   Connetction -specific DNS Suffix .:
                   IP Address ....................... :192.168.0.1
                   Subnet Mask .......................:255.255.255.0
                   Default Gateway ...................:
Ethernet adapter 本地连接:
                  Connetction -specific DNS Suffix .:
                   IP Address ....................... :128.128.128.23
                   Subnet Mask .......................:255.255.0.0
                   Default Gateway ...................:128.128.128.1
二/转换到Linux系统启动network,检验与XP的通信,结果如下:
[root@localhost ~]# /etc/rc.d/init.d/network   restart
Shutting down interface etc0:                                   [ok]
Shutting down Loopback  interface:                              [ok]
Bringing up loopback interface:                                 [ok]
Bringing up interface eth0:                                     [ok]
[root@localhost ~]# ping 128.128.128.23
PING 128.128.128.23 (128.128.128.23) 56 (84) bytes of data.
64 bytes from 128.128.128.23: icmp_seq=1  ttl=64  time=2.15ms
64 bytes from 128.128.128.23: icmp_seq=2  ttl=64  time=0.219ms
64 bytes from 128.128.128.23: icmp_seq=3  ttl=64  time=0.187ms
64 bytes from 128.128.128.23: icmp_seq=4  ttl=64  time=0.200ms
64 bytes from 128.128.128.23: icmp_seq=5  ttl=64  time=0.181ms
..................................................................
...................................................................
结果是:icmp_seq 的值累加,步长为1;time的值是变化的,我在虚拟机中设置的是桥接模式,
我不知道为什么出现这样的结果?请高手指点!
                  
 

上一篇: VHDL编写的比较器 下一篇: Linux下minicom的配置和使用方法 (转贴)

分享 举报

发表评论 评论 (1 个评论)

  • 杨明训 2010-06-18 14:27
    以解决,Linux下ping的语法规则:ping -c 4 目标机IP地址
涂鸦板