0
点赞
收藏
分享

微信扫一扫

centos7:查看内网ip和外网ip

君心浅语 2023-07-30 阅读 43
centos运维
  1. 查看内网IP

ifconfig
# 简化输出
ifconfig | grep inet
# 简化输出
或
ifconfig -a
或
ip addr 

  1. 查看外网的ip

curl ifconfig.me

举报

相关推荐

0 条评论