Minimize installation of centos without Nic Problems

Source: Internet
Author: User

To minimize the installation of centos on the virtual machine, you will find that after logging on to the system, you can enter the ifconfig command to find that the etho0 Nic is only LO and the eth0 IP address cannot be found.

1. log on to the system as a root user and use the ifconfig command to temporarily give eth0 an IP address, for example, "ifconfig eth0 192.168.1.99"

2. Find the ifcfg-eth0 file in the/etc/sysconfig/network-scripts directory of the system

3. Edit ifconfig-eth0

Onboot = Yes

Bootproto = static

Ipaddr = 192.168.1.99

Netmask = 255.255.255.0

: WQ

4. Restart the network service # service network restart

5. Finally, run the ifconfig command and check. OK.

This article is from the "Linux" blog, please be sure to keep this source http://xiraowangja.blog.51cto.com/3952075/1863212

Minimize installation of centos without Nic Problems

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.