Ccentos查看局域网中的外网出口IP

浏览次数:4604 关键词 ( 网中  Ccentos  IP  )

方法一:

很简单的一个命令:

  1. [root@localhost /]# curl ifconfig.me

  2. 121.101.xxx.xxx


方法二:

因为某种原因,需要知道本地服务器出口IP,可以用以下方法检测:
wget img/20170809/2inethnaddu style="color:#5e6a72;font-family:'lucida grande', helvetica, tahoma, arial, sans-serif;font-size:12px;line-height:21px;background-color:#ffffff;" />cat getip