linux查看arp信息

个人学习笔记,谢绝转载!!!

原文:https://www.cnblogs.com/wshenjin/p/14202440.html


查看arp缓存

[root@ ~]$ arp -n 
Address                  HWtype  HWaddress           Flags Mask            Iface
169.254.128.17           ether   fe:ee:33:e2:f0:a2   C                     eth0
169.254.128.14           ether   fe:ee:33:e2:f0:a2   C                     eth0
172.25.0.1               ether   fe:ee:33:e2:f0:a2   C                     eth0

删除arp条目

[root@ ~]$ arp -d 169.254.128.17 

手动添加arp条目

[root@ ~]$ arp -s 169.254.128.17 fe:ee:33:e2:f0:a2
posted @ 2020-12-28 16:55  wshenJin  阅读(5194)  评论(0编辑  收藏  举报