How to configure multiple network cards and multiple IP for CentOS in VMware
This article mainly introduces "how to configure multiple network cards and multi-IP in CentOS in VMware". In daily operation, I believe many people have doubts about how to configure multiple network cards and multi-IP in VMware. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts of "how to configure multiple network cards and multi-IP in VMware". Next, please follow the editor to study!
First, configure the second network card
1) configure eth1 in the virtual machine.
2) first, add the second network card device to the virtual machine of eth0:192.168.142.130. Select the virtual machine, right-click the settings, and add the network adapter.
3) configuration. Configure eth1 as a private network ip:10.107.1.130.
# vi / etc/sysconfig/network-scripts/ifcfg-eth1device=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) restart the network card.
# service network restart
5) check the configuration
# ifconfig
Second, configure multiple private network ip
1) in the same way, eth0:192.168.142.133 's virtual machine; configure the second network card eth1:10.107.1.133. Then 10.107.1.130 and 10.107.1.133 are configured as intranet ip of the same network segment.
2) at 10.107.1.133, you can ping 10.107.1.130.
At this point, the study on "how to configure multiple network cards and multiple IP in CentOS in VMware" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!