获取网卡IP地址命令

centos 7centos

ifconfig ens32|grep "inet"|awk -F ' ' 'NR==1{print $2}'ide


centos6spa

 ifconfig eth0|awk -F '[: ]+' 'NR==2{print $4 }'  it

相关文章
相关标签/搜索