查看vm的服务列表是否打开
服务列表需要全部打开,不然无法连接网络
CentOS 7 ifconifg不存在
1.安装ifconifg
yum install ifconifg
提示找不到路径,应该是没有安装网卡
2.查看是否有ifconfig
[root@host-19-15-62-17 ~]# yum search ifconfig
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
============================================== Matched: ifconfig ===============================================
net-tools.x86_64 : Basic networking tools
- yum install net-tools.x86_64
[root@host-19-15-62-17 ~]# yum install net-tools.x86_64
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package net-tools.x86_64 0:2.0-0.25.20131004git.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================================================
Package Arch Version Repository Size
================================================================================================================
Installing:
net-tools x86_64 2.0-0.25.20131004git.el7 Media 306 k
Transaction Summary
================================================================================================================
Install 1 Package
Total download size: 306 k
Installed size: 917 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : net-tools-2.0-0.25.20131004git.el7.x86_64 1/1
Verifying : net-tools-2.0-0.25.20131004git.el7.x86_64 1/1
Installed:
net-tools.x86_64 0:2.0-0.25.20131004git.el7
Complete!
最后一步,查看ifconfig
注意:一定要看第一步的服务是否打开,因为这个查了半天