linux环境下,双击直连ping私有地址时候出现Destination host unreachable 解决办法

在确保网线无故障的情况下,采取以下步骤

1、查看本机的hostname

vim    /etc/sysconfig/network

2、编辑/etc/hosts

vim /etc/hosts

加入以下内容

10.0.0.1 hostname

127.0.0.1 localhost

保存

3.重启网卡

/etc/rc.d/init.d/network restart

原文地址:https://www.cnblogs.com/zjhs/p/3146066.html