arp命令使用详解(The ARP command uses detail)
The ARP command uses the detailed ARP command using detail (1)
Displays and modifies items in the cache of the address resolution protocol (ARP) cache. The ARP cache contains one or more tables that are used to store IP addresses and their parsed Ethernet or token ring physical addresses. Each Ethernet or token ring network adapter installed on the computer has its own separate table. If it is used without arguments, the ARP command displays help information.
grammar
Arp[-a, [InetAddr], [-N, IfaceAddr]], [-g, [-N, IfaceAddr]], [InetAddr], [-d, InetAddr, [IfaceAddr]],, [-s, InetAddr, EtherAddr, [IfaceAddr]]
parameter
-a[InetAddr] [-N IfaceAddr]
Displays the current ARP cache table for all interfaces. To display the ARP cache entries for a particular IP address, use the ARP -a with the InetAddr parameter, where the InetAddr stands for the IP address. If
no InetAddr is specified, the first applicable interface is used. To display the ARP cache table for a specific interface, use the -N IfaceAddr parameter with the -a parameter, where the IfaceAddr represents the IP address assigned to the interface. The -N parameter is case sensitive.
-g[InetAddr] [-N IfaceAddr]
Same as -a.
-d InetAddr [IfaceAddr]
Removes the specified IP address entry, where the InetAddr stands for the IP address. For the specified interface, to delete an item in the table, use the IfaceAddr parameter, where the IfaceAddr represents the IP address assigned to the interface. To delete all items, use the asterisk () wildcard instead of InetAddr.
-s InetAddr EtherAddr [IfaceAddr]
Add a static item that can parse the IP address InetAddr into the physical address EtherAddr to the ARP cache. To add a static ARP cache entry to a table of the specified interface, use the IfaceAddr parameter, where the IfaceAddr represents the IP address assigned to the interface.
Displays help at the command prompt.
Notes
delete inThe IP addresses of InetAddr and IfaceAddr are represented in decimal decimal notation.
The physical address of EtherAddr consists of six bytes represented by sixteen decimal notation and separated by a hyphen (e.g., 00-AA-00-4F-2A-9C).
ARP command
The ARP cache of the processing system clears the address mappings in the cache and creates new address mappings;
Syntax: ARP, [-v][-n][-H, type][-i, if], -a, [hostname]
ARP, [-v][-i, if], -d, hostname, [pub]
ARP, [-v][-H, type][-i, if], -s, hostname, hw_addr, [temp]
ARP, [-v][-H, type][-i, if], -s, hostname, hw_addr, [netmask, pub, nm]
ARP, [-v][-H, type][-i, if], -Ds, hostname, IFA, [netmask, pub, nm]
ARP, [-v][-n][-D][-H, type][-i, if], -f, [filename]
The options for the command have the following meanings:
-v displays detailed information;
-n is displayed in digital address form;
-i If selection interface;
Check the address of the type type when setting -H and querying the ARP cache. Type;
-a [hostname] displays all the entries for the specified hostname;
The ARP command uses detail (2)
-d hostname deletes all the entries for the specified hostname;
-D uses the IFA hardware address interface;
-
s hostname hw_addr manually joins the address mapping of hostname;
-f filename reads the hostname and hardware address information from the specified file
-s hostname hw_addr manually joins the address mapping of hostname;
Bidirectional binding is used to resolve and prevent ARP spoofing.
1. Bind the IP and MAC addresses of the security gateway on the PC:
1) first, obtain the MAC address of the intranet of the security gateway (for example, the MAC address of the HiPER gateway address 192.168.16.254 is 0022aa0022aa).
2) write a batch file, rarp.bat, which reads as follows:
@echo off
ARP -d
ARP -s 192.168.16.254 00-22-aa-00-22-aa
Change the gateway, IP address, and MAC address in the file to the actual gateway IP address and MAC address.
The batch processing software onto the windows, start a program to start ".
3) if it is Internet cafes, you can use the charging software server program (pubwin or Vientiane can) send batch file rarp.bat to all client's startup directory.
The default startup directory for Windows2000 is the CDocuments and SettingsAll Users start menu program".
We, are, also, finding, something, a, beautiful, It, is, easy, to, know, u, are, happy, so,, I, am, happy
The ARP binding feature uses help
ARP protocol is a network communication protocol in data link layer. It completes the conversion function of IP address to physical address (i.e. MAC address). The ARP virus is through forged IP address and MAC address to achieve ARP spoofing, can lead to the packet to the correct MAC address, will produce a large number of ARP traffic in the network congestion, which causes the netwo
rk not normal communication.

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。