查看ip ifconfig ip addr 设置网络 vi /etc/sysconfig/network-scripts/ifcfg-xx 安装网络工具包 yum install net-tools 重启网络服务 service network restart