今天遇到了这个问题,解决后记录一下:

//输入查询命令 ifconfig或者ip addr

Centos7查不出ip地址

如图,是显示不出信息的

找到ens33的配置文件,输入命令

vi /etc/sysconfig/network-scripts/ifcfg-ens33


Centos7查不出ip地址

Centos7查不出ip地址
改为

Centos7查不出ip地址

然后输入命令 sudo service network restart 重启网卡服务
Centos7查不出ip地址

相关文章:

  • 2021-10-04
  • 2021-11-13
  • 2021-12-13
  • 2021-09-20
  • 2021-11-19
  • 2021-11-19
  • 2021-11-19
  • 2021-11-19
猜你喜欢
  • 2021-11-02
  • 2021-12-29
  • 2021-07-01
  • 2021-06-09
  • 2021-11-28
  • 2021-11-30
  • 2022-12-23
相关资源
相似解决方案