Linux clears the ARP cache

Source: Internet
Author: User

The ARP cache is a list of IP addresses and MAC address relational caches. clears all ARP caches when arp-d [$ip] does not specify an IP address under Windows. Under Linux arp-d $ip must specify an IP address to perform this parameter for this command, all arp-d under Linux systems $ip command can only clear one IP address of the corresponding MAC address cache, of course, you can use the combination of command operation, which is one of the advantages of Linux it.

The combo command clears all ARP caches:

Arp-n|awk '/^[1-9]/{system ("arp-d")} '

In fact, Linux also has internal commands to clear all ARP caches, but not very good memory, with few people. The following command clears all ARP caches for the Eth0 interface.

IP neigh flush  dev eth0
The Linux purge ARP cache is to mark the list as (incomplete), and the next time the system cleans up garbage is cleared. Http://www.kuqin.com/linux/20110918/264989.html

Linux clears the ARP cache

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.