Blogger Information
Blog 33
fans 0
comment 1
visits 43115
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
在 win7 上的 virtualbox 上面配置 centos 网络访问
萝卜温的博客
Original
868 people have browsed it
  • 在 virtualbox 上安装好 centos

  • 配置网络设置,选择【桥接网络】,然后【高级设置】> 【混杂模式】>允许虚拟电脑,勾选【接入网线】 ,保存设置!

  • 进入 centos ,修改/etc/sysconfig/network-scripts/ifcfg-eth0文件中的网络配置

ONBOOT=yes
BOOTPROTO=static
GATEWAY=网关,参考win7 cmd ifconfig命令
NETMASK=掩码,参考win7 cmd ifconfig命令
IPADDR=分配给centos的静态地址
DNS1=114.114.114.114
DNS2=8.8.8.8

配置好后保存文件,重启网络:service network restart
  • ping win7宿主机ip、ping 网关、ping www.baidu.com

  • 在 win7 cmd 中 ping 虚拟机ip地址,ping通了表示网络连接正常!

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post