linux系统下查看服务器IPv4和IPv6公网IP和私网IP

  • A+
所属分类:Linux

linux系统下查看服务器IPv4和IPv6公网IP和私网IP

ip addr show eth0 | grep inet | awk '{ print $2; }' | sed 's/\/.*$//'

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: