{"id":171,"date":"2015-01-05T15:39:19","date_gmt":"2015-01-05T07:39:19","guid":{"rendered":"http:\/\/owemeawe.com\/?p=171"},"modified":"2015-01-05T15:39:46","modified_gmt":"2015-01-05T07:39:46","slug":"%e7%bb%84%e6%92%admac%e5%9c%b0%e5%9d%80","status":"publish","type":"post","link":"https:\/\/peloo.net\/?p=171","title":{"rendered":"\u7ec4\u64adMAC\u5730\u5740\uff08\u8f6c\uff09"},"content":{"rendered":"<p>MAC\u5730\u5740\u662f\u4ee5\u592a\u7f51\u4e8c\u5c42\u4f7f\u7528\u7684\u4e00\u4e2a48bit\uff086\u5b57\u8282\u5341\u516d\u8fdb\u5236\u6570\uff09\u7684\u5730\u5740\uff0c\u7528\u6765\u6807\u8bc6\u8bbe\u5907\u4f4d\u7f6e\u3002MAC\u5730\u5740\u5206\u6210\u4e24\u90e8\u5206\uff0c\u524d24\u4f4d\u662f\u7ec4\u7ec7\u552f\u4e00\u6807\u8bc6\u7b26\uff08OUI, Organizationally unique identifier\uff09\uff0c\u540e24\u4f4d\u7531\u5382\u5546\u81ea\u884c\u5206\u914d\u3002<\/p>\n<p>MAC\u5730\u5740\u6709\u5355\u64ad\u3001\u7ec4\u64ad\u3001\u5e7f\u64ad\u4e4b\u5206\u3002\u5355\u64ad\u5730\u5740(unicast address)\u8868\u793a\u5355\u4e00\u8bbe\u5907\u3001\u8282\u70b9\uff0c<strong>\u591a\u64ad\u5730\u5740\u6216\u8005\u7ec4\u64ad\u5730\u5740(multicast address\u3001group address)<\/strong>\u8868\u793a\u4e00\u7ec4\u8bbe\u5907\u3001\u8282\u70b9\uff0c\u5e7f\u64ad\u5730\u5740(broadcast address)\u662f\u7ec4\u64ad\u7684\u7279\u4f8b\uff0c\u8868\u793a\u6240\u6709\u5730\u5740\uff0c\u7528\u5168F\u8868\u793a\uff1aFF-FF-FF-FF-FF-FF\u3002\u5f53\u7136\uff0c\u4e09\u5c42\u7684IP\u5730\u5740\u4e5f\u6709\u5355\u64ad\u3001\u7ec4\u64ad\u3001\u5e7f\u64ad\u4e4b\u5206\u3002<\/p>\n<p>48bit\u7684MAC\u5730\u5740\u4e00\u822c\u75286\u5b57\u8282\u7684\u5341\u516d\u8fdb\u5236\u6765\u8868\u793a\uff0c\u5982XX-XX-XX-XX-XX\u3002IEEE 802.3\u89c4\u5b9a\uff1a\u4ee5\u592a\u7f51\u7684\u7b2c48bit\u7528\u4e8e\u8868\u793a\u8fd9\u4e2a\u5730\u5740\u662f\u7ec4\u64ad\u5730\u5740\u8fd8\u662f\u5355\u64ad\u5730\u5740\u3002\u5982\u679c\u8fd9\u4e00\u4f4d\u662f0\uff0c\u8868\u793a\u6b64MAC\u5730\u5740\u662f\u5355\u64ad\u5730\u5740\uff0c\u5982\u679c\u8fd9\u4f4d\u662f1\uff0c\u8868\u793a\u6b64 MAC\u5730\u5740\u662f\u591a\u64ad\u5730\u5740\u3002\u89c1IEEE 802.3 3.2.3 Address fields\uff1a \u201cThe first bit (LSB) shall be used in the Destination Address field as an address type designation bit to identify the Destination Address either as an individual or as a group address. If this bit is 0, it shall indicate that the address field contains an individual address. If this bit is 1, it shall indicate that the address field contains a group address that identifies none, one or more, or all of the stations connected to the LAN. In the Source Address field, the first bit is reserved and set to 0.\u201d<\/p>\n<p>\u56e0\u4e3a\u4ee5\u592a\u7f51\u7ebf\u8def\u4e0a\u6309\u201cBig Endian\u201d\u5b57\u8282\u5e8f\u4f20\u9001\u62a5\u6587\uff08\u4e5f\u5c31\u662f\u6700\u9ad8\u5b57\u8282\u5148\u4f20\u9001\uff0c\u5173\u4e8e\u5b57\u8282\u5e8f\u8bf7\u53c2\u8003\u76f8\u5173\u6587\u6863\uff09\uff0c\u800c\u6bd4\u7279\u5e8f\u662f\u201dLittle Endian\u201d\uff08\u4e5f\u5c31\u662f\u6700\u4f4e\u4f4d\u5148\u4f20\u9001\uff09\u3002\u6240\u4ee5\u6709\u5982\u4e0b\u7684\u56fe\uff08\u4ece\u6700\u5de6\u8fb9\u5f00\u59cb\u4f20\u9001\uff09\uff1a<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/hi.csdn.net\/attachment\/201012\/8\/0_1291822827nCFr.gif\" alt=\"\" \/><\/p>\n<p>\u6ce8\u610f\u56fe\u4e0a\u7684\u7b2c47bit\uff0c\u8fd9\u4e00\u4f4d\u8868\u793aMAC\u5730\u5740\u662f\u5168\u7403\u552f\u4e00\u5730\u5740\u8fd8\u662f\u672c\u5730\u5730\u5740\uff0c0\u8868\u793a\u5168\u7403\u552f\u4e00\u5730\u5740\uff0c1\u8868\u793a\u672c\u5730\u552f\u4e00\u5730\u5740\u3002\u8fd9\u4e00\u4f4d\u4e5f\u53ebG\/L\u4f4d\u3002<\/p>\n<p>\u5bf9\u4e8e\u7f51\u7edc\u8bbe\u5907\u4e0a\u56fa\u5316\u7684MAC\u5730\u5740\uff0c\u56e0\u4e3a\u5b83\u552f\u4e00\u6807\u8bc6\u8fd9\u4e2a\u8bbe\u5907\uff0c\u6240\u4ee5\u53ea\u80fd\u662f\u5355\u64ad\u5730\u5740\uff0c\u4e5f\u5c31\u662fMAC\u5e27\u91cc\u9762\u7684Source\u5730\u5740\u7b2c48\u4f4d\u53ea\u80fd0\u3002<\/p>\n<p>\u6211\u4eec\u5e38\u8bf4\u67092\u768448\u6b21\u65b9\u4e2aMAC\u5730\u5740\u53ef\u4f9b\u7f51\u7edc\u8bbe\u5907\u4f7f\u7528\uff0c\u8fd9\u4e9b\u5730\u5740\u53ef\u4ee5\u591a\u5230\u7ed9\u5730\u7403\u4e0a\u6bcf\u4e00\u7c92\u6c99\u5b50\u5206\u914d\u4e00\u4e2a\u5730\u5740\uff0c\u5176\u5b9e\u8fd9\u4e2a\u6570\u91cf\u8981\u6253\u6298\u6263\u7684\uff0c\u56e0\u4e3aMAC\u5730\u5740\u867d\u7136\u6709\u8fd9\u4e48\u591a\uff0c\u4f46\u771f\u6b63\u7528\u5728\u7f51\u5361\u4e0a\u5e76\u4e14\u5168\u7403\u552f\u4e00\u7684\u53ea\u67092\u768446\u6b21\u65b9\u4e2a\uff1a\u7b2c48bit\u4e00\u5b9a\u662f0\uff0c\u7b2c47bit\u4e00\u5b9a\u662f0\u3002<\/p>\n<p>\u8fd9\u4e5f\u5c31\u5f15\u51fa\u4e86\u4e00\u4e2a\u6709\u610f\u601d\u7684\u73b0\u8c61\uff1a\u968f\u4fbf\u627e\u4e00\u53f0PC\uff0c\u89c2\u5bdf\u4e00\u4e0b\u5b83\u7684\u7f51\u5361\u5730\u5740\uff0c<strong>\u7b2c1\u5b57\u8282\u7684\u5341\u516d\u8fdb\u5236\u6570\u4e00\u822c\u662f4\u7684\u500d\u6570<\/strong>\uff1b\u67e5\u770b\u4e00\u4e0bIEEE\u5206\u914d\u7684OUI(<a href=\"http:\/\/standards.ieee.org\/develop\/regauth\/oui\/oui.txt\">http:\/\/standards.ieee.org\/develop\/regauth\/oui\/oui.txt <\/a>)\uff0c\u7b2c1\u5b57\u8282\u7684\u5341\u516d\u8fdb\u5236\u6570\u4e5f\u4e00\u822c\u662f4\u7684\u500d\u6570\uff08\u65e9\u671f\u4ee5\u592a\u7f51\u6ca1\u6709\u672c\u5730\u5730\u5740\u7684\u6982\u5ff5\uff0c\u6240\u4ee5\u5206\u914d\u7684OUI\u91cc\u9762G\/L bit\u4e5f\u53ef\u80fd\u662f1\uff09\uff0c\u8fd9\u79cd\u60c5\u51b5\u4e0b\u5c31\u4e0d\u662f4\u7684\u500d\u6570\u4e86\uff0c\u4f46\u80af\u5b9a\u662f2\u7684\u500d\u6570\uff0c\u56e0\u4e3a\u7b2c48\u4f4d\u53ea\u80fd\u662f0\u3002<\/p>\n<p>\u5173\u4e8e\u7ec4\u64ad\u5730\u5740\uff0c\u6709\u8fd9\u4e48\u4e2a\u8bef\u89e3\uff1aMAC\u5730\u5740\u7b2c1\u5b57\u8282\u5fc5\u987b\u662f0x01\u624d\u8868\u793a\u7ec4\u64ad\u5730\u5740\uff0c\u8fdeTCP\/IP\u8be6\u89e3\u4e0a\u4e5f\u8fd9\u4e48\u8bf4\uff08\u89c1\u4e2d\u6587\u724812.4.2\u7b2c\u4e00\u6bb5\uff09\u3002IEEE 802.3\u91cc\u9762\u5df2\u7ecf\u660e\u786e\u8bf4\u660e\u4e86\u53ea\u8981\u7b2c48bit\u662f1\u5c31\u8868\u793a\u7ec4\u64ad\u5730\u5740\uff0c\u6240\u4ee5\u65e0\u8bbaMAC\u5730\u5740\u7b2c1\u5b57\u8282\u662f0x01\u30010xC1\u6216\u8005\u662f0x33\u90fd\u8868\u793a\u8fd9\u4e2aMAC\u5730\u5740 \u662f\u7ec4\u64ad\u5730\u5740\uff08\u4ee50x33\u5f00\u5934\u7684\u8868\u793aIPV6\u5bf9\u5e94\u7684\u4e8c\u5c42\u7ec4\u64ad\u5730\u5740\uff09\u3002\u4e4b\u6240\u4ee5\u6709\u8fd9\u6837\u7684\u8bef\u89e3\uff0c\u662f\u56e0\u4e3a\u5230\u76ee\u524d\u4e3a\u6b62\uff0c\u5927\u90e8\u5206\u7ec4\u64adMAC\u5730\u5740\u7684\u7b2c1\u5b57\u8282\u90fd\u662f0x01\u3002 \u5982\uff1a<\/p>\n<p>01-80-C2-00-00-00(STP\u534f\u8bae\u4f7f\u7528)<\/p>\n<p>01-80-C2-00-00-01(MAC Control\u7684PAUSE\u5e27\u4f7f\u7528)<\/p>\n<p>01-80-C2-00-00-02(Slow Protocol: 802.3ah OAM\/ LACP \u534f\u8bae\u90fd\u7528\u8fd9\u4e2a\u5730\u5740\uff0c\u8fd9\u4e2a\u5730\u5740\u5f88\u6709\u6545\u4e8b\uff0c\u6709\u591a\u5c11\u8f6f\u4ef6\u5904\u7406\u8fd9\u4e2a\u5730\u5740\u4f1a\u51fa\u95ee\u9898\u554a\uff01)<\/p>\n<p>01-00-5E-xx-xx-xx(IP\u7ec4\u64ad\u5730\u5740\u5bf9\u5e94\u7684\u4e8c\u5c42\u7ec4\u64ad\u5730\u5740)\u3002<\/p>\n<p>\u5b8c\u6574\u7684\u5217\u8868\u89c1<a href=\"http:\/\/standards.ieee.org\/develop\/regauth\/grpmac\/public.html\">http:\/\/standards.ieee.org\/develop\/regauth\/grpmac\/public.html<\/a><\/p>\n<p>\u4e4b\u6240\u4ee5\u5927\u90e8\u5206\u7ec4\u64ad\u5730\u5740\u90fd\u4ee501-80-C2\u548c01-00-5E\u5f00\u5934\uff0c\u90a3\u662f\u56e0\u4e3a\u4f7f\u7528\u8fd9\u4e9b\u7ec4\u64ad\u5730\u5740\u7684\u534f\u8bae\u90fd\u662f\u5e26\u5934\u5927\u54e5IEEE\u548cIANA\u540d\u4e0b\u7684\uff0c\u5b83\u4eec\u7684OUI \u5206\u522b\u662f00-80-C2\u548c00-00-5E\u662f\uff0c\u53d8\u6210\u7ec4\u64ad\u5730\u5740\u5c31\u662f01-80-C2\u548c01-00-5E\u4e86\uff0c\u5f53\u7136\uff0c\u9664\u4e86\u5e26\u5934\u5927\u54e5\u9738\u5360\u7684\u8fd9\u4e9b\u7ec4\u64ad\u5730\u5740\uff0c\u8fd8\u6709 01-00-0C-CC-CC-CC\u8fd9\u6837\u7684\u5730\u5740\uff0c\u8fd9\u4e2a\u5730\u5740\u662fCisco\u9738\u5360\u7684\uff0cCisco\u7684OUI\u662f00-00-0C\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MAC\u5730\u5740\u662f\u4ee5\u592a\u7f51\u4e8c\u5c42\u4f7f\u7528\u7684\u4e00\u4e2a48bit\uff086\u5b57\u8282\u5341\u516d\u8fdb\u5236\u6570\uff09\u7684\u5730\u5740\uff0c\u7528\u6765\u6807\u8bc6\u8bbe\u5907\u4f4d\u7f6e\u3002MAC\u5730\u5740\u5206\u6210\u4e24\u90e8\u5206\uff0c\u524d24\u4f4d\u662f\u7ec4\u7ec7\u552f\u4e00\u6807\u8bc6\u7b26\uff08OUI, Organizationally unique identifier\uff09\uff0c\u540e24\u4f4d\u7531\u5382\u5546\u81ea\u884c\u5206\u914d\u3002 MAC\u5730\u5740\u6709\u5355\u64ad\u3001\u7ec4\u64ad\u3001\u5e7f\u64ad\u4e4b\u5206\u3002\u5355\u64ad\u5730\u5740(unicast address)\u8868\u793a\u5355\u4e00\u8bbe\u5907\u3001\u8282\u70b9\uff0c\u591a\u64ad\u5730\u5740\u6216\u8005\u7ec4\u64ad\u5730\u5740(multicast address\u3001group address)\u8868\u793a\u4e00\u7ec4\u8bbe\u5907\u3001\u8282\u70b9\uff0c\u5e7f\u64ad\u5730\u5740(broadcast address)\u662f\u7ec4\u64ad\u7684\u7279\u4f8b\uff0c\u8868\u793a\u6240\u6709\u5730\u5740\uff0c\u7528\u5168F\u8868\u793a\uff1aFF-FF-FF-FF-FF-FF\u3002\u5f53\u7136\uff0c\u4e09\u5c42\u7684IP\u5730\u5740\u4e5f\u6709\u5355\u64ad\u3001\u7ec4\u64ad\u3001\u5e7f\u64ad\u4e4b\u5206\u3002 48bit\u7684MAC\u5730\u5740\u4e00\u822c\u75286\u5b57\u8282\u7684\u5341\u516d\u8fdb\u5236\u6765\u8868\u793a\uff0c\u5982XX-XX-XX-XX-XX\u3002IEEE 802.3\u89c4\u5b9a\uff1a\u4ee5\u592a\u7f51\u7684\u7b2c48bit\u7528\u4e8e\u8868\u793a\u8fd9\u4e2a\u5730\u5740\u662f\u7ec4\u64ad\u5730\u5740\u8fd8\u662f\u5355\u64ad\u5730\u5740\u3002\u5982\u679c\u8fd9\u4e00\u4f4d\u662f0\uff0c\u8868\u793a\u6b64MAC\u5730\u5740\u662f\u5355\u64ad\u5730\u5740\uff0c\u5982\u679c\u8fd9\u4f4d\u662f1\uff0c\u8868\u793a\u6b64 MAC\u5730\u5740\u662f\u591a\u64ad\u5730\u5740\u3002\u89c1IEEE 802.3 3.2.3 Address fields\uff1a \u201cThe first bit (LSB) shall be used in the Destination Address field as an address type designation bit to identify the Destination Address either as an individual or as a group address. If this bit is 0, it shall&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/peloo.net\/index.php?rest_route=\/wp\/v2\/posts\/171"}],"collection":[{"href":"https:\/\/peloo.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/peloo.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/peloo.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/peloo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=171"}],"version-history":[{"count":2,"href":"https:\/\/peloo.net\/index.php?rest_route=\/wp\/v2\/posts\/171\/revisions"}],"predecessor-version":[{"id":173,"href":"https:\/\/peloo.net\/index.php?rest_route=\/wp\/v2\/posts\/171\/revisions\/173"}],"wp:attachment":[{"href":"https:\/\/peloo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=171"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/peloo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=171"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/peloo.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=171"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}