一,配置第二块网卡
1) 《CentOS6.5配置网络》(http://blog.youkuaiyun.com/clevercode/article/details/46376985);讲解了
怎么配置eth0。这一篇讲解在虚拟机中配置eth1。
2)首先给eth0:192.168.142.130的虚拟机,添加第二块网卡设备。选中虚拟机,右键设置,添加网络适配器。
3)配置。将eth1配置成为内网ip:10.107.1.130。
# vi /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
#HWADDR=00:0C:29:F5:6E:85
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=yes
#BOOTPROTO=dhcp
BOOTPROTO=static
IPADDR=10.107.1.130
NETMASK=255.255.255.0
IPV6INIT=no
DNS1=192.168.142.2
4)重启网卡。
# service network restart
5)检查配置
# ifconfig