系统安装好后如下图设置virtualbox虚拟机的网络连接方式 然后启动虚拟机 ifconfig发现如下图 vi /etc/sysconfig/network-scripts/ifcfg-eth0 根据主机的网络配置如下 启动eth0网卡 ifup eth0 如果没有任何提示说明启动成功 这里如果提示Device eth0 does not seem to be present. delaying initialization 很有可能是mac地址刷新后不匹配 查看/etc/udev/rules
cd /etc/sysconfig/network-scripts/; cp ifcfg-eth0 ifcfg-br0 vi ifcfg-eth0 //增加BRIDGE=br0,删除IPADDR,NETMASK,GATEWAY,DNS1 vi ifcfg-br0//修改DEVICE为br0,Type为Bridge,把eth0的网络设置设置到这里来 service network restart 安装pipwork: git clone https://github.com/jpeta