网卡1 —对应—eth0—-NAT(网络地址转换)用来与外网通信
网卡2 —对应—eth1—-Host-only用来与主机通信
配置eth0、eth1文件
cd /etc/sysconfig/network-scripts //进入配置目录
vi ifcfg-eth0
cp ifcfg-eth0 ifcfg-eth1 //如果ifcfg-eth1不存在,从ifcfg-eth0拷贝
vi ifcfg-eth1
servic network restart
ifconfig
ping www.baidu.com