按照网上教程设置了静态IP后发现,使用ifconfig命令显示无inet信息,同时pingwww.baidu.com,显示

Name or service not known

使用service network restart也无效果。
ifcfg-ens33文件也设置无问题,如下:
CentOS 7设置静态IP后ifconfig无inet显示的解决方法
最终查看各种资料后,使用dhclient重新获取IP后问题解决。
CentOS 7设置静态IP后ifconfig无inet显示的解决方法
建议大家有类似问题的可以尝试一下。

相关文章:

  • 2021-12-04
  • 2021-08-03
  • 2022-02-08
  • 2021-07-24
猜你喜欢
  • 2021-12-04
  • 2021-11-19
  • 2022-01-08
  • 2021-10-14
  • 2021-12-05
  • 2021-07-24
  • 2022-02-07
相关资源
相似解决方案