1.查看IP
# ip addr

 

CentOS7 查看IP、Gateway、DNS、Hostname

 

2.查看路由
# ip route

 

CentOS7 查看IP、Gateway、DNS、Hostname

 

3.查看DNS
# cat /etc/resolv.conf

CentOS7 查看IP、Gateway、DNS、Hostname

 

4.查看主机名
# hostname

CentOS7 查看IP、Gateway、DNS、Hostname

相关文章:

  • 2021-09-21
  • 2021-11-15
  • 2022-02-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-12
猜你喜欢
  • 2021-09-14
  • 2022-12-23
  • 2021-04-03
  • 2022-12-23
  • 2021-11-23
  • 2022-12-23
相关资源
相似解决方案