Fedora 18 主机无法 ping Windows XP 客户机

Fedora 18 主机无法 ping Windows XP 客户机

我的笔记本电脑运行 Fedora 18。我想使用 VirtualBox 4.2.6 运行 Windows XP 客户机。我的配置似乎正确,这是我的网络报告。

Fedora 18 主机

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 16436
    inet 127.0.0.1  netmask 255.0.0.0
    inet6 ::1  prefixlen 128  scopeid 0x10<host>
    loop  txqueuelen 0  (Local Loopback)
    RX packets 72  bytes 6640 (6.4 KiB)
    RX errors 0  dropped 0  overruns 0  frame 0
    TX packets 72  bytes 6640 (6.4 KiB)
    TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

p2p1: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
    ether 00:1e:68:68:11:93  txqueuelen 1000  (Ethernet)
    RX packets 0  bytes 0 (0.0 B)
    RX errors 0  dropped 0  overruns 0  frame 0
    TX packets 0  bytes 0 (0.0 B)
    TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    device interrupt 16  

ppp0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST>  mtu 1500
    inet 10.231.243.74  netmask 255.255.255.255  destination 10.20.31.30
    ppp  txqueuelen 3  (Point-to-Point Protocol)
    RX packets 36895  bytes 35633124 (33.9 MiB)
    RX errors 2  dropped 0  overruns 0  frame 0
    TX packets 42421  bytes 3077319 (2.9 MiB)
    TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

vboxnet0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
    inet 192.168.56.1  netmask 255.255.255.0  broadcast 192.168.56.255
    inet6 fe80::800:27ff:fe00:0  prefixlen 64  scopeid 0x20<link>
    ether 0a:00:27:00:00:00  txqueuelen 1000  (Ethernet)
    RX packets 0  bytes 0 (0.0 B)
    RX errors 0  dropped 0  overruns 0  frame 0
    TX packets 348  bytes 41858 (40.8 KiB)
    TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

对于我的 XP guest 虚拟机,IP 地址是 192.168.56.2。在网络设置中,我选择了带有vboxnet0.然而,当我从 Fedora 主机执行 a 时ping,它没有产生任何回复。

[root@laptop Downloads]# ping 192.168.56.2
PING 192.168.56.2 (192.168.56.2) 56(84) bytes of data.
 //here is should be reply answer from blablabla, like in most normal ping 

route -nFedora 18 主机上的命令结果

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.20.31.7      0.0.0.0         UG    0      0        0 ppp0
10.20.31.7      0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
192.168.56.0    0.0.0.0         255.255.255.0   U     0      0        0 vboxnet0

route print我的来宾 Windows XP命令也产生

===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...08 00 27 a5 72 21 ...... AMD PCNET Family PCI Ethernet Adapter - Packet Scheduler Miniport
===========================================================================
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
    127.0.0.0        255.0.0.0        127.0.0.1       127.0.0.1   1
  192.168.56.0    255.255.255.0     192.168.56.2    192.168.56.2      20
  192.168.56.2  255.255.255.255        127.0.0.1       127.0.0.1      20
 192.168.56.255  255.255.255.255     192.168.56.2    192.168.56.2     20
    224.0.0.0        240.0.0.0     192.168.56.2    192.168.56.2   20
 255.255.255.255  255.255.255.255     192.168.56.2    192.168.56.2    1
 ===========================================================================
Persistent Routes:
  None

可能是什么问题呢?

答案1

xp中的子网掩码应该是255.255.255.0而不是255.255.255.255

答案2

卸载该firewalld软件包解决了问题。

答案3

来宾 Windows XP 计算机可以 ping 通主机吗?可能是 Windows 防火墙妨碍了,请尝试禁用它。

相关内容