Linux之虚拟机无法ping物理机ip的解决方案

情景复现

我的物理机系统是Window,打开命令终端,执行ipconfig命令

可以知道ip地址为192.168.1.6

在虚拟机上ping物理机ip,没反应

[root@echohye ~]# ping 192.168.1.6
PING 192.168.1.6 (192.168.1.6) 56(84) bytes of data.
...# 等了许久,没反应,按理Ctrl+C
^C

解决方法
打开Windows防火墙,在打开或关闭Windows防火墙中 关闭Windows的防火墙

[root@echohye ~]# ping 192.168.1.6
PING 192.168.1.6 (192.168.1.6) 56(84) bytes of data.
64 bytes from 192.168.1.6: icmp_seq=1 ttl=128 time=0.528 ms
64 bytes from 192.168.1.6: icmp_seq=2 ttl=128 time=0.675 ms
^C

http://t.zoukankan.com/ALittleMoreLove-p-9373450.html

posted @ 2022-08-13 19:05  槑孒  阅读(115)  评论(0编辑  收藏  举报