1、   查看:echo $PATH

centos解决ifconfig命令问题

   2、

    (如果没看见 /sbin)【我们这显然不是这个问题】这个一般都是因为配置没弄好,永久解决:

      打开/etc/profile文件,在其中输入export PATH=$PATH:/sbin

centos解决ifconfig命令问题

3、

 

在 /(根目录)里面查找 name(名字)是 ifconfig 的东东

centos解决ifconfig命令问题

说明ifconfig换了

查看显卡信息: ip addr

ip addr

centos解决ifconfig命令问题

 

发现木有(看 2:eth0 没有ipv4)

跳转到 /etc/sysconfig/network-scripts 目录

 

cd /etc/sysconfig/network-scripts

centos解决ifconfig命令问题

 

vim ifcfg-ens33 修改成这样:

centos解决ifconfig命令问题

 

保存

reboot重启

centos解决ifconfig命令问题

 

最后执行:yum install -y net-tools 安装:net-tools 

centos解决ifconfig命令问题

centos解决ifconfig命令问题

相关文章:

  • 2021-11-19
  • 2022-12-23
  • 2021-11-19
  • 2022-01-15
  • 2021-09-13
猜你喜欢
  • 2021-07-15
  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
  • 2021-11-19
  • 2021-04-06
  • 2021-11-19
相关资源
相似解决方案