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