1.su命令切换root用户
2.执行命令:cd /etc/sysconfig/network-scripts
2.编辑网卡信息:vi ifcfg-ens33
3.更改ip地址
4.重启网络(点击查看重启方法)
[fjll@localhost ~]$ su
Password:
[root@localhost fjll]$ cd /etc/sysconfig/network-scripts
[root@localhost network-scripts]$ vi ifcfg-ens33
1.su命令切换root用户
2.执行命令:cd /etc/sysconfig/network-scripts
2.编辑网卡信息:vi ifcfg-ens33
3.更改ip地址
4.重启网络(点击查看重启方法)
[fjll@localhost ~]$ su
Password:
[root@localhost fjll]$ cd /etc/sysconfig/network-scripts
[root@localhost network-scripts]$ vi ifcfg-ens33