hyper-v虚拟机centos7设置静态ip

2024-11-23 10:20:22

1、点击设置

hyper-v虚拟机centos7设置静态ip

2、设置一个不动态分配ip的网卡

hyper-v虚拟机centos7设置静态ip

3、设置好过后,查看该网卡的ip

hyper-v虚拟机centos7设置静态ip

4、编辑网卡的配置文件

hyper-v虚拟机centos7设置静态ip

5、修改如下

hyper-v虚拟机centos7设置静态ip

6、重启网络

hyper-v虚拟机centos7设置静态ip

7、查看centos的ip发现已经生效了

hyper-v虚拟机centos7设置静态ip

8、测试和主机通信

hyper-v虚拟机centos7设置静态ip
猜你喜欢