>>cd /etc/sysconfig/network-scripts
>>vim vim ifcfg-eth0
>>ifconfig
>>vim /etc/udev/rules.d/70-persistent-net.rules
>>service network restart
下面讲一下如何ssh到virtual box里的centos
登陆到centos里,安装sshd
>>sudo apt-get install openssh-server
>>ps -ef | grep ssh
配置端口转发规则
在mac os的命令行里执行如下操作
>>ssh -p 2222 root@127.0.0.1
下面讲第二种从mac连接到virtual box centos的方式