清楚arp

转载:http://wscyza.blog.51cto.com/898495/728717/
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
 
 
执行命令后,本机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
posted @ 2016-10-08 10:12  规格严格-功夫到家  阅读(393)  评论(0编辑  收藏  举报