The NIC is not enabled in VMware, and the NIC is enabled after installing the system, eth0 how to set

Source: Internet
Author: User

Today in the VMware virtual machine installed centos6.5, select Hardware, do not select the network card, the system started, found that there is no network card, then select the virtual machine in VMware-"Settings-" Add-"network adapter, add network card,

Start the system, after entering the system, the ifconfig command found that there are only two network cards

Use Ifconfig-a to view eth0 Nic found

Use the command ifconfig eth0 up boot network card when using the Ifconfig command to view the discovery Eth0 can use the

The network address can be configured with a command such as Ifconfig eth0 172.16.190.18, but once the restart address is not in effect, and the eth0 Nic does not start, it must be manually started again.

Workaround:

1) Add ifconfig eth0 up;ifconfig eth0 172.16.190.18 in/etc/rc.local

2) cp-p Ifcfig-lo ifcfig-eth0 in/etc/sysconfig/network-script/directory; modify ifcfig-eth0 file to change driver and name to Eth0, Address changed to 172.16.190.18, Subnet mask: 255.255.255.0, Gateway 172.16.190.2 (Note: modified according to the address you set), Onboot set to Yes. Restart the service services network restart, if it is not responding, start service NetworkManager Restart services, this times wrong

Create a new network file, Touch/etc/sysconfig/network, restart again, use Ifconfig to see eth0 has an address.

The NIC is not enabled in VMware, and the NIC is enabled after installing the system, eth0 how to set

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.