- Windows 10: Flush ARP Cache
- What is the ARP cache?
- How to clear the ARP Cache
- What is the ARP cache and how do I clear it?
- Как очистить ARP-кэш в Windows
- Описание
- Как очистить ARP-кэш в Windows (для всех адресов)
- Как очистить ARP-кэш в Windows (для определенного адреса)
- Как посмотреть текущую arp-таблицу
- Как добавить статическую запись в arp-таблицу
- Очистка ARP-кэша в Windows 7
- How to Clear The ARP Cache In Windows 7 and Windows Server 2008
- How To Clear The ARP Cache in Windows
Windows 10: Flush ARP Cache
Posted on February 25, 2020 by Mel Hawthorne Leave a Comment
When troubleshooting networking issues, a wide range of potential problems need to be investigated. One potential issue is that the ARP cache contains incorrect data. This scenario is extremely unlikely and is most often caused by a user editing their own ARP cache for some purpose. But no matter how the issue was caused, it still needs to be fixed. So, what is the ARP cache and how do you clear it?
What is the ARP cache?
ARP stands for Address Resolution Protocol, it resolves IP addresses to MAC addresses and is used exclusively for communications over a local network. The ARP cache stores routing information for local IP addresses, and then contains a default route to the gateway, for external resources.
The ARP cache can only be modified by a device on the local network. ARP messages are broadcast to the entire local network, any device that can see ARP messages will adjust its ARP cache to match the newest information. Therefore, changes to the cache on a device can be made by a user, or potentially a virus on any device on the network. The ARP cache cannot be directly modified by users outside of the local network.
Tip: Modifying the ARP cache manually should not be done lightly, as it can cause networking issues.
The most likely cause for the ARP cache needing to be cleared, is the user of the device trying to modify their own cache by hardcoding a value in an attempt to fix an issue and making it worse by accident.
How to clear the ARP Cache
The first step to clearing the ARP cache is to open an elevated command prompt, doing this gives it administrative rights which are necessary to perform the deletion. Open the windows start bar and type “CMD”, then right-click on command prompt and select “Run as administrator”.
Open an elevated command prompt.
In the elevated command prompt type the command “arp -a” to view the ARP cache, to wipe the ARP cache run the command “arp -d”. The -a flag instructs the program to display the ARP cache, the -d flag instructs it to delete the cache.
A before and after of the ARP cache being flushed.
What is the ARP cache and how do I clear it?
1. Have you made any change to the computer?
2. What is the exact error message or error code?
3. Which version of Windows operating system is installed in your computer?
ARP — Address Resolution Protocol:
Address Resolution Protocol (ARP) is a telecommunications protocol used for resolution of network layer addresses into link layer addresses, a critical function in multiple-access networks. ARP was defined by RFC 826 in 1982.[1] It is Internet Standard STD 37. It is also the name of the program for manipulating these addresses in most operating systems.
ARP has been implemented in many combinations of network and overlaying internetwork technologies, such as IPv4, Chaosnet, DECnet and Xerox PARC Universal Packet (PUP) using IEEE 802 standards, FDDI, X.25, Frame Relay and Asynchronous Transfer Mode (ATM), IPv4 over IEEE 802.3 and IEEE 802.11 being the most common cases.
In Internet Protocol Version 6 (IPv6) networks, the functionality of ARP is provided by the Neighbor Discovery Protocol (NDP).
Try the following steps and check if it helps.
If you are using Windows 7 refer — How to Clear the APR Cache in Windows 7:
a – Select the “Start” menu button and enter “command” in the search text field followed by pressing the “enter” key.
b – Input the following command at the MS DOS command prompt, “netsh interface ip delete arpcache” and press the “enter” key.
c –Windows 2007 will normally complete the task in under 1-2 minutes.
If you are using Windows Vista refer : How to Clear ARP Cache in Windows Vista
a – Login to your computer with an account that has administrator permissions.
b – Select the “Start” menu button enter the word “command” in the search text field followed by pressing the “enter” key.
c – Enter “netsh interface ip delete arpcache” at the command prompt and press the “enter” key.
d – Wait for approximately 30 seconds to 20 minutes based on the size of the ARP cache table and speed of your computer for the dynamic ARP cache to be cleared.
Как очистить ARP-кэш в Windows
Иногда бывает необходимо очистить ARP-кэш в ОС семейства Windows, в данной статье будут рассмотрены команды, которые позволяют это сделать в Windows 10, Windows 7, Windows XP, Windows Server и т.д.
Описание
Протокол определения адреса (ARP) играет решающую роль в TCP/IP соединении. Если вы заметили, что в работе сети появились такие проблемы, как например, ошибки при загрузке определенных сайтов или отсутствие пинга некоторых IP-адресов, то стоит попробовать очистить ARP-кэш. Командный компонент TCP/IP ARP дает возможность создавать, удалять и отображать IP-адрес при трансляции MAC-адреса.
Как очистить ARP-кэш в Windows (для всех адресов)
Нажмите Пуск – Выполнить – введите нижеприведенную команду и нажмите Ок
Динамическое обновление ARP кэша займет 2-20 минут в зависимости от операционной системы:
- Windows 2003 Server = 10 минут
- Windows 2000 professional/Server = 10 минут
- Windows XP = 2 минуты
Как очистить ARP-кэш в Windows (для определенного адреса)
Удалить кеш IP-адреса можно с помощью команды
Где 192.168.100.25 — Это IP адрес для которого мы удалем кеш из ARP.
Как посмотреть текущую arp-таблицу
Просмотр всех записей в arp-таблице, можно осуществить с помощью следующей команды:
Как добавить статическую запись в arp-таблицу
Добавление записи осуществляется с помощью следующей команды:
Для IP адреса 122.33.44.12 мы назначаем соответствие MAC адресу 00-aa-22-12-16-09.
Очистка ARP-кэша в Windows 7
Протокол разрешения адресов — важный компонент, необходимый для работы с IP-адресами в любой операционной системе. Он связывает адресацию Ethernet (IP-адреса) с аппаратной адресацией (MAC-адресами). Без этого протокола компьютер не удалось бы подключить к внешней сети, поскольку одна система адресации не могла бы взаимодействовать с другой.
ARP-кэш — это сборник записей ARP (преимущественно динамических), которые создаются при сопоставлении имени хоста с IP-адресом и IP-адреса с MAC-адресом, что необходимо для эффективного взаимодействия компьютера с этим IP.
Карта адресов, полученная в процессе сопоставления, сохраняется на компьютере в ARP-кэше и остается там до истечения срока ее действия. Как правило, никаких проблем это не создает, но в некоторых случаях поврежденная запись ARP может препятствовать нормальному подключению к Интернету и загрузке веб-страниц. В такой ситуации можно попытаться очистить ARP-кэш, чтобы решить проблему. Правда, тогда компьютеру придется создавать кэш заново, но это происходит довольно быстро.
Очистка ARP-кэша выполняется исключительно из командной строки, так что разомните пальчики и приготовьтесь печатать. Показав, как очистить ARP-кэш, я объясню, как им можно управлять с помощью определенных командных переключателей.
Шаг первый: вызов командной строки
Откройте меню «Пуск» (Start) и введите в строке поиска «cmd» (без кавычек), но [Enter] не нажимайте. Вместо этого нажмите на ссылке «cmd.exe» правой кнопкой мыши и выберите опцию «Запуск от имени администратора» (Run as Administrator, рис. A). Подтвердите выполнение операции в окне контроля учетных записей (UAC) и увидите окно командной строки.
Шаг второй: выполнение команды
Для начала выполните команду arp -a. Она выведет список всех хранящихся на компьютере записей ARP (рис. B). Естественно, -a — далеко не единственная доступная опция. Команда arp также поддерживает следующие переключатели:
• -d — удаление IP-адреса (например, arp -d 192.168.100.10);
• -d -a — удаление всех записей в таблице ARP;
• -s — добавление записи в таблицу ARP (команда arp -s АДРЕС MAC-АДРЕС, где АДРЕС — это адрес, который нужно добавить, а MAC-АДРЕС — MAC-адрес компьютера).
Чтобы полностью очистить кэш, выполните команду netsh interface ip delete arpcache. Она удалит весь ARP-кэш, и при следующем подключении к сети он начнет заполняться заново.
Как проверить, удалась ли очистка
Очистив ARP-кэш, обязательно проверьте, удалась ли операция, выполнив команду arp -a. Если кэш не был очищен, вполне вероятно, что в этом виноват баг Windows, который проявляется при включении службы «Маршрутизация и удаленный доступ» (Routing and Remote Services). Решить проблему очень легко:
1. Откройте меню «Пуск | Панель управления» (Start | Control Panel).
2. Выберите пункт «Администрирование» (Administrative Tools) в разделе «Система и безопасность» (System And Security).
3. Запустите средство «Управление компьютером» (Computer Management).
4. Разверните раздел «Службы и приложения» (Services and Applications) двойным щелчком.
5. Выделите раздел «Службы» (Services).
6. Найдите в списке пункт «Маршрутизация и удаленный доступ» и дважды щелкните на нем.
7. Выберите опцию «Отключена» (Disable) в выпадающем меню «Тип запуска» (Startup Type).
8. Остановите службу.
Теперь снова попытайтесь очистить ARP-кэш. На этот раз должно получиться.
ARP-кэш также можно использовать для диагностики проблем, связанных с сетевым подключением. В частности, стоит проверить, нет ли в списке недействительных записей ARP с MAC-адресом 00-00-00-00-00-00. Если такие записи имеются, их нужно удалить с помощью переключателя -d. Допустим, в кэше имеется запись вида:
Чтобы ее удалить, выполните команду arp -d 224.0.0.24 — и проблема будет решена.
Существует множество способов диагностики и устранения проблем, связанных с сетевыми подключениями. Очистка ARP-кэша — лишь один из таких способов, но прибегают к ней довольно редко. Тем не менее, в ситуации, когда все остальные методы не дают результата, очистка кэша может немало пригодиться.
How to Clear The ARP Cache In Windows 7 and Windows Server 2008
In Windows, the Address Resolution Protocol (ARP) is a critical part TCP/IP network communication. While using the Internet or even a local area network (LAN), you may have experienced issues with connections not being made, or loss of ping. Often this is because of a physical network problem; however, another cause often overlooked is the ARP cache.
From the command prompt, the ARP Command has the functionality to add, delete, or display MAC Address to IP translation.
How To Clear The ARP Cache in Windows
1. Click the Windows Start Menu Orb and Type cmd into the search box. Right-click cmd.exe and click Run as administrator
2. In the prompt that appears, type in the following command:
netsh interface ip delete arpcache
Other ARP commands:
arp -a | Display a list of ARP entries |
arp -d | Delete an IP address from the ARP table |
arp -s | Add a static IP to a MAC address in the ARP table |
Example: arp -s 231.32.54.315 00-FF-23-44-d7-11 |
Thoughts, questions? Drop a comment below! And you may want to subscribe to the groovyPost RSS feed for daily computer-related how-to, tips, and news.