11
ifconfig 命令无反应

如果使用ifconfig命令查看网卡信息是,没有反应,需要我们自己安装ifconfig

[root@localhost ~]# yum search all ifconfig

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

 * ......

python36-ifcfg.noarch : Python cross-platform network interface discovery (ifconfig/ipconfig/ip)

.................

python36-psutil.x86_64 : A process and system utilities module for Python


[root@localhost ~]# yum install -y net-tools

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

.............                               

Installed:

  net-tools.x86_64 0:2.0-0.25.20131004git.el7                                                        

Complete!


[root@localhost ~]# which ifconfig

/usr/sbin/ifconfig

[root@localhost ~]# ifconfig

em1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

      ........

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536

      ......

ovs-ext: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

        inet6 fe80::480d:7fff:febb:9741  prefixlen 64  scopeid 0x20<link>

       ..............

ovs-int: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

        inet6 fe80::cce7:42ff:feee:3c4c  prefixlen 64  scopeid 0x20<link>

        ...............

ovs-tun: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

        inet6 2403:6a40:0:123:8c6a:64ff:fe08:344c  prefixlen 64  scopeid 0x0<global>

       ...................

phy-ext: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

      ...............

phy-int: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

        ..............


以上就是安装ifconfig 教程

查看版本:cat /etc/redhat-release

升级系统:yum update

安装wget:yum -y install wget 


这条帮助是否解决了您的问题? 已解决 未解决

提交成功!非常感谢您的反馈,我们会继续努力做到更好! 很抱歉未能解决您的疑问。我们已收到您的反馈意见,同时会及时作出反馈处理!