|
|
发表于 2005-6-16 15:12:41
|
显示全部楼层
请问如果向对方发送mac地址算是你要得答案吗? 比如用sendarp发送mac地址过去。
[root@eddie /]# sendarp --help
sendarp: send an arp packet
usage: sendarp [-?] [-v] [-t message_type] [-i interface]
[-p sender_protocol_address] [-P target_protocol_address]
[-h sender_hardware_address] [-H target_hardware_address] [-v
]
-? display this message
-v verbose Default: not verbose
Be verbose
-t message type Default: 1
Identifies the purpose for this ARP packet
1 ARP Request
2 ARP Response
3 Reverse ARP Request
4 Reverse ARP Response
8 Inverse ARP Request
9 Inverse ARP Response
-i interface Default: eth0
Select an interface (eth1, lo, ppp0, whatever...)
-p sender protocol address Default: 0.0.0.0
Identifies the ip address of the system issuing the ARP packet.
-P target protocol address Default: 0.0.0.0
Identifies the ip address of the ARP packet's destination.
-h sender hardware address Default: 00:00:00:00:00:00
Identifies the hardware address of the system issuing the ARP pack
et.
-H target hardware address Default: 00:00:00:00:00:00
Identifies the hardware address of the ARP packet's destination. |
|