![FreeDOS 不应答 ARP](https://linux22.com/image/1578076/FreeDOS%20%E4%B8%8D%E5%BA%94%E7%AD%94%20ARP.png)
我有 2 个 VirtualBox 虚拟机,其中装有 freeDOS(1.2)作为客户机,我正在尝试在它们之间建立网络连接。
首先,我尝试建立其中一台机器与主机(Windows 10)之间的连接。
似乎由于某种原因,客户机没有回答 ARP 和 ping 请求,尽管它可以向主机发送 ARP 请求并使用答案 ping 主机。
在虚拟机的“网络设置”中,适配器设置为“仅主机适配器”。
此处主机为 192.168.56.1,客户机为 192.168.56.2
从主机 ping 客户机不起作用:
C:\Users\Rafi>ping 192.168.56.2
Pinging 192.168.56.2 with 32 bytes of data:
Request timed out.
Request timed out.
Reply from 192.168.56.1: Destination host unreachable.
Request timed out.
Ping statistics for 192.168.56.2:
Packets: Sent = 4, Received = 1, Lost = 3 (75% loss),
从自身对客户机执行 ping 操作不起作用:
C:\>ping 192.168.56.2
mTCP Ping by M Brutman ([email protected]) (C)opyright 2009-2013
Version: May 23 2013
Timeout waiting for ARP response
从客户机 ping 主机的操作如下:
C:\>ping 192.168.56.1
mTCP Ping by M Brutman ([email protected]) (C)opyright 2009-2013
Version: May 23 2013
ICMP Packet payload is 32 bytes.
Packet sequence number 0 received in 0.85 ms, ttl=128
Packet sequence number 1 received in 0.85 ms, ttl=128
Packet sequence number 2 received in 0.85 ms, ttl=128
Packet sequence number 3 received in 3.40 ms, ttl=128
Packets sent: 4, Replies received: 4, Replies lost: 0
Average time for a reply: 1.48 ms (not counting lost packets)
mTCP 的配置文件(在客户机中):
C:\>type %mtcpcfg%
DHCPVER DHCP Client version May 23 2013
TIMESTAMP ( 1546028611 ) Fri Dec 28 15:23:31 2018
PACKETINT 0x60
IPADDR 192.168.56.2
NETMASK 255.255.255.0
GATEWAY 192.168.56.1
MTU 1500
我该如何解决这个问题?
答案1
FreeDOS 没有常驻 TCP/IP 堆栈,当我尝试 ping 客户机时,没有程序可以处理 ARP 和 ping。
当客户机运行具有处理 TCP/IP 能力的程序时,它会回答 ARP 和 ping。