centos虚拟机不能联网



centos虚拟机不能联网

首先给centos启动eth0网卡。在/etc/sysconfig/network-scripts/ifcfg-eth0里的ONBOOT=yes

启动协议设置为BOOTPROTO=DHCP或者static

如果设为static需要设置ip,网管等。

然后是在虚拟机里设置网络的连接方式:为桥接。

centos虚拟机不能联网

分享: