通过IP查找ip所对应网卡名

来源:互联网 发布:阿里云奥运logo 编辑:程序博客网 时间:2024/06/05 08:51

ip route | grep 172.16.30.130 | awk -F '[ \t*]' '{print $3}'


执行的结果:

[root@localhost xml_onvif]# ip route | grep 172.16.30.130 | awk -F '[ \t*]' '{print $3}'
eth1

0 0
原创粉丝点击