How to empty all ARP caches in a Linux system

Source: Internet
Author: User
Tags linux

Empty ARP cache (empty ARP table) method under Linux system

Command Red font mark

System initial ARP Environment

[Root@esx ~]# Arp-n

Address Hwtype hwaddress Flags Mask iface

192.168.1.175 ether 00:24:1d:97:b6:7f C vswif0

192.168.1.120 ether 00:1f:c6:3a:dc:81 C vswif0

192.168.1.51 (incomplete) vswif0

Perform clear all ARP cache commands

[Root@esx ~]# Arp-n|awk '/^[1-9]/{print ' arp-d ' $} ' |sh-x

+ arp-d 192.168.1.175

+ arp-d 192.168.1.120

+ arp-d 192.168.1.51

This article URL address: http://www.bianceng.cn/OS/Linux/201410/45508.htm

Native ARP cache information after the command is executed

[Root@esx ~]# Arp-n

Address Hwtype hwaddress Flags Mask iface

192.168.1.175 (incomplete) vswif0

192.168.1.120 (incomplete) vswif0

192.168.1.51 (incomplete) vswif0

Related Article

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.