CentOS set fixed IP in VMware virtual machines

Source: Internet
Author: User

Because of the need to configure a fixed IP, on the internet for a long time finally found a viable example, the configuration was successful.

1. First access to your gateway

Convenient to use the Select menu bar in the cento system configuration: edit->virtual Network Editor

Select VMnet8, click Nat settings to view the gateway address: The gateway IP here is 192.168.110.2

The next step is to get to the chase.

2. Set up a CentOS static IP:

Three configuration files are involved, namely:

/etc/sysconfig/network

/etc/sysconfig/network-scripts/ifcfg-eth0

/etc/resolv.conf

A. First modify the/etc/sysconfig/network as follows:

Specifies the gateway address.

B. Then modify the/etc/sysconfig/network-scripts/ifcfg-eth0:

C. Final configuration under/etc/resolv.conf: (In fact, this step can be omitted, the above set the DNS server address after the system will automatically modify this configuration file.) )

This is a simple few steps after the virtual machine's IP has been 192.168.110.129.

Once the IP is fixed, you can then set the host

Finally, this configuration must be configured to change the virtual machine configuration Network connection mode to NAT mode Oh.

This document is referenced from http://www.centoscn.com/image-text/config/2014/0617/3148.html

CentOS set fixed IP in VMware virtual machines

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.