命令:

ip  address 简写ip  a

 

过滤出来某个网卡的ip:

ip a show ens33 |awk -F ' ' 'NR==3{print$2}'|cut -d / -f1