centos7 配置固定ip JeffZhang2019 2019-03-14 4,751 阅读1分钟 Vmware workstation中的centos ip地址会在没重启的情况下发生变化。 虚拟机的IP租约过期后,IP就会自动重新分配,从而造成IP地址自行变化。 为了应用方便,需要设置centos的固定ip。 版本centos7 设置步骤 1.ifconfig 找到当前的centos的ip 2.进入文件 vim /etc/sysconfig/network-scripts/ifcfg-ens33 3.重启网络服务 使用命令systemctl restart network.service 4.ping下百度,检查下网络是否ok