{"id":350,"title":"ARP\u534f\u8bae\u5de5\u4f5c\u539f\u7406","good":0,"bad":0,"hit":2835,"created_at":"2018-06-17 14:26:16","content":"
arp\u534f\u8bae\u80fd\u5b9e\u73b0\u4efb\u610f\u7f51\u7edc\u5c42\u5730\u5740\u5230\u4efb\u610f\u7269\u7406\u5730\u5740\u7684\u8f6c\u6362\uff0c\u8fd9\u91cc\u4ee5ip\u5730\u5740\u5230mac\u5730\u5740\u7684\u8f6c\u6362\u4e3a\u4f8b\uff1a<\/p>
\u4e3b\u673a\u5411\u81ea\u5df1\u6240\u5728\u7684\u7f51\u683c\u5e7f\u64ad\u4e00\u4e2aarp\u8bf7\u6c42\uff0c\u8be5\u8bf7\u6c42\u5305\u542b\u76ee\u6807\u673a\u5668\u7684\u7f51\u7edc\u5730\u5740\uff0c\u6b64\u7f51\u7edc\u4e0a\u7684\u5176\u5b83\u673a\u5668\u90fd\u5c06\u6536\u5230\u8fd9\u4e2a\u8bf7\u6c42\uff0c\u4f46\u53ea\u6709\u88ab\u8bf7\u6c42\u7684\u76ee\u6807\u673a\u5668\u4f1a\u56de\u5e94\u4e00\u4e2aarp\u5e94\u7b54\uff0c\u5176\u4e2d\u5305\u542b\u81ea\u5df1\u7684\u7269\u7406\u5730\u5740\u3002 <\/p>
\u901a\u5e38\uff0carp\u7ef4\u62a4\u4e00\u4e2a\u9ad8\u901f\u7f13\u5b58\uff0c\u5176\u4e2d\u5305\u542b\u7ecf\u5e38\u8bbf\u95ee\u6216\u6700\u8fd1\u8bbf\u95ee\u7684\u673a\u5668 \u7684ip\u5730\u5740\u5230\u7269\u7406\u5730\u5740\u7684\u6620\u5c04\u3002\u8fd9\u6837\u5c31\u907f\u514d\u4e86\u91cd\u590d\u7684arp\u8bf7\u6c42\uff0c\u63d0\u9ad8\u53d1\u9001\u6570\u636e\u5305\u7684\u901f\u5ea6\u3002 <\/p>
linux\u4e0b\u53ef\u7528arp\u547d\u4ee4\u6765\u67e5\u770b\u548c\u4fee\u6539arp\u9ad8\u901f\u7f13\u5b58\u3002 <\/p>
[root@localhost ~]# arp<\/p>
Address HWtype HWaddress Flags Mask Iface<\/p>
gateway ether 1c:60:de:ad:95:fa C enp0s3<\/p>
192.168.1.103 ether 30:b4:9e:84:1e:14 C enp0s3<\/p>
[root@localhost ~]# arp -a<\/p>
gateway (192.168.1.1) at 1c:60:de:ad:95:fa [ether] on enp0s3<\/p>
? (192.168.1.103) at 30:b4:9e:84:1e:14 [ether] on enp0s3<\/p>
[root@localhost ~]# <\/p>
<\/p>"}