CentOS 6.4 Set fixed IP in VMware virtual plane

Source: Internet
Author: User

For some reason, testing in a virtual machine requires a fixed IP, so the process is documented.

1. First get your gateway, convenient to use in the Cento system configuration

Choose menu bar: 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:

[HTML]View Plaincopy
  1. device="Eth0"
  2. #bootproto="DHCP"
  3. bootproto="Static"
  4. Ipaddr=192.168.110.129
  5. netmask=255.255.255.0
  6. Hwaddr="00:0c:29:53:a8:1d"
  7. ipv6init="No"
  8. nm_controlled="Yes"
  9. onboot="Yes"
  10. Type="Ethernet"
  11. dns1=192.168.110.2


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.) )

[HTML]View Plaincopy
    1. # Generated by NetworkManager
    2. NameServer 192.168.110.2



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

CentOS 6.4 Set fixed IP in VMware virtual plane

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.