centos 7centos
ifconfig ens32|grep "inet"|awk -F ' ' 'NR==1{print $2}'ide
centos6spa
ifconfig eth0|awk -F '[: ]+' 'NR==2{print $4 }' it