做这种事,还是在linux上面方便:
modprobe 8021q
vconfig add eth0 10
ifconfig eth0.10 192.168.1.2 up
ping 192.168.1.1 -I eth0.10
抓包就可以了:
# tcpdump -i eth0 -e -n arp or icmp
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
11:15:48.189723 3c:97:0e:57:8c:e1 > ff:ff:ff:ff:ff:ff, ethertype 802.1Q (0x8100), length 46: vlan 10, p 0, ethertype ARP, Request who-has 192.168.1.1 tell 192.168.1.2, length 28
用老牌的抓包工具 Wireshark 试试
没试过,看看第三方软件 貌似有这个功能。