虚拟机设置固定静态IP Centos7
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了虚拟机设置固定静态IP Centos7相关的知识,希望对你有一定的参考价值。
首先,虚拟机网络需要选择NET链接模式。然后找到编辑——虚拟网络编辑器——记住1和2,后面要用到

点击NAT设置

修改网管IP并记住后面要用到,网关IP必须跟之前的第一个不一样,修改完保存。
然后打开网络共享中心——Vmnet8——属性修改然后保存。

进入centos并编辑配置文件/etc.sysconfig/network-scripts/ifcfg-ens333

保存退出然后ip add

然后ping测试是否网络正常

然后reboot重启下在查看下ip是否固定。
完成!!!!!!!
以上是关于虚拟机设置固定静态IP Centos7的主要内容,如果未能解决你的问题,请参考以下文章