在我的win7下装了virtualbox, 想在里面装个centos,弄了蛮久才弄到在centos里上网。

一、virtualbox的虚拟机网络配置

网络:选NAT

二、安装好centos后,进入系统配置网络

 

vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=”eth0″
HWADDR=”08:00:27:BE:80:A6″
NM_CONTROLLED=”yes”
ONBOOT=”yes”
BOOTPROTO=”dhcp”

然后reboot,centos就能上网了

centos重启后,用ifconfig查看虚拟机IP

 

win7+VirtualBox+CentOS6网络配置

转载于:https://blog.51cto.com/lj1987/1167161

相关文章:

  • 2021-04-28
  • 2022-01-06
  • 2022-12-23
  • 2022-12-23
  • 2021-07-16
  • 2021-07-10
  • 2021-06-30
  • 2021-12-08
猜你喜欢
  • 2021-08-30
  • 2021-07-06
  • 2021-08-12
  • 2021-06-04
  • 2021-07-04
  • 2021-07-08
相关资源
相似解决方案