Add centos 6 Nic under Virtual Machine

Source: Internet
Author: User


Add a NIC for centos 6 under the virtual machine. You can add a NIC www.2cto.com for the VM "setting" option: I use VMnet2 (it doesn't matter if I select a single virtual machine !! But if you want two eth1 NICs of your two virtual machines to communicate, you must select the same mode !! That is, the two virtual eth1 NICs both choose VMnet2 or VMnet3. In short, they must be the same !!) 2. Check whether the NIC is identified! Vi/etc/udev/rules. d/70-persistent-net.rules # You can see two NICs! Copy the MC address of the eth1 Nic. Next we will create the ifcfg-eht1 file !! (At the beginning, I was depressed for a long time because I couldn't find this file !! Why don't you think about creating it yourself !!....) Three create ifcfg-eht1 Nic configuration file cd/etc/sysconfig/network-scripts/cp ifcfg-eht0 ifcfg-eht1 and then modify the NIC name/MC address/IP address and so on ..!! (Because we copied the eth0 Nic configuration) if we want the eth1 Nic of the two VMS to communicate with each other! You only need to set their eth1 NICs to the same Nic mode, and configure the ip addresses of the same network segment !!
 

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.