cd /etc/sysconfig/network-scripts/ 编辑ifcfg-ens33文件的最后一行,将ONBOOT=no改为ONBOOT=yes service network restart