常用:ifconfig
如果ifconfig不可用(可以用 ip addr),可能是没有安装net-tools,使用 yum install net-tools 命令安装
====================
vim /etc/hosts
/etc/init.d/network restart