VM Virtual Machine Mount CentOS cannot automatically get IP

Source: Internet
Author: User
Tags get ip centos

In the virtual machine VM installed CentOS system, network card selection bridge mode.

At the beginning of the time can also automatically obtain the IP address, suddenly one day the IP disappeared, and then how to restart can not get the IP address. Because the IP was previously available, and the VMware NAT Service and VMware DHCP Service Two have been started, no changes have been made, so the configuration is certainly no problem. Baffled!!!

Later check edit--virtual network Editor ..., go into the VMnet0 bridged auto-bridging--------------------------------VMnet0 vmnet To: "Behind the" Automatic "pull-down menu, found that there are two network cards, one is a VPN, a physical network card. Decisively will "Automatic" replacement for physical network card, restart the CentOS system, Long-lost IP back. PS: The network that my physical network card is connected to is automatically assigned IP.

Brother has the habit of taking notes, so hurriedly write it down. Hope to be useful to everyone.

CentOS Configure the network card to boot automatically obtain IP address:

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

Change onboot= "No" to onboot= "yes"

After saving: Service network restart

View Ip:ifconfig

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.