Network card information is not displayed after Linux installation

Source: Internet
Author: User

After installing CentOS 6.4 on the virtual machine, ifconfig only the actual LO interface information, does not display the ETH0 network card information, enters the/etc/sysconfig/network-scripts/directory, can see Ifcfg-eth0 file, vim Ifcfg-eth0 Edit the file, change the "onboot=no" option to "Onboot=yes", Save the exit, and re-excite the Network Service Services service network restart NIC to activate successfully. The purpose of this entry is whether the network interface is configured when the system starts, the default is no, and when set to Yes, the system activates the device when it is started.

Other related configuration information:

To modify the gateway's configuration file:/etc/sysconfig/network

To modify the DNS configuration file:/etc/resolv.conf

Modify host Name:/etc/hosts/etc/network/etc/resolv.conf three files

Set a manual IP address don't forget to set up your gateway and DNS, or else you won't be able to get on the net.

Use Xshell to connect to new IP after reboot

Network card information is not displayed after Linux installation

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.