centos7 查看內網的ip,使用ifconfig 或在后面加上參數,都可以查看內網的ip 查看外網的ip,使用curl ifconfig.me命令可以查看外網的ip,#curl ifconfig.me