1、先使用命令查看当前网卡:cd /etc/sysconfig/network-scripts/;ls 2、然后编辑当前网卡:vi ifcfg-ens33 然后重启网卡服务:service network restart