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

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

posted on 2013-06-20 15:23  竹林后生  阅读(5551)  评论(0编辑  收藏  举报