天天看點

Linux沒有route、ifconfig指令解決版本(Centos7)

問題如下:

Linux沒有route、ifconfig指令解決版本(Centos7)

缺少net-tools元件:

yum install net-tools

[[email protected] ~]# yum install net-tools
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
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                  base                  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:
net-tools-2.0-0.25.20131004git.el7.x86_64.rpm                                                      | 306 kB  00:00:00     
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!
           

然在次運作,完美恢複:

Linux沒有route、ifconfig指令解決版本(Centos7)

繼續閱讀