Use the netsh command in win7 to effectively prevent ARP attacks

Source: Internet
Author: User

The netsh command under win7 can effectively prevent ARP attacks in the LAN.
The following is how to use it:
1. Right-click the cmd. EXE command in windows \ system32 on Windows 7 7 and run it as an administrator;
Let's take a look at the ARP table status.
ARP-
Interface: 192.168.1.1 00-19-e0-e0-76-ca dynamic
192.168.1.100 00-1f-c6-31-8a-4b dynamic
192.168.1.255 FF-FF static
224.0.0.22 01-00-5e-00-00-16 static
224.0.0.252 01-00-5e-00-00-fc static
239.00000000250 01-00-5e-7f-ff-fa static
Extends 00000000255 FF-FF static
Here we can see that the gateway and local ARP tables are dynamic, and my goal is to make them static;
2. Enter netsh-c "inte *** ce IPv4"
The command prompt will change to "netsh inte *** ce IPv4>"
Enter show neighbors to view the attributes of your neighbor cache items.
I have made windows 6956 Chinese version, so the interface name is "Local Connection"
3. After knowing the Interface Name, enter:
Set neighbors "Local Connection" "192.168.1.1" "00-19-e0-e0-76-ca"
Set neighbors "Local Connection" "192.168.1.100" "00-1f-c6-31-8a-4b"
The static ARP table information is set for the local connection, and the "local connection" is the name of the interface you just viewed with show neighbors, "192.168.1.1" "00-19-e0-e0-76-ca" is the gateway IP address and the MAC address of the gateway.
The following are local IP addresses and MAC addresses.
4. Finally exit.
Input ARP-a to check if it is static.
Interface: 192.168.1.1 00-19-e0-e0-76-ca static
192.168.1.100 00-1f-c6-31-8a-4b static
192.168.1.255 FF-FF static
224.0.0.22 01-00-5e-00-00-16 static
224.0.0.252 01-00-5e-00-00-fc static
239.00000000250 01-00-5e-7f-ff-fa static
Extends 00000000255 FF-FF static
The static ARP table set by the netsh command will not be lost after it is restarted, which is the difference between it and the ARP command.
What are you waiting for? Try it now.
To effectively prevent ARP, you must set the statement route table in the router so as to prevent ARP most effectively.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.