win7系统的主机无法ping通linux系统的虚拟机

lianlian117 2010-11-08 09:32:53
虚拟机和主机的防火墙都关闭了,IP都设置在同一网段,始终还是无法ping通。大家帮帮忙吧!
...全文
1584 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
JasonLiu798 2010-11-15
  • 打赏
  • 举报
回复
不知你的虚拟机里系统是啥?如果是Redhat的话,那个网卡有bug,需要在
/etc/sysconfig/network-script/ifctg-eth0里添加
check_link_down{
return 0;
}
xiaocai0001 2010-11-15
  • 打赏
  • 举报
回复
1. 虚拟机的网卡配置成什么模式了? Host Only? Bridge? 还是NAT?

2. 虚拟机里的ifconfig -a输出贴出来...

初步估计你用的是Bridge模式.
lianlian117 2010-11-11
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 zylian 的回复:]
你选择虚拟机上的网卡配置,选择第三项,然后在ip设置中,要将ip设成在一个区段内的。
[/Quote]
试过了,没用!
lianlian117 2010-11-11
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 xiaocai0001 的回复:]
Win7下命令行运行

ipconfig /all

虚拟机里运行
ifconfig -a
以及
route -n

帖出信息后再帮你诊断
[/Quote]

rount -n:
Route -n
Kernel IP routing table
Destination gateway genmask flags metric ref use l face
202.204.113.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 lo
ipconfig/all:
Ethernet adapter 本地连接:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Marvell Yukon 88E8072 PCI-E Gigabi
net Controller
Physical Address. . . . . . . . . : 00-25-B3-7D-67-74
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::b122:3fc3:1bdb:78a7%12(Prefe
IPv4 Address. . . . . . . . . . . : 202.204.113.247(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 202.204.113.110
DHCPv6 IAID . . . . . . . . . . . : 268445107
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-12-CD-E7-C5-00-25-B3-7

DNS Servers . . . . . . . . . . . : 202.204.112.66
202.204.112.67
NetBIOS over Tcpip. . . . . . . . : Enabled

Ethernet adapter VMware Network Adapter VMnet1:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter fo
1
Physical Address. . . . . . . . . : 00-50-56-C0-00-01
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::16a:d23b:3618:a552%24(Prefer
IPv4 Address. . . . . . . . . . . : 192.168.230.1(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
DHCPv6 IAID . . . . . . . . . . . : 486559830
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-12-CD-E7-C5-00-25-B3-7

DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
fec0:0:0:ffff::2%1
fec0:0:0:ffff::3%1
NetBIOS over Tcpip. . . . . . . . : Enabled

Ethernet adapter VMware Network Adapter VMnet8:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter fo
8
Physical Address. . . . . . . . . : 00-50-56-C0-00-08
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::4002:bbde:a5c2:e834%25(Prefe
IPv4 Address. . . . . . . . . . . : 192.168.248.1(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
DHCPv6 IAID . . . . . . . . . . . : 503337046
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-12-CD-E7-C5-00-25-B3-7

DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
fec0:0:0:ffff::2%1
fec0:0:0:ffff::3%1
NetBIOS over Tcpip. . . . . . . . : Enabled

Tunnel adapter isatap.{186DA15B-C6FC-40A4-BAE3-EF03A2E5E110}:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter 本地连接* 14:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft 6to4 Adapter #6
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.{83D2D5D0-C6AC-43E0-9DC5-F38CF8371EB2}:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter #2
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Teredo Tunneling Pseudo-Interface:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
IPv6 Address. . . . . . . . . . . : 2001:0:4137:9e76:cb2:2fdd:2470:f27
rred)
Link-local IPv6 Address . . . . . : fe80::cb2:2fdd:2470:f277%17(Prefer
Default Gateway . . . . . . . . . :
NetBIOS over Tcpip. . . . . . . . : Disabled

Tunnel adapter 本地连接* 15:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft 6to4 Adapter #7
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.{74F85D85-CD4F-4570-B4D0-9DD38E519846}:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter #3
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter 本地连接* 16:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft 6to4 Adapter #8
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter 本地连接* 17:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft 6to4 Adapter #9
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
IPv6 Address. . . . . . . . . . . : 2002:cacc:71f7::cacc:71f7(Preferre
Default Gateway . . . . . . . . . : 2002:c058:6301::c058:6301
DNS Servers . . . . . . . . . . . : 202.204.112.66
202.204.112.67
NetBIOS over Tcpip. . . . . . . . : Disabled

帮忙看看吧!
zylian 2010-11-09
  • 打赏
  • 举报
回复
你选择虚拟机上的网卡配置,选择第三项,然后在ip设置中,要将ip设成在一个区段内的。
xiaocai0001 2010-11-08
  • 打赏
  • 举报
回复
Win7下命令行运行

ipconfig /all

虚拟机里运行
ifconfig -a
以及
route -n

帖出信息后再帮你诊断

23,120

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧