linux服务arp清理,Linux如何清理ARP缓存?
满意答案jxgzzgxml2019.11.02采纳率:46%等级:7已帮助:460人1、系统初始arp环境[root@esx ~]# arp -nAddressHWtypeHWaddressFlags Mask Iface192.168.1.175ether00:24:1D:97:B6:7FC...
满意答案
jxgzzgxml
2019.11.02
采纳率:46% 等级:7
已帮助:460人
1、系统初始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
2、执行清除所有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
3、执行命令后,本机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
00分享举报
更多推荐
所有评论(0)