1.sudo -i 提权 2.cd /etc/sysconfig/network-scripts/ 3.vi ifcfg-ens33 4.修改onboot=yes 5.service network restart 6.ifconfig