Set NAT network connection for centos in VMware

Source: Internet
Author: User
In Minimal of Centos6, the network card defaults to onboot = & quot; no & quot;, and the NetworkManager-dependent option is set. NM_CONTROLLED = & quot; yes & quot ;, in the case of minimal, NetworkManger, the default network management tool provided by the system, is not installed. Therefore, we need to change it to Minimal in ONBOOT = & quot; yes & quot; MM_Control Centos 6, which defaults to onboot = "no" for the NIC and sets the option to depend on NetworkManager, NM_CONTROLLED = "yes" because the default network management tool NetworkManger provided by the system is not installed in the case of minimal. So we need to modify it:
ONBOOT = "yes" MM_Controlled = "no ".

Manually edit the Nic configuration file (vi/etc/sysconfig/network-script/ifcfg-eth0) in the following format:

Here we can use dhcp as the default setting.

# Service network restart

VMware sets NAT network connection

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.