Configure multiple NICs and multiple IP addresses in CentOS in VMware
1, configure the second Nic 1) CentOS6.5 network configuration (http://blog.csdn.net/clevercode/article/details/46376985 );
How to configure eth0. This article explains how to configure eth1 in a virtual machine.
2) First, add the second Nic device to the Virtual Machine of eth0: 192.168.142.130. Select a virtual machine, right-click it, and add a network adapter.
3) configuration. Configure eth1 as an intranet ip Address: 10.107.1.130.
# Vi/etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE = eth1 # HWADDR = 00: 0C: 29: F5: 6E: 85 TYPE = EthernetONBOOT = yesNM_CONTROLLED = yes # BOOTPROTO = dhcpBOOTPROTO = staticIPADDR = 255.255.255.01166init = noDNS1 = 192.168.142.2
4) restart the NIC.
# Service network restart
5) Check Configuration
# Ifconfig
2. Configure multiple Intranet IP addresses
1) use the same method in the same way as the one in eth0: 192.168.142.20.virtual machine, and configure the second Nic eth1: 10.107.1.20.
10.107.1.130 and 10.107.1.130 are configured as Intranet IP addresses of the same network segment.
2) ping 10.107.1.130 at 10.107.1.large.