hyper-v centos7配置网络

hyper-v中centos7的网络配置比较简单,默认网卡为eth0
登录虚拟机,打开网卡配置

vi /etc/sysconfig/network-scripts/ifcfg-eth0

将末尾的ONBOOT=no改为ONBOOT=yes
重启网络使新配置生效

systemctl restart network

查看ip

ip addr

Sitemap · Rss

津ICP备2021004480号-3