Chinaunix首页 | 论坛 | 博客
  • 博客访问: 339753
  • 博文数量: 54
  • 博客积分: 497
  • 博客等级: 下士
  • 技术积分: 612
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-16 20:05
个人简介

行动…Don\'t ever let somebody tell you, you can\'t do something. you got a dream, you gotta protect it. people can\'t do something themselves they wanna tell you you can\'t do it.if you want something. go get it.

文章分类

全部博文(54)

文章存档

2021年(3)

2018年(1)

2017年(18)

2016年(7)

2015年(4)

2013年(1)

2011年(20)

我的朋友

分类: LINUX

2015-01-06 15:20:34

centos 7 版本默认最小化安装时,很多命令工具没有安装。需要连网安装。(注:以下均在 root 权限下操作)
1.  检查/sbin下也没有这个命令。
2. 找出哪个包提供了ifconfig命令。

      输入以下命令:     yum provides ifconfig
     或者你也可以使用以下命令:yum whatprovides ifconfig

    这里,“provides”或者“whatprovides”开关用于找出某个包提供了某些功能或文件。

3.输出中所看到的,net-tools包提供了ifconfig命令(输出信息:net-tools-2.0-0.17.20131004git.el7.x86_64 :Basic networking tools)。    因此,让我们安装net-tools包来使用ifconfig命令。
4.  输入: yum install -y net-tools\*
     可以成功安装ifconfig 并能使用
5. 安装完成后查询显示网卡的命名也有所改变,更名为: ens33


CentOS 7最小化系统,使用“ip addr”和“ip link”命令来查找网卡详情。要知道统计数据,可以使用“ip -s link”。
1.要查看网卡细节,输入以下命令: ip addr
2.要查看网络接口统计数据,输入命令:ip link

阅读(9297) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~