温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

Linux系统安装ifconfig命令有哪些

发布时间:2022-01-24 11:33:52 来源:亿速云 阅读:120 作者:小新 栏目:开发技术

这篇文章主要为大家展示了“Linux系统安装ifconfig命令有哪些”,内容简而易懂,条理清晰,希望能够帮助大家解决疑惑,下面让小编带领大家一起研究并学习一下“Linux系统安装ifconfig命令有哪些”这篇文章吧。

1、发现没有ifconfig命令

 [root@PC3 ~]# ifconfig
 bash: ifconfig: command not found...

2、查找安装包

 [root@PC3 ~]# yum list | grep net-tool*
 net-tools.x86_64                       2.0-0.17.20131004git.el7    rhel7

3、安装

 [root@PC3 ~]# yum install -y net-tools.x86_64
 Loaded plugins: langpacks, product-id, subscription-manager
 This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
 Resolving Dependencies
 --> Running transaction check
 ---> Package net-tools.x86_64 0:2.0-0.17.20131004git.el7 will be installed
 --> Finished Dependency Resolution
 
 Dependencies Resolved
 
 ================================================================================
  Package         Arch         Version                         Repository   Size
 ================================================================================
 Installing:
  net-tools       x86_64       2.0-0.17.20131004git.el7        rhel7       304 k
 
 Transaction Summary
 ================================================================================
 Install  1 Package
 
 Total download size: 304 k
 Installed size: 917 k
 Downloading packages:
 Running transaction check
 Running transaction test
 Transaction test succeeded
 Running transaction
   Installing : net-tools-2.0-0.17.20131004git.el7.x86_64                    1/1
   Verifying  : net-tools-2.0-0.17.20131004git.el7.x86_64                    1/1
 
 Installed:
   net-tools.x86_64 0:2.0-0.17.20131004git.el7                                  
 
 Complete!

4、测试

 [root@PC3 ~]# ifconfig
 eno16777728: flags=4163 mtu 1500
         ether 00:0c:29:7d:e7:11  txqueuelen 1000  (Ethernet)
         RX packets 19  bytes 6216 (6.0 KiB)
         RX errors 0  dropped 0  overruns 0  frame 0
         TX packets 0  bytes 0 (0.0 B)
         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
 
 lo: flags=73 mtu 65536
         inet 127.0.0.1  netmask 255.0.0.0
         inet6 ::1  prefixlen 128  scopeid 0x10         loop  txqueuelen 0  (Local Loopback)
         RX packets 658  bytes 51708 (50.4 KiB)
         RX errors 0  dropped 0  overruns 0  frame 0
         TX packets 658  bytes 51708 (50.4 KiB)
         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

以上是“Linux系统安装ifconfig命令有哪些”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注亿速云行业资讯频道!

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI