安装Nuget包
Install-Package ArpLookup
示例代码
using System.Net;
using System.Net.NetworkInformation;
using ArpLookup;
var linuxOrWindows = Arp.IsSupported;
Console.WriteLine(linuxOrWindows.ToString());
PhysicalAddress mac = Arp.Lookup(IPAddress.Parse("192.168.126.1"));
Console.WriteLine(mac.ToString());
参考网址
https://github.com/georg-jung/ArpLookup
标签:ARP,Console,C#,ArpLookup,System,查询,WriteLine,using,Net From: https://www.cnblogs.com/wzwyc/p/17622409.html