vim /etc/sysconfig/network-scripts/ifcfg-eth0 修改BOOTPROTO为static 新增IPADDR即可 如下图所示 转载于:https://www.cnblogs.com/starfish29/p/10553753.html