Minimal installation Centos7 cannot perform the workaround for the ifconfig command

Source: Internet
Author: User
Operating Environment

Virtual machine: VirtualBox 5.0.4 for Windows

Operating system: Centos-7-x86_64-minimal-1503-01.iso

Problem description

After logging into the system, enter Ifconfig to view the IP address, but the name is not found.

Workaround

1. Set the network connection mode of the virtual machine to the bridge network card

2. Start the default NIC

Cd/etc/sysconfig/network-scripts

VI IFCFG-ENP0S3

Change Onboot=no to Yes

Description: The name of the IFCFG-ENP0S3 may be different.

3. Restart the network card to ensure that the virtual machine can be networked

Reboot

4. Query the package where the IFCONFG command is located

Yum Search Ifconfig

The result is net-tools.x86_64.

5, Installation Net-tools

Yum Install net-tools.x86_64

6, re-enter ifconfig, you can view the network configuration

Resources

1, http://www.centoscn.com/CentosBug/osbug/2014/0916/3750.html

Minimal installation Centos7 cannot perform the workaround for the ifconfig command

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.