1 查看ip
[root@localhost ~]# ip addr

2 root账号修改ip
[root@localhost ~]# su
[root@localhost ~]# cd /etc/sysconfig/network-scripts/
[root@localhost network-scripts]# ll

vi编辑ifcfg-ens33
3 重启网卡
[root@localhost network-scripts]# systemctl restart network