1、查看网络配置
ifconfig:当前设备正在工作的网卡,启动的设备
ifconfig -a:所有网络设备
ifconfig ens33:查看指定网卡设备
ifconfig ens33 up/down:对指定网卡设备进行开关,或者是if up/down、
如果有多个网卡,systemctl restart network 所有的设备都会先停再开启。需要对单个设备重启,用ifup/down
ifconfig ens33:0 ip地址:基于物理网卡设置虚拟网卡,重启之后就会消失

ifconfig展示信息的含义:
root@test1 \~\]# ifconfig ens33: flags=4163\