Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想通过IP查找MAC地址。
use Net::ARP; $mac = Net::ARP::arp_lookup($dev,"192.168.1.1");
但是在 CPAN 页面上,他们没有解释这个$dev变量的用途是什么?
$dev
$dev 是用于尝试连接到给定 IP 地址的网络接口。在其他方法中,“lo”和“eth0”作为示例给出。