{"id":137991,"date":"2022-07-26T23:02:08","date_gmt":"2022-07-26T15:02:08","guid":{"rendered":"http:\/\/www.idc.net\/help\/137991\/"},"modified":"2022-07-26T23:02:08","modified_gmt":"2022-07-26T15:02:08","slug":"%e7%ae%80%e5%8d%95%e6%98%93%e6%87%82%ef%bc%9alinux%e5%a6%82%e4%bd%95%e9%87%8d%e7%bd%aearp%e8%a1%a8-linux-%e9%87%8d%e7%bd%aearp","status":"publish","type":"post","link":"https:\/\/idc.net\/help\/137991\/","title":{"rendered":"\u7b80\u5355\u6613\u61c2\uff1aLinux\u5982\u4f55\u91cd\u7f6eARP\u8868 (linux \u91cd\u7f6earp)"},"content":{"rendered":"<p>Linux\u5982\u4f55\u91cd\u7f6eARP\u8868\uff1a\u7b80\u5355\u6613\u61c2\u7684\u6307\u5357<\/p>\n<p>ARP\uff08Address Resolution Protocol\uff09\u8868\u662f\u4e00\u4e2a\u7528\u4e8e\u5b58\u50a8\u672c\u5730\u7f51\u7edc\u8282\u70b9\u4e0e\u5176IP\u5730\u5740\u4e4b\u95f4\u6620\u5c04\u5173\u7cfb\u7684\u7f13\u5b58\u3002\u5728Linux\u7cfb\u7edf\u4e2d\uff0cARP\u8868\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u884c\u5de5\u5177\u6765\u67e5\u770b\u6216\u91cd\u7f6e\u3002\u91cd\u7f6eARP\u8868\u662f\u4e00\u4e2a\u5e38\u89c1\u7684\u7cfb\u7edf\u8fd0\u7ef4\u64cd\u4f5c\uff0c\u4e0b\u9762\u4ecb\u7ecd\u51e0\u79cd\u7b80\u5355\u6613\u61c2\u7684\u65b9\u6cd5\u3002<\/p>\n<p>1. \u4f7f\u7528arp\u547d\u4ee4<\/p>\n<p>arp\u662f\u4e00\u4e2a\u7528\u4e8e\u7ba1\u7406\u7cfb\u7edfARP\u8868\u7684\u547d\u4ee4\u884c\u5de5\u5177\u3002\u901a\u8fc7\u4f7f\u7528arp\u547d\u4ee4\u91cd\u7f6eARP\u8868\uff0c\u60a8\u53ef\u4ee5\u8f7b\u677e\u6e05\u9664\u7f13\u5b58\u4e2d\u6240\u6709\u5b58\u50a8\u7684ARP\u6620\u5c04\u3002<\/p>\n<p>\u6b65\u9aa4\uff1a<\/p>\n<p>\u6253\u5f00\u7ec8\u7aef\u7a97\u53e3\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<p>sudo arp -a<\/p>\n<p>sudo arp -d *<\/p>\n<p>\u4e4b\u4e00\u884c\u547d\u4ee4\u7528\u4e8e\u67e5\u770b\u5f53\u524dARP\u8868\u7684\u5185\u5bb9\u3002\u82e5\u8981\u5220\u9664ARP\u8868\u4e2d\u7684\u6240\u6709\u9879\uff0c\u8bf7\u4f7f\u7528\u7b2c\u4e8c\u884c\u547d\u4ee4\u3002\u6b64\u547d\u4ee4\u4f1a\u6e05\u9664ARP\u8868\u4e2d\u6240\u6709\u6620\u5c04\u8bb0\u5f55\uff0c\u5f3a\u5236\u7cfb\u7edf\u91cd\u65b0\u83b7\u53d6\u7f51\u7edc\u4fe1\u606f\uff0c\u4ece\u800c\u91cd\u5efaARP\u8868\u3002<\/p>\n<p>2. \u4f7f\u7528ip\u547d\u4ee4<\/p>\n<p>ip\u547d\u4ee4\u662f\u4e00\u4e2aLinux\u7cfb\u7edf\u4e0b\u7684\u7f51\u7edc\u7ba1\u7406\u5de5\u5177\uff0c\u53ef\u4ee5\u7528\u4e8e\u914d\u7f6e\u548c\u7ba1\u7406\u7f51\u7edc\u63a5\u53e3\u3001\u8def\u7531\u548c\u5730\u5740\u7b49\u3002\u6b64\u547d\u4ee4\u4e5f\u53ef\u4ee5\u7528\u4e8e\u91cd\u7f6eARP\u8868\u3002<\/p>\n<p>\u6b65\u9aa4\uff1a<\/p>\n<p>\u6253\u5f00\u7ec8\u7aef\u7a97\u53e3\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<p>sudo ip -s -s neigh flush all<\/p>\n<p>\u8be5\u547d\u4ee4\u4f1a\u6e05\u9664\u7cfb\u7edf\u4e2d\u6240\u6709\u7684ARP\u6620\u5c04\u3002\u5176\u4e2d\uff0c-s\u53c2\u6570\u7528\u4e8e\u8f93\u51fa\u8be6\u7ec6\u4fe1\u606f\uff0c-s\u4e24\u6b21\u4f7f\u7528\u8868\u793a\u8f93\u51fa\u66f4\u8be6\u7ec6\u7684\u4fe1\u606f\uff0cneigh\u5219\u4ee3\u8868\u90bb\u5c45\u6761\u76ee\uff0cflush all\u8868\u793a\u5220\u9664\u6240\u6709\u7684\u7f13\u5b58\u6761\u76ee\u3002<\/p>\n<p>3. \u4f7f\u7528\u7cfb\u7edf\u91cd\u542f<\/p>\n<p>\u5982\u679c\u4e0a\u8ff0\u4e24\u79cd\u65b9\u6cd5\u65e0\u6cd5\u6e05\u9664\u95ee\u9898\uff0c\u53ef\u4ee5\u8003\u8651\u4f7f\u7528\u7cfb\u7edf\u91cd\u542f\u7684\u65b9\u6cd5\u3002\u91cd\u542f\u7cfb\u7edf\u5c06\u5f3a\u5236\u6e05\u9664\u6240\u6709\u7f13\u5b58\u7684ARP\u6620\u5c04\uff0c\u7136\u540e\u4ece\u5934\u5f00\u59cb\u751f\u6210ARP\u8868\u3002<\/p>\n<p>\u6b65\u9aa4\uff1a<\/p>\n<p>\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u91cd\u542f\u7cfb\u7edf\uff1a<\/p>\n<p>sudo reboot<\/p>\n<p>\u518d\u6b21\u542f\u52a8\u7cfb\u7edf\u65f6\uff0cARP\u8868\u5e94\u8be5\u5df2\u7ecf\u88ab\u91cd\u7f6e\u3002\u5c3d\u7ba1\u8fd9\u79cd\u65b9\u6cd5\u53ef\u884c\uff0c\u4f46\u91cd\u542f\u7cfb\u7edf\u5e76\u4e0d\u603b\u662f\u66f4\u597d\u7684\u9009\u62e9\uff0c\u56e0\u4e3a\u5b83\u5c06\u5bfc\u81f4\u7cfb\u7edf\u4e2d\u6240\u6709\u5e94\u7528\u7a0b\u5e8f\u548c\u670d\u52a1\u7684\u505c\u6b62\uff0c\u5e76\u53ef\u80fd\u5bfc\u81f4\u6570\u636e\u4e22\u5931\u3002<\/p>\n<p>\u7ed3\u8bba<\/p>\n<p>\u5728Linux\u7cfb\u7edf\u4e2d\uff0c\u91cd\u7f6eARP\u8868\u662f\u6e05\u9664\u7f13\u5b58\u4e2d\u6240\u6709\u5b58\u50a8\u7684ARP\u6620\u5c04\u7684\u597d\u65b9\u6cd5\u3002\u4ee5\u4e0a\u4ecb\u7ecd\u4e86\u4e09\u79cd\u7b80\u5355\u6613\u61c2\u7684\u65b9\u6cd5\uff0c\u60a8\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u60c5\u51b5\u9009\u62e9\u9002\u5f53\u7684\u65b9\u6cd5\uff0c\u63d0\u9ad8\u7cfb\u7edf\u7684\u8fd0\u884c\u6548\u7387\u3002\u9274\u4e8e\u7cfb\u7edf\u91cd\u542f\u53ef\u80fd\u4f1a\u9020\u6210\u4e0d\u5fc5\u8981\u7684\u9ebb\u70e6\uff0c\u66f4\u597d\u5728\u5176\u4ed6\u65b9\u6cd5\u90fd\u4e0d\u8d77\u4f5c\u7528\u65f6\u518d\u8003\u8651\u4f7f\u7528\u3002\u65e0\u8bba\u60a8\u9009\u62e9\u54ea\u79cd\u65b9\u6cd5\uff0c\u8bf7\u5148\u5907\u4efd\u6570\u636e\u4ee5\u4fdd\u62a4\u81ea\u5df1\u7684\u91cd\u8981\u4fe1\u606f\u3002<\/p>\n<p><strong>\u76f8\u5173\u95ee\u9898\u62d3\u5c55\u9605\u8bfb\uff1a<\/strong><\/p>\n<ul>\n<li>linux\u4e0b\u9632arp<\/li>\n<li>\u5982\u4f55\u5728Linux\u4e0b\u7981\u7528ARP\u534f\u8bae<\/li>\n<li>Linux\u5185\u6838\u53c2\u6570\u4e4barp_ignore\u548carp_announce<\/li>\n<\/ul>\n<h3>linux\u4e0b\u9632arp<\/h3>\n<p>\u65b9\u6cd5\u4e00\uff1a<\/p>\n<p>\u9996\u5148\u5b89\u88c5arptables:<\/p>\n<p>sudo apt-get install arptables<\/p>\n<p>\u7136\u540e\u5b9a\u4e49\u89c4\u5219\uff1a<\/p>\n<p>sudo arptables -A INPUT \u2013src-mac ! \u7f51\u5173\u7269\u7406\u5730\u5740 -j DROP<\/p>\n<p>sudo arptables -A INPUT -s ! \u7f51\u4ed4\u5982\u5173IP -j DROP<\/p>\n<p>sudo arptables -A OUTPUT \u2013destination-mac ff:ff:ff:ff:ff:ff -j ACCEPT<\/p>\n<p>\u4e0d\u8fc7\u8fd9\u6837\u5c31\u6709\u4e00\u70b9\u4e0d\u597d\uff0c\u5c40\u57df\u7f51\u5185\u7684\u8d44\u6e90\u4e0d\u80fd\u7528\uff01<\/p>\n<p>sudo arptables -F<\/p>\n<p>\u5f53\u7136\u6211\u4eec\u53ef\u4ee5\u505a\u4e2a\u811a\u672c\uff0c\u6bcf\u6b21\u5f00\u673a\u7684\u65f6\u5019\u81ea\u52a8\u8fd0\u884c\uff01~sudo gedit \/etc\/init.d\/arptables\uff0c\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n<p>#! \/bin\/sh<\/p>\n<p>PATH=\/usr\/local\/in:\/usr\/local\/bin:\/in:\/bin:\/usr\/in:\/usr\/bin<\/p>\n<p>arptables -A INPUT \u2013src-mac ! \u7f51\u5173\u7269\u7406\u5730\u5740 -j DROP<\/p>\n<p>arptables -A INPUT -s ! \u7f51\u5173IP -j DROP<\/p>\n<p>arptables -A OUTPUT \u2013destination-mac ff:ff:ff:ff:ff:ff -j ACCEPT<\/p>\n<p>\u7136\u540e\u7ed9arptables\u52a0\u4e2aexecution\u7684\u5c5e\u6027\uff0c<\/p>\n<p>sudo chmod 755 \/etc\/init.d\/arptables<\/p>\n<p>\u518d\u628aarptables\u8bbe\u7f6e\u81ea\u52a8\u8fd0\u884c\uff0c<\/p>\n<p>sudo update-rc.d arptables start 99 S .<\/p>\n<p>\u7528sysv-rc-conf\u76f4\u63a5\u8bbe\u7f6e <\/p>\n<p>\u65b9\u6cd5\u4e8c\uff1a<\/p>\n<p>1\u3001\u5148\u4f7f\u7528arp\u548c arp -a\u67e5\u770b\u4e00\u4e0b\u5f53\u524dARP\u7f13\u5b58\u5217\u8868<\/p>\n<p># arp<\/p>\n<\/p>\n<p>Address HWtype HWaddressFlags MaskIface<\/p>\n<p>192.168.1. ether 00:04:61:AE:11:2B Ceth0<\/p>\n<p>192.168.1. ether 00:13:20:E9:11:04 Ceth0<\/p>\n<p>192.168.1. ether 00:02:B3:38:08:62 Ceth0<\/p>\n<p>\u8bf4\u660e\uff1a<\/p>\n<p>Address\uff1a\u4e3b\u673a\u7684IP\u5730\u5740<\/p>\n<p>Hwtype\uff1a\u4e3b\u673a\u7684\u786c\u4ef6\u7c7b\u578b<\/p>\n<p>Hwaddress\uff1a\u4e3b\u673a\u7684\u786c\u4ef6\u5730\u5740<\/p>\n<p>Flags Mask\uff1a\u8bb0\u5f55\u6807\u5fd7\uff0c\u201dC\u201d\u8868\u793aarp\u9ad8\u664c\u5146\u901f\u7f13\u5b58\u4e2d\u7684\u6761\u76ee\uff0c\u201dM\u201d\u8868\u793a\u9759\u6001\u7684arp\u6761\u76ee\u3002<\/p>\n<p># arp -a<\/p>\n<\/p>\n<p>? (192.168.1.234) at 00:04:61:AE:11:2B on eth0<\/p>\n<\/p>\n<p>? (192.168.1.1) at 00:16:76:22:23:86 on eth0<\/p>\n<\/p>\n<p>2\u3001\u65b0\u5efa\u4e00\u4e2a\u9759\u6001\u7684mac\u2013&gt;ip\u5bf9\u5e94\u8868\u6587\u4ef6\uff1aip-mac\uff0c\u5c06\u8981\u7ed1\u5b9a\u7684IP\u548cMAC \u5730\u4e0b\u5199\u5165\u6b64\u6587\u4ef6\uff0c\u683c\u5f0f\u4e3a ip mac\u3002<\/p>\n<p># echo \u2018192.168.1.1 00:02:B3:38:08:62 \u2018 &gt; \/etc\/ip-mac<\/p>\n<\/p>\n<p># more \/etc\/ip-mac<\/p>\n<\/p>\n<p>192.168.1.1 00:02:B3:38:08:62<\/p>\n<p>3\u3001\u8bbe\u7f6e\u5f00\u673a\u81ea\u52a8\u7ed1\u5b9a<\/p>\n<p># echo \u2018arp -f \/etc\/ip-mac \u2018 &gt;&gt; \/etc\/rc.d\/rc.local<\/p>\n<\/p>\n<p>4\u3001\u624b\u52a8\u6267\u884c\u5ff5\u8c28\u542f\u4e00\u4e0b\u7ed1\u5b9a<\/p>\n<p># arp -f \/etc\/ip-mac<\/p>\n<\/p>\n<p>5\u3001\u786e\u8ba4\u7ed1\u5b9a\u662f\u5426\u6210\u529f<\/p>\n<p># arp<\/p>\n<\/p>\n<p>Address HWtype HWaddressFlags MaskIface<\/p>\n<p>192.168.0. ether 00:02:B3:A7:85:48 Ceth0<\/p>\n<p>192.168.1. ether 00:04:61:AE:11:2B Ceth0<\/p>\n<p>192.168.1. ether 00:02:B3:38:08:62 CM eth0<\/p>\n<p># arp -a<\/p>\n<\/p>\n<p>? (192.168.0.205) at 00:02:B3:A7:85:48 on eth0<\/p>\n<\/p>\n<p>? (192.168.1.234) at 00:04:61:AE:11:2B on eth0<\/p>\n<\/p>\n<p>? (192.168.1.1) at 00:02:B3:38:08:62 PERM on eth0<\/p>\n<\/p>\n<h3>\u5982\u4f55\u5728Linux\u4e0b\u7981\u7528ARP\u534f\u8bae<\/h3>\n<p>ARP\u5173\u95ed\u65b9\u6cd5\u5982\u4e0b\uff1a<\/p>\n<p>\u540d\u8bcd\u89e3\u91ca<\/p>\n<p>ARP\uff08\u5730\u5740\u89e3\u6790\u534f\u8bae\uff09<\/p>\n<p>\u5730\u5740\u89e3\u6790\u534f\u8bae\uff0c\u5373ARP\uff08Address Resolution Protocol\uff09\uff0c\u662f\u6839\u636eIP\u5730\u5740\u83b7\u53d6\u7269\u7406\u5730\u5740\u7684\u4e00\u4e2aTCP\/IP\u534f\u8bae\u3002\u4e3b\u673a\u53d1\u9001\u4fe1\u606f\u65f6\u5c06\u5305\u542b\u76ee\u6807IP\u5730\u5740\u7684ARP\u8bf7\u6c42\u5e7f\u64ad\u5230\u7f51\u7edc\u4e0a\u7684\u6240\u6709\u4e3b\u673a\uff0c\u5e76\u63a5\u6536\u8fd4\u56de\u6d88\u606f\uff0c\u4ee5\u6b64\u786e\u5b9a\u76ee\u6807\u7684\u7269\u7406\u5730\u5740\uff1b\u6536\u5230\u8fd4\u56de\u6d88\u606f\u540e\u5c06\u8be5IP\u5730\u5740\u548c\u7269\u7406\u5730\u5740\u5b58\u5165\u672c\u673aARP\u7f13\u5b58\u4e2d\u5e76\u4fdd\u7559\u4e00\u5b9a\u65f6\u95f4\uff0c\u4e0b\u6b21\u8bf7\u6c42\u65f6\u76f4\u63a5\u67e5\u8be2ARP\u7f13\u5b58\u4ee5\u8282\u7ea6\u8d44\u6e90\u3002\u5730\u5740\u89e3\u6790\u534f\u8bae\u662f\u5efa\u7acb\u5728\u7f51\u7edc\u4e2d\u5404\u4e2a\u6838\u952e\u4e8f\u4e3b\u673a\u4e92\u76f8\u4fe1\u4efb\u7684\u57fa\u7840\u4e0a\u7684\uff0c\u7f51\u7edc\u4e0a\u7684\u4e3b\u673a\u53ef\u4ee5\u81ea\u4e3b\u53d1\u9001ARP\u5e94\u7b54\u6d88\u606f\uff0c\u5176\u4ed6\u4e3b\u673a\u6536\u5230\u5e94\u7b54\u62a5\u6587\u65f6\u4e0d\u4f1a\u68c0\u6d4b\u8be5\u62a5\u6587\u7684\u771f\u5b9e\u6027\u5c31\u4f1a\u5c06\u5176\u8bb0\u5165\u672c\u673aARP\u7f13\u5b58\uff1b\u7531\u6b64\u653b\u51fb\u8005\u5c31\u53ef\u4ee5\u5411\u67d0\u4e00\u4e3b\u673a\u53d1\u9001\u4f2aARP\u5e94\u7b54\u62a5\u6587\uff0c\u4f7f\u5176\u53d1\u9001\u7684\u4fe1\u606f\u6539\u795e\u65e0\u6cd5\u5230\u8fbe\u9884\u671f\u7684\u4e3b\u673a\u6216\u5230\u8fbe\u9519\u8bef\u7684\u4e3b\u673a\uff0c\u8fd9\u5c31\u6784\u6210\u4e86\u4e00\u4e2aARP\u6b3a\u9a97\u3002ARP\u547d\u4ee4\u53ef\u7528\u4e8e\u67e5\u8be2\u672c\u673aARP\u7f13\u5b58\u4e2dIP\u5730\u5740\u548cMAC\u5730\u5740\u7684\u5bf9\u5e94\u5173\u7cfb\u3001\u6dfb\u52a0\u6216\u5220\u9664\u9759\u6001\u5bf9\u5e94\u5173\u7cfb\u7b49\u3002\u76f8\u5173\u534f\u8bae\u6709RARP\u3001\u4ee3\u7406ARP\u3002NDP\u7528\u4e8e\u5728IPv6\u4e2d\u4ee3\u66ff\u5730\u5740\u89e3\u6790\u534f\u8bae\u3002<\/p>\n<p>\u65b9\u6cd5\u4e00\uff1a\u7981\u7528\u7f51\u5361\u7684ARP\u534f\u8bae<\/p>\n<p>\u4f7f\u7528 ifconfig eth0 -arp<\/p>\n<p>\u65b9\u6cd5\u4e8c\uff1a\u5173\u95ed\u5185\u6838\u7684ARP\u529f\u80fd<\/p>\n<p>echo 1 &gt; \/proc\/sys\/net\/ipv4\/conf\/eth0\/arp_ignore<\/p>\n<p>echo 2 &gt; \/proc\/sys\/net\/ipv4\/conf\/eth0\/arp_announce<\/p>\n<p>\u65b9\u6cd5\u4e09\uff1a\u5b89\u88c5\u8f6f\u4ef6<\/p>\n<p>\u5b89\u88c5arptables\uff08\u7c7b\u4f3ciptables\uff09\uff0cARP\u534f\u8bae\u8fd8\u662f\u542f\u52a8\uff0c\u4f46\u4eae\u7eb3\u662farptables drop\u6240\u6709\u8fdb\u5165\u548c\u51fa\u53bb\u7684\u5305<\/p>\n<p>arptables -A INPUT -j DROP<\/p>\n<p>arptables -A OUTPUT -j DROP<\/p>\n<p>arp\u6b3a\u9a97\u7684\u539f\u7406\u4e0d\u591a\u8ff0\uff0c\u57fa\u672c\u5c31\u662f\u5229\u7528\u53d1 \u9001\u5047\u7684\u6e38\u950b\u6e17arp\u6570\u636e\u5305\uff0c\u5192\u5145\u7f51\u5173\u3002\u4e00\u822c\u57fa\u6a21\u5728\u7f51\u4e0a\u901a\u8baf\u7684\u65f6\u5019\u7f51\u5173\u7684IP\u548cMAC\u7684\u7ed1\u5b9a\u662f\u653e\u5728arp \u7f13\u5b58\u91cc\u9762\u7684\uff0c\u5047\u7684arp\u5305\u5c31\u4f1a\u5237\u65b0\u8fd9\u4e2a\u7f13\u5b58\uff0c\u5bfc\u81f4\u672c\u8be5\u53d1\u9001\u5230\u7f51\u5173\u7684\u6570\u636e\u5305\u53d1\u5230\u4e86\u6b3a\u9a97\u795e\u810a \u8005\u90a3\u91cc\u3002\u89e3\u51b3\u7684\u529e\u6cd5\u5c31\u662f\u9759\u6001arp\u3002<\/p>\n<h3>Linux\u5185\u6838\u53c2\u6570\u4e4barp_ignore\u548carp_announce<\/h3>\n<p>arp_ignore\u548carp_announce\u53c2\u6570\u90fd\u548cARP\u534f\u8bae\u76f8\u5173\uff0c\u4e3b\u8981\u7528\u4e8e\u63a7\u5236\u7cfb\u7edf\u8fd4\u56dearp\u54cd\u5e94\u548c\u53d1\u9001arp\u8bf7\u6c42\u65f6\u7684\u52a8\u4f5c\u3002\u8fd9\u4e24\u4e2a\u53c2\u4e4e\u62c6\u6570\u5f88\u91cd\u8981\uff0c\u7279\u522b\u662f\u5728LVS\u7684DR\u573a\u666f\u4e0b\uff0c\u5b83\u4eec\u7684\u914d\u7f6e\u76f4\u63a5\u5f71\u54cd\u5230DR\u8f6c\u53d1\u662f\u5426\u6b63\u5e38\u3002<\/p>\n<p> \u9996\u5148\u770b\u4e00\u4e0bLinux\u5185\u6838\u6587\u6863\u4e2d\u5bf9\u4e8e\u5b83\u4eec\u7684\u63cf\u8ff0\uff1a<\/p>\n<p> arp_ignore \u2013 INTEGER<\/p>\n<p> Define different modes for sending replies in response to<\/p>\n<p> received ARP requests that resolve local target IP addresses:<\/p>\n<p> 0 \u2013 (default): reply for any local target IP address, configured<\/p>\n<p> on any interface<\/p>\n<p> 1 \u2013 reply only if the target IP address is local address<\/p>\n<p> configured on the incoming interface<\/p>\n<p> 2 \u2013 reply only if the target IP address is local address<\/p>\n<p> configured on the incoming interface and both with the<\/p>\n<p> sender\u2019s IP address are part from same subnet on this interface<\/p>\n<p> 3 \u2013 do not reply for local addresses configured with scope host,<\/p>\n<p> only resolutions for global and link addresses are replied<\/p>\n<p>reserved<\/p>\n<p> 8 \u2013 do not reply for all local addresses<\/p>\n<p> The max value from conf\/{all,interface}\/arp_ignore is used<\/p>\n<p> when ARP request is received on the {interface}<\/p>\n<p> arp_ignore\u53c2\u6570\u7684\u4f5c\u7528\u662f\u63a7\u5236\u7cfb\u7edf\u5728\u6536\u5230\u5916\u90e8\u7684arp\u8bf7\u6c42\u65f6\uff0c\u662f\u5426\u8981\u8fd4\u56dearp\u54cd\u5e94\u3002<\/p>\n<p> arp_ignore\u53c2\u6570\u5e38\u7528\u7684\u53d6\u503c\u4e3b\u8981\u67090\uff0c1\uff0c2\uff0c3~8\u8f83\u5c11\u7528\u5230\uff1a<\/p>\n<p> 0\uff1a\u54cd\u5e94\u4efb\u610f\u7f51\u5361\u4e0a\u63a5\u6536\u5230\u7684\u5bf9\u672c\u673aIP\u5730\u5740\u7684arp\u8bf7\u6c42\uff08\u5305\u62ec\u73af\u56de\u7f51\u5361\u4e0a\u7684\u5730\u5740\uff09\uff0c\u800c\u4e0d\u7ba1\u8be5\u76ee\u7684IP\u662f\u5426\u5728\u63a5\u6536\u7f51\u5361\u4e0a\u3002<\/p>\n<p> 1\uff1a\u53ea\u54cd\u5e94\u76ee\u7684IP\u5730\u5740\u4e3a\u63a5\u6536\u7f51\u5361\u4e0a\u7684\u672c\u5730\u5730\u5740\u7684arp\u8bf7\u6c42\u3002<\/p>\n<p> 2\uff1a\u53ea\u54cd\u5e94\u76ee\u7684IP\u5730\u5740\u4e3a\u63a5\u6536\u7f51\u5361\u4e0a\u7684\u672c\u5730\u5730\u5740\u7684arp\u8bf7\u6c42\uff0c\u5e76\u4e14arp\u8bf7\u6c42\u7684\u6e90IP\u5fc5\u987b\u548c\u63a5\u6536\u7f51\u5361\u540c\u7f51\u6bb5\u3002<\/p>\n<p> 3\uff1a\u5982\u679cARP\u8bf7\u6c42\u6570\u636e\u5305\u6240\u8bf7\u6c42\u7684IP\u5730\u5740\u5bf9\u5e94\u7684\u5e26\u9690\u672c\u5730\u5730\u5740\u5176\u4f5c\u7528\u57df\uff08scope\uff09\u4e3a\u4e3b\u673a\uff08host\uff09\uff0c\u5219\u4e0d\u56de\u5e94ARP\u54cd\u5e94\u6570\u636e\u5305\uff0c\u5982\u679c\u4f5c\u7528\u57df\u4e3a\u5168\u5c40\uff08global\uff09\u6216\u94fe\u8def\uff08link\uff09\uff0c\u5219\u56de\u5e94ARP\u54cd\u5e94\u6570\u636e\u5305\u3002<\/p>\n<p> 4~7\uff1a\u4fdd\u7559\u672a\u4f7f\u7528<\/p>\n<p> 8\uff1a\u4e0d\u56de\u5e94\u6240\u6709\u7684arp\u8bf7\u6c42<\/p>\n<p> sysctl.conf\u4e2d\u8822\u9877\u5385\u5305\u542ball\u548ceth\/lo\uff08\u5177\u4f53\u7f51\u5361\uff09\u7684arp_ignore\u53c2\u6570\uff0c\u53d6\u5176\u4e2d\u8f83\u5927\u7684\u503c\u751f\u6548\u3002<\/p>\n<p> arp_announce \u2013 INTEGER<\/p>\n<p> Define different restriction levels for announcing the local<\/p>\n<p> source IP address from IP packets in ARP requests sent on<\/p>\n<p> interface:<\/p>\n<p> 0 \u2013 (default) Use any local address, configured on any interface<\/p>\n<p> 1 \u2013 Try to avoid local addresses that are not in the target\u2019s<\/p>\n<p> subnet for this interface. This mode is useful when target<\/p>\n<p> hosts reachable via this interface require the source IP<\/p>\n<p> address in ARP requests to be part of their logical network<\/p>\n<p> configured on the receiving interface. When we generate the<\/p>\n<p> request we will check all our subnets that include the<\/p>\n<p> target IP and will preserve the source address if it is from<\/p>\n<p> such subnet. If there is no such subnet we select source<\/p>\n<p> address according to the rules for level 2.<\/p>\n<p> 2 \u2013 Always use the best local address for this target.<\/p>\n<p> In this mode we ignore the source address in the IP packet<\/p>\n<p> and try to select local address that we prefer for talks with<\/p>\n<p> the target host. Such local address is selected by looking<\/p>\n<p> for primary IP addresses on all our subnets on the outgoing<\/p>\n<p> interface that include the target IP address. If no suitable<\/p>\n<p> local address is found we select the first local address<\/p>\n<p> we have on the outgoing interface or on all other interfaces,<\/p>\n<p> with the hope we will receive reply for our request and<\/p>\n<p> even sometimes no matter the source IP address we announce.<\/p>\n<p> The max value from conf\/{all,interface}\/arp_announce is used.<\/p>\n<p> arp_announce\u7684\u4f5c\u7528\u662f\u63a7\u5236\u7cfb\u7edf\u5728\u5bf9\u5916\u53d1\u9001arp\u8bf7\u6c42\u65f6\uff0c\u5982\u4f55\u9009\u62e9arp\u8bf7\u6c42\u6570\u636e\u5305\u7684\u6e90IP\u5730\u5740\u3002\uff08\u6bd4\u5982\u7cfb\u7edf\u51c6\u5907\u901a\u8fc7\u7f51\u5361\u53d1\u9001\u4e00\u4e2a\u6570\u636e\u5305a\uff0c\u8fd9\u65f6\u6570\u636e\u5305a\u7684\u6e90IP\u548c\u76ee\u7684IP\u4e00\u822c\u90fd\u662f\u77e5\u9053\u7684\uff0c\u800c\u6839\u636e\u76ee\u7684IP\u67e5\u8be2\u8def\u7531\u8868\uff0c\u53d1\u9001\u7f51\u5361\u4e5f\u662f\u786e\u5b9a\u7684\uff0c\u6545\u6e90MAC\u5730\u5740\u4e5f\u662f\u77e5\u9053\u7684\uff0c\u8fd9\u65f6\u5c31\u5dee\u786e\u5b9a\u76ee\u7684MAC\u5730\u5740\u4e86\u3002\u800c\u60f3\u8981\u83b7\u53d6\u76ee\u7684IP\u5bf9\u5e94\u7684\u76ee\u7684MAC\u5730\u5740\uff0c\u5c31\u9700\u8981\u53d1\u9001arp\u8bf7\u6c42\u3002arp\u8bf7\u6c42\u7684\u76ee\u7684IP\u81ea\u7136\u5c31\u662f\u60f3\u8981\u83b7\u53d6\u5176MAC\u5730\u5740\u7684IP\uff0c\u800carp\u8bf7\u6c42\u7684\u6e90IP\u662f\u4ec0\u4e48\u5462\uff1f \u53ef\u80fd\u4e4b\u4e00\u53cd\u5e94\u4f1a\u4ee5\u4e3a\u80af\u5b9a\u662f\u6570\u636e\u5305a\u7684\u6e90IP\u5730\u5740\uff0c\u4f46\u662f\u8fd9\u4e2a\u4e5f\u4e0d\u662f\u4e00\u5b9a\u7684\uff0carp\u8bf7\u6c42\u7684\u6e90IP\u662f\u53ef\u4ee5\u9009\u62e9\u7684\uff0c\u63a7\u5236\u8fd9\u4e2a\u5730\u5740\u5982\u4f55\u9009\u62e9\u5c31\u662farp_announce\u7684\u4f5c\u7528\uff09<\/p>\n<p> arp_announce\u53c2\u6570\u5e38\u7528\u7684\u53d6\u503c\u67090\uff0c1\uff0c2\u3002<\/p>\n<p> 0\uff1a\u5141\u8bb8\u4f7f\u7528\u4efb\u610f\u7f51\u5361\u4e0a\u7684IP\u5730\u5740\u4f5c\u4e3aarp\u8bf7\u6c42\u7684\u6e90IP\uff0c\u901a\u5e38\u5c31\u662f\u4f7f\u7528\u6570\u636e\u5305a\u7684\u6e90IP\u3002<\/p>\n<p> 1\uff1a\u5c3d\u91cf\u907f\u514d\u4f7f\u7528\u4e0d\u5c5e\u4e8e\u8be5\u53d1\u9001\u7f51\u5361\u5b50\u7f51\u7684\u672c\u5730\u5730\u5740\u4f5c\u4e3a\u53d1\u9001arp\u8bf7\u6c42\u7684\u6e90IP\u5730\u5740\u3002<\/p>\n<p> 2\uff1a\u5ffd\u7565IP\u6570\u636e\u5305\u7684\u6e90IP\u5730\u5740\uff0c\u9009\u62e9\u8be5\u53d1\u9001\u7f51\u5361\u4e0a\u6700\u5408\u9002\u7684\u672c\u5730\u5730\u5740\u4f5c\u4e3aarp\u8bf7\u6c42\u7684\u6e90IP\u5730\u5740\u3002<\/p>\n<p> sysctl.conf\u4e2d\u5305\u542ball\u548ceth\/lo\uff08\u5177\u4f53\u7f51\u5361\uff09\u7684arp_ignore\u53c2\u6570\uff0c\u53d6\u5176\u4e2d\u8f83\u5927\u7684\u503c\u751f\u6548\u3002<\/p>\n<\/p>\n<p> \uff081\uff09\u5f53arp_ignore\u53c2\u6570\u914d\u7f6e\u4e3a0\u65f6\uff0ceth1\u7f51\u5361\u4e0a\u6536\u5230\u76ee\u7684IP\u4e3a\u73af\u56de\u7f51\u5361IP\u7684arp\u8bf7\u6c42\uff0c\u4f46\u662feth1\u4e5f\u4f1a\u8fd4\u56dearp\u54cd\u5e94\uff0c\u628a\u81ea\u5df1\u7684mac\u5730\u5740\u544a\u8bc9\u5bf9\u7aef\u3002<\/p>\n<\/p>\n<p> \uff082\uff09\u5f53arp_ignore\u53c2\u6570\u914d\u7f6e\u4e3a1\u65f6\uff0ceth1\u7f51\u5361\u4e0a\u6536\u5230\u76ee\u7684IP\u4e3a\u73af\u56de\u7f51\u5361IP\u7684arp\u8bf7\u6c42\uff0c\u53d1\u73b0\u8bf7\u6c42\u7684IP\u4e0d\u662f\u81ea\u5df1\u7f51\u5361\u4e0a\u7684IP\uff0c\u4e0d\u4f1a\u56dearp\u54cd\u5e94\u3002<\/p>\n<\/p>\n<p> \uff083\uff09\u5f53arp_announce\u53c2\u6570\u914d\u7f6e\u4e3a0\u65f6\uff0c\u7cfb\u7edf\u8981\u53d1\u9001\u7684IP\u5305\u6e90\u5730\u5740\u4e3aeth1\u7684\u5730\u5740\uff0cIP\u5305\u76ee\u7684\u5730\u5740\u6839\u636e\u8def\u7531\u8868\u67e5\u8be2\u5224\u65ad\u9700\u8981\u4eceeth2\u7f51\u5361\u53d1\u51fa\uff0c\u8fd9\u65f6\u4f1a\u5148\u4eceeth2\u7f51\u5361\u53d1\u8d77\u4e00\u4e2aarp\u8bf7\u6c42\uff0c\u7528\u4e8e\u83b7\u53d6\u76ee\u7684IP\u5730\u5740\u7684MAC\u5730\u5740\u3002\u8be5arp\u8bf7\u6c42\u7684\u6e90MAC\u81ea\u7136\u662feth2\u7f51\u5361\u7684MAC\u5730\u5740\uff0c\u4f46\u662f\u6e90IP\u5730\u5740\u4f1a\u9009\u62e9eth1\u7f51\u5361\u7684\u5730\u5740\u3002<\/p>\n<\/p>\n<p> \uff084\uff09\u5f53arp_announce\u53c2\u6570\u914d\u7f6e\u4e3a2\u65f6\uff0ceth2\u7f51\u5361\u53d1\u8d77arp\u8bf7\u6c42\u65f6\uff0c\u6e90IP\u5730\u5740\u4f1a\u9009\u62e9eth2\u7f51\u5361\u81ea\u8eab\u7684IP\u5730\u5740\u3002<\/p>\n<p> \u56e0\u4e3aDR\u6a21\u5f0f\u4e0b\uff0c\u6bcf\u4e2a\u771f\u5b9e\u670d\u52a1\u5668\u8282\u70b9\u90fd\u8981\u5728\u73af\u56de\u7f51\u5361\u4e0a\u7ed1\u5b9a\u865a\u62df\u670d\u52a1IP\u3002\u8fd9\u65f6\u5019\uff0c\u5982\u679c\u5ba2\u6237\u7aef\u5bf9\u4e8e\u865a\u62df\u670d\u52a1IP\u7684arp\u8bf7\u6c42\u5e7f\u64ad\u5230\u4e86\u5404\u4e2a\u771f\u5b9e\u670d\u52a1\u5668\u8282\u70b9\uff0c\u5982\u679carp_ignore\u53c2\u6570\u914d\u7f6e\u4e3a0\uff0c\u5219\u5404\u4e2a\u771f\u5b9e\u670d\u52a1\u5668\u8282\u70b9\u90fd\u4f1a\u54cd\u5e94\u8be5arp\u8bf7\u6c42\uff0c\u6b64\u65f6\u5ba2\u6237\u7aef\u5c31\u65e0\u6cd5\u6b63\u786e\u83b7\u53d6LVS\u8282\u70b9\u4e0a\u6b63\u786e\u7684\u865a\u62df\u670d\u52a1IP\u6240\u5728\u7f51\u5361\u7684MAC\u5730\u5740\u3002\u5047\u5982\u67d0\u4e2a\u771f\u5b9e\u670d\u52a1\u5668\u8282\u70b9A\u7684\u7f51\u5361eth1\u54cd\u5e94\u4e86\u8be5arp\u8bf7\u6c42\uff0c\u5ba2\u6237\u7aef\u628aA\u8282\u70b9\u7684eth1\u7f51\u5361\u7684MAC\u5730\u5740\u8bef\u8ba4\u4e3a\u662fLVS\u8282\u70b9\u7684\u865a\u62df\u670d\u52a1IP\u6240\u5728\u7f51\u5361\u7684MAC\uff0c\u4ece\u800c\u5c06\u4e1a\u52a1\u8bf7\u6c42\u6d88\u606f\u76f4\u63a5\u53d1\u5230\u4e86A\u8282\u70b9\u7684eth1\u7f51\u5361\u3002\u8fd9\u65f6\u5019\u867d\u7136\u56e0\u4e3aA\u8282\u70b9\u5728\u73af\u56de\u7f51\u5361\u4e0a\u4e5f\u7ed1\u5b9a\u4e86\u865a\u62df\u670d\u52a1IP\uff0c\u6240\u4ee5A\u8282\u70b9\u4e5f\u80fd\u6b63\u5e38\u5904\u7406\u8bf7\u6c42\uff0c\u4e1a\u52a1\u6682\u65f6\u4e0d\u4f1a\u53d7\u5230\u5f71\u54cd\u3002\u4f46\u65f6\u6b64\u65f6\u7531\u4e8e\u5ba2\u6237\u7aef\u8bf7\u6c42\u6ca1\u6709\u53d1\u5230LVS\u7684\u865a\u62df\u670d\u52a1IP\u4e0a\uff0c\u6240\u4ee5LVS\u7684\u8d1f\u8f7d\u5747\u8861\u80fd\u529b\u6ca1\u6709\u751f\u6548\u3002\u9020\u6210\u7684\u540e\u679c\u5c31\u662f\uff0cA\u8282\u70b9\u4e00\u76f4\u5728\u5355\u8282\u70b9\u8fd0\u884c\uff0c\u4e1a\u52a1\u91cf\u8fc7\u5927\u65f6\u53ef\u80fd\u4f1a\u51fa\u73b0\u6027\u80fd\u74f6\u9888\u3002<\/p>\n<p> \u6240\u4ee5DR\u6a21\u5f0f\u4e0b\u8981\u6c42arp_ignore\u53c2\u6570\u8981\u6c42\u914d\u7f6e\u4e3a1\u3002<\/p>\n<p> \u6bcf\u4e2a\u673a\u5668\u6216\u8005\u4ea4\u6362\u673a\u4e2d\u90fd\u6709\u4e00\u5f20arp\u8868\uff0c\u8be5\u8868\u7528\u4e8e\u5b58\u50a8\u5bf9\u7aef\u901a\u4fe1\u8282\u70b9IP\u5730\u5740\u548cMAC\u5730\u5740\u7684\u5bf9\u5e94\u5173\u7cfb\u3002\u5f53\u6536\u5230\u4e00\u4e2a\u672a\u77e5IP\u5730\u5740\u7684arp\u8bf7\u6c42\uff0c\u5c31\u4f1a\u518d\u672c\u673a\u7684arp\u8868\u4e2d\u65b0\u589e\u5bf9\u7aef\u7684IP\u548cMAC\u8bb0\u5f55\uff1b\u5f53\u6536\u5230\u4e00\u4e2a\u5df2\u77e5IP\u5730\u5740\uff08arp\u8868\u4e2d\u5df2\u6709\u8bb0\u5f55\u7684\u5730\u5740\uff09\u7684arp\u8bf7\u6c42\uff0c\u5219\u4f1a\u6839\u636earp\u8bf7\u6c42\u4e2d\u7684\u6e90MAC\u5237\u65b0\u81ea\u5df1\u7684arp\u8868\u3002<\/p>\n<p> \u5982\u679carp_announce\u53c2\u6570\u914d\u7f6e\u4e3a0\uff0c\u5219\u7f51\u5361\u5728\u53d1\u9001arp\u8bf7\u6c42\u65f6\uff0c\u53ef\u80fd\u9009\u62e9\u7684\u6e90IP\u5730\u5740\u5e76\u4e0d\u662f\u8be5\u7f51\u5361\u81ea\u8eab\u7684IP\u5730\u5740\uff0c\u8fd9\u65f6\u5019\u6536\u5230\u8be5arp\u8bf7\u6c42\u7684\u5176\u4ed6\u8282\u70b9\u6216\u8005\u4ea4\u6362\u673a\u4e0a\u7684arp\u8868\u4e2d\u8bb0\u5f55\u7684\u8be5\u7f51\u5361IP\u548cMAC\u7684\u5bf9\u5e94\u5173\u7cfb\u5c31\u4e0d\u6b63\u786e\uff0c\u53ef\u80fd\u4f1a\u5f15\u53d1\u4e00\u4e9b\u672a\u77e5\u7684\u7f51\u7edc\u95ee\u9898\uff0c\u5b58\u5728\u5b89\u5168\u9690\u60a3\u3002<\/p>\n<p> \u6240\u4ee5DR\u6a21\u5f0f\u4e0b\u8981\u6c42arp_announce\u53c2\u6570\u8981\u6c42\u914d\u7f6e\u4e3a2\u3002<\/p>\n<p> arp_ignore\u548carp_announce\u53c2\u6570\u5206\u522b\u6709all,default,lo,eth1,eth2\u2026\u7b49\u5bf9\u5e94\u4e0d\u540c\u7f51\u5361\u7684\u5177\u4f53\u53c2\u6570\u3002\u5f53all\u548c\u5177\u4f53\u7f51\u5361\u7684\u53c2\u6570\u503c\u4e0d\u4e00\u81f4\u65f6\uff0c\u53d6\u8f83\u5927\u503c\u751f\u6548\u3002<\/p>\n<p> \u4e00\u822c\u53ea\u9700\u4fee\u6539all\u548c\u67d0\u4e2a\u5177\u4f53\u7f51\u5361\u7684\u53c2\u6570\u5373\u53ef\uff08\u53d6\u51b3\u4e8e\u4f60\u9700\u8981\u4fee\u6539\u54ea\u4e2a\u7f51\u5361\uff09\u3002\u4e0b\u9762\u4ee5\u4fee\u6539lo\u7f51\u5361\u4e3a\u4f8b\uff1a<\/p>\n<p> net.ipv4.conf.all.arp_ignore=1<\/p>\n<p> net.ipv4.conf.lo.arp_ignore=1<\/p>\n<p> net.ipv4.conf.all.arp_announce=2<\/p>\n<p> net.ipv4.conf.lo.arp_announce=2<\/p>\n<p> sysctl -w net.ipv4.conf.all.arp_ignore=1<\/p>\n<p> sysctl -w net.ipv4.conf.lo.arp_ignore=1<\/p>\n<p> sysctl -w net.ipv4.conf.all.arp_announce=2<\/p>\n<p> sysctl -w net.ipv4.conf.lo.arp_announce=2<\/p>\n<p> echo \u201c1\u201d&gt;\/proc\/sys\/net\/ipv4\/conf\/all\/arp_ignore<\/p>\n<p> echo \u201c1\u201d&gt;\/proc\/sys\/net\/ipv4\/conf\/lo\/arp_ignore<\/p>\n<p> echo \u201c2\u201d&gt;\/proc\/sys\/net\/ipv4\/conf\/all\/arp_announce<\/p>\n<p> echo \u201c2\u201d&gt;\/proc\/sys\/net\/ipv4\/conf\/lo\/arp_announce<\/p>\n<p>\u5173\u4e8elinux \u91cd\u7f6earp\u7684\u4ecb\u7ecd\u5230\u6b64\u5c31\u7ed3\u675f\u4e86\uff0c\u4e0d\u77e5\u9053\u4f60\u4ece\u4e2d\u627e\u5230\u4f60\u9700\u8981\u7684\u4fe1\u606f\u4e86\u5417 \uff1f\u5982\u679c\u4f60\u8fd8\u60f3\u4e86\u89e3\u66f4\u591a\u8fd9\u65b9\u9762\u7684\u4fe1\u606f\uff0c\u8bb0\u5f97\u6536\u85cf\u5173\u6ce8\u672c\u7ad9\u3002<\/p>\n<p><a href=\"http:https:\/\/idc.net\/\">\u9999\u6e2f\u670d\u52a1\u5668<\/a>\u9996\u9009\u540e\u6d6a\u4e91\uff0c2H2G\u9996\u670810\u5143\u5f00\u901a\u3002<br \/>\u540e\u6d6a\u4e91\uff08www.IDC.Net\uff09\u63d0\u4f9b\u7b80\u5355\u597d\u7528\uff0c\u4ef7\u683c\u539a\u9053\u7684\u9999\u6e2f\/\u7f8e\u56fd\u4e91\u670d\u52a1\u5668\u548c\u72ec\u7acb\u670d\u52a1\u5668\u3002IDC+ISP+ICP\u8d44\u8d28\u3002ARIN\u548cAPNIC\u4f1a\u5458\u3002\u6210\u719f\u6280\u672f\u56e2\u961f15\u5e74\u884c\u4e1a\u7ecf\u9a8c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux\u5982\u4f55\u91cd\u7f6eARP\u8868\uff1a\u7b80\u5355\u6613\u61c2\u7684\u6307\u5357 ARP\uff08Address Resolution Protocol\uff09\u8868 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34],"tags":[],"class_list":["post-137991","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/137991","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/comments?post=137991"}],"version-history":[{"count":0,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/137991\/revisions"}],"wp:attachment":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/media?parent=137991"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/categories?post=137991"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/tags?post=137991"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}