Centos Virtual Machine for host access

Source: Internet
Author: User


The centos virtual machine requires two NICs (one nat and one bridging) to access the host machine. I used virtualbox to find ifcfg-ethX in/etc/sysconfig/network-scripts, X indicates the number of the network card, eth0, eth1 and so on, according to the number of the network card installed, this side appears in turn if there is no eth1, then cp ifcfg-eth0 ifcfg-eth1, and then modify the name and mac address, the mac address of eth1 is the address of the second network card of the VM. After modification, wq will save and quit service network restart and restart the network card. OK, I hope it will be useful to you.

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.