Centos7安装ifconfig、bridge-utils

Centos7安装ifconfig、bridge-utils

一 安装ifconfig

1 下载 ifconfig
[root@localhost ~]#  yum search ifconfig
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.bit.edu.cn
 * extras: mirrors.163.com
 * updates: mirror.bit.edu.cn
================================================================ Matched: ifconfig ================================================================
net-tools.x86_64 : Basic networking tools
2 安装 net-tools.x86_64,可以看到最后一行显示net-tools.x86_64 : Basic networking tools,其中net-tools.x86_64就是ifconfig的最新版本,使用yum install net-tools.x86_64 命令安装
[root@localhost ~]#    yum install net-tools.x86_64
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.bit.edu.cn
 * extras: mirrors.163.com
 * updates: mirror.bit.edu.cn
Resolving Dependencies
--> Running transaction check
---> Package net-tools.x86_64 0:2.0-0.22.20131004git.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================================================
 Package                          Arch                          Version                                          Repository                   Size
===================================================================================================================================================
Installing:
 net-tools                        x86_64                        2.0-0.22.20131004git.el7                         base                        305 k

Transaction Summary
===================================================================================================================================================
Install  1 Package

Total download size: 305 k
Installed size: 917 k
Is this ok [y/d/N]: y
Downloading packages:
net-tools-2.0-0.22.20131004git.el7.x86_64.rpm                                                                               | 305 kB  00:00:15     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : net-tools-2.0-0.22.20131004git.el7.x86_64                                                                                       1/1 
  Verifying  : net-tools-2.0-0.22.20131004git.el7.x86_64                                                                                       1/1 

Installed:
  net-tools.x86_64 0:2.0-0.22.20131004git.el7                                                                                                      

Complete!
[root@localhost ~]# 
3 安装完成!

二 安装bridge-utils

1 下载bridge-utils
[root@localhost ~]#   yum search bridge-utils
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.bit.edu.cn
 * extras: mirrors.163.com
 * updates: mirror.bit.edu.cn
============================================================ N/S matched: bridge-utils ============================================================
bridge-utils.x86_64 : Utilities for configuring the linux ethernet bridge

  Name and summary matches only, use "search all" for everything.
2 安装  bridge-utils.x86_64,可以看到最后倒数第二行显示 bridge-utils.x86_64 : Utilities for configuring the linux ethernet bridge,其中 bridge-utils.x86_64就是 bridge-utils的最新版本,使用yum install net-tools.x86_64 命令安装
[root@localhost ~]#   yum install bridge-utils.x86_64
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.bit.edu.cn
 * extras: mirrors.163.com
 * updates: mirror.bit.edu.cn
Resolving Dependencies
--> Running transaction check
---> Package bridge-utils.x86_64 0:1.5-9.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================================================
 Package                                Arch                             Version                              Repository                      Size
===================================================================================================================================================
Installing:
 bridge-utils                           x86_64                           1.5-9.el7                            base                            32 k

Transaction Summary
===================================================================================================================================================
Install  1 Package

Total download size: 32 k
Installed size: 56 k
Is this ok [y/d/N]: y
Downloading packages:
bridge-utils-1.5-9.el7.x86_64.rpm                                                                                           |  32 kB  00:00:15     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : bridge-utils-1.5-9.el7.x86_64                                                                                                   1/1 
  Verifying  : bridge-utils-1.5-9.el7.x86_64                                                                                                   1/1 

Installed:
  bridge-utils.x86_64 0:1.5-9.el7                                                                                                                  

Complete!
[root@localhost ~]# 
3 安装完成!

猜你喜欢

转载自yq.aliyun.com/articles/664999