Freelancer

Showing posts with label static. Show all posts
Showing posts with label static. Show all posts

Wednesday, August 21, 2013

[Tip] Set static ARP

For Windows XP

1. Open Command Prompt
2. At the command prompt, type:
arp -s ip_address mac_address
Example:
arp -s 192.168.2.1 00-34-A3-7D-66-FF
3. In order to delete the static arp entry, type:
arp -d ip_address
Example:
arp -d 192.168.2.1

For Windows 7, Windows 8

1. Open Command Prompt
2. At the command prompt, type:
netsh -c "interface ipv4" set neighbors "connection_name" "ip_address" "mac_address"
Example:
netsh -c "interface ipv4" set neighbors "Wi-fi" "192.168.1.1" "00-A3-F7-C0-AE-32"
3. In order to delete the static arp entry, type:
netsh interface ipv4 delete neighbor "connection_name" "ip_address" "mac_address"
Example:
netsh interface ipv4 delete neighbor "Wi-fi" "192.168.1.1" "00-A3-F7-C0-AE-32"
When you restart the computer, if the arp entry is still displayed, go to this link for more information.

For Linux

1. Open Terminal
2. At the terminal prompt, type:
sudo arp -s ip_address mac_address
Example:
sudo arp -s 10.0.0.2 00:0C:29:C0:94:BF
3. In order to delete the static arp entry, type:
sudo arp -d ip_address
Example:
sudo arp -d 10.0.1.0