虚拟机linux不能上网
主机是xp系统,虚拟机安装了linux
虚拟机网络使用桥接的方式
现在情况是:
主机能正常上网
主机和虚拟机能互相ping通
虚拟机不能上网,并且ping不通网关
下面是打印出来的信息
主机:
C:\Documents and Settings\Administrator>ipconfig
Windows IP Configuration
Ethernet adapter 本地连接 2:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.0.109
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.0.1
Ethernet adapter VMware Network Adapter VMnet1:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.0.128
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.0.1
虚拟机:
root@zhengdi-desktop:~# ifconfig
eth0 Link encap:以太网 硬件地址 00:0c:29:5c:ae:ea
inet 地址:192.168.0.128 广播:192.168.0.255 掩码:255.255.255.0
inet6 地址: fe80::20c:29ff:fe5c:aeea/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 跃点数:1
接收数据包:683 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:934 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:1000
接收字节:58479 (58.4 KB) 发送字节:59635 (59.6 KB)
中断:18 基本地址:0x2024
lo Link encap:本地环回
inet 地址:127.0.0.1 掩码:255.0.0.0
inet6 地址: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 跃点数:1
root@zhengdi-desktop:~# route
内核 IP 路由表
目标 网关 子网掩码 标志 跃点 引用 使用 接口
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
link-local * 255.255.0.0 U 1000 0 0 eth0
default 192.168.0.1 ernet
主机和虚拟机的防火墙都已经关闭
请问问题出在哪?谢谢