Configure multiple NICs and multiple IP addresses in CentOS in VMware

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.