1. 登入虚机终端,vi /etc/sysconfig/network-scripts/ifcfg-eth0 2. onboot=no 改为 onboot=yes 3. systemctl restart network