4

Mac使用Virtualbox安装Centos的网络配置

 2 years ago
source link: http://code-ken.github.io/2016/03/30/mac-virtualbox-net-config/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Mac使用Virtualbox安装Centos的网络配置

发表于 2016-03-30

  |   分类于 Linux

  |  

真是坑!!!

virtualbox中设置

Mac网络设置

对centos的一些修改

vi /etc/resolv.conf
#这个要对应上mac网络上的IP地址
nameserver 192.168.0.8

vi /etc/sysconfig/network
NETWORKING=yes

vi /etc/sysconfig/network-scripts/ifcfg-eth0
#这个文件只保留这些就可以
DEVICE=eth0
ONBOOT=yes
MM_CONTROLLED=no
BOOTPROTO=dhcp

vi /etc/yum/pluginconf.d/fastestmirror.conf
enabled=0

chkconfig iptables off
/etc/init.d/network restart

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK