1.查看自己的ip
2.打开自己的虚拟机找到
3.开机进入到系统 切换到管理员用户
执行修改命令
[root@localhost zxl]# vi /etc/sysconfig/network-scripts/ifcfg-ens33
4.修改完毕后 保存退出 运行重启网卡命令
[root@localhost zxl]# systemctl restart network
5.重启后进行ping 本地和百度进行测试
1.查看自己的ip
2.打开自己的虚拟机找到
3.开机进入到系统 切换到管理员用户
执行修改命令
[root@localhost zxl]# vi /etc/sysconfig/network-scripts/ifcfg-ens33
4.修改完毕后 保存退出 运行重启网卡命令
[root@localhost zxl]# systemctl restart network
5.重启后进行ping 本地和百度进行测试