centos-7中使 ifconfig 可以显示IP地址

修改ens33接口自动连接

重启网络

这时候用ifconfig就可以显示IP地址了