歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> 關於Linux >> linux系統中如何清空所有arp緩存

linux系統中如何清空所有arp緩存

日期:2017/3/3 16:00:34   编辑:關於Linux

linux系統下清空arp 緩存(清空arp表)方法

命令紅色字體標記

系統初始arp環境

[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

執行清除所有arp 緩存命令

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

+ arp -d 192.168.1.175

+ arp -d 192.168.1.120

+ arp -d 192.168.1.51

本文URL地址:http://www.bianceng.cn/OS/Linux/201410/45508.htm

執行命令後,本機arp緩存信息

[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

Copyright © Linux教程網 All Rights Reserved