1.ifconfig -a | grep enp0 | cut -d : -f 1 //按照:进行切割网络文件名
如:ifconfig `ifconfig -a | grep enp0 | cut -d : -f 1` 192.168.3.110
//等价于ifconfig enp0s29f7u2 192.168.3.110
1.ifconfig -a | grep enp0 | cut -d : -f 1 //按照:进行切割网络文件名
如:ifconfig `ifconfig -a | grep enp0 | cut -d : -f 1` 192.168.3.110
//等价于ifconfig enp0s29f7u2 192.168.3.110