1.修改"VMware Network Adapter VMnet8",配置IP

虚拟机中CentoOs配置ip且连网

虚拟机中CentoOs配置ip且连网

2.打开虚拟机,"编辑" => "虚拟网络编辑器",配置"VMnet8"

虚拟机中CentoOs配置ip且连网

虚拟机中CentoOs配置ip且连网

虚拟机中CentoOs配置ip且连网

 3.给CentOS配置网络连接方式,“NAT”

虚拟机中CentoOs配置ip且连网

4.给CentOS配置IP

终端运行:

setup

虚拟机中CentoOs配置ip且连网 虚拟机中CentoOs配置ip且连网 虚拟机中CentoOs配置ip且连网

虚拟机中CentoOs配置ip且连网 虚拟机中CentoOs配置ip且连网

5.重启

reboot

6.测试

ping www.baidu.com

虚拟机中CentoOs配置ip且连网

 

============特别注意,如果是克隆的系统,还需要修改网卡=============================================

============特别注意,如果是克隆的系统,还需要修改网卡=============================================

 如果是克隆的情况(网卡是eth1):

ipconfig 网卡为:eth1

这是需要修改centos网卡eth1变成eth0:

1.修改“/etc/udev/rules.d/70-persistent-net.rules”

sudo gedit /etc/udev/rules.d/70-persistent-net.rules

虚拟机中CentoOs配置ip且连网

2.修改“/etc/sysconfig/network-scripts/ifcfg-eth0”

sudo gedit /etc/sysconfig/network-scripts/ifcfg-eth0

虚拟机中CentoOs配置ip且连网

3.重启

 

相关文章:

  • 2022-01-01
  • 2022-01-09
  • 2022-02-06
  • 2021-09-29
  • 2021-10-14
  • 2021-11-20
  • 2021-11-27
猜你喜欢
  • 2021-07-31
  • 2022-01-20
  • 2021-04-11
  • 2021-08-24
  • 2021-12-04
  • 2021-09-15
  • 2021-05-01
相关资源
相似解决方案