Home >Operation and Maintenance >CentOS >What to do if ifconfig cannot be used in CentOS

What to do if ifconfig cannot be used in CentOS

angryTom
angryTomOriginal
2020-03-17 14:00:162537browse

What to do if ifconfig cannot be used in CentOS

CentOS ifconfig无法使用怎么办

解决方法:安装net-tools包

sudo yum install net-tools -y

对于centos7来说ifconfig已经过时了所以在centos7中找不到ifconfig命令了,

现在一般都使用"ip addr"和"ip link"来查看网卡信息

1、要查看网卡细节可以使用:“ip add”

2、查看网络接口统计 数据:“ip link”或者“ip -s link”

PHP中文网,大量thinkphp教程,欢迎学习!

The above is the detailed content of What to do if ifconfig cannot be used in CentOS. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn