{"id":98980,"date":"2024-11-08T16:57:31","date_gmt":"2024-11-08T08:57:31","guid":{"rendered":"\/\/www.viralrail.com\/?p=98980"},"modified":"2024-11-08T16:57:34","modified_gmt":"2024-11-08T08:57:34","slug":"blyxygzyl","status":"publish","type":"post","link":"\/\/www.viralrail.com\/blog\/98980.html","title":{"rendered":"BGP\u8def\u7531\u534f\u8bae\u5de5\u4f5c\u539f\u7406"},"content":{"rendered":"\n
\u3000\u3000BGP(\u8fb9\u754c\u7f51\u5173\u534f\u8bae)<\/strong>\u662f\u4e00\u79cd\u7528\u4e8e\u81ea\u6cbb\u7cfb\u7edf(AS)\u4e4b\u95f4\u4ea4\u6362\u8def\u7531\u4fe1\u606f\u7684\u8def\u7531\u534f\u8bae\uff0c\u5176\u5de5\u4f5c\u539f\u7406\u4e3b\u8981\u56f4\u7ed5\u4ee5\u4e0b\u51e0\u4e2a\u6838\u5fc3\u673a\u5236\u5c55\u5f00\uff1a<\/p>\n\n\n\n \u3000\u3000BGP\u534f\u8bae\u662f\u4e00\u79cd\u8def\u5f84\u77e2\u91cf\u534f\u8bae\uff0c\u4e3b\u8981\u7528\u4e8e\u5728\u4e0d\u540c\u7684\u81ea\u6cbb\u7cfb\u7edf\u4e4b\u95f4\u4ea4\u6362\u8def\u7531\u4fe1\u606f\uff0c\u5e76\u901a\u8fc7\u4e30\u5bcc\u7684\u8def\u5f84\u5c5e\u6027\u548c\u4e25\u683c\u7684\u90bb\u5c45\u5173\u7cfb\u7ba1\u7406\u6765\u5b9e\u73b0\u9ad8\u6548\u7684\u8def\u7531\u9009\u62e9\u548c\u7f51\u7edc\u53ef\u8fbe\u6027\u3002<\/p>\n\n\n\n \u3000\u3000BGP\u534f\u8bae\u4e2d\u7684\u8def\u5f84\u5c5e\u6027\u5728\u8def\u7531\u9009\u62e9\u548c\u7b56\u7565\u63a7\u5236\u4e2d\u8d77\u7740\u81f3\u5173\u91cd\u8981\u7684\u4f5c\u7528\u3002\u8fd9\u4e9b\u5c5e\u6027\u5305\u62ec\u6743\u91cd\u503c(weight)\u3001\u672c\u5730AS\u4f18\u5148\u7ea7(local-preference)\u3001AS-Path\u3001Origin\u3001MED(\u591a\u51fa\u53e3\u5ea6\u91cf)\u3001\u4e0b\u4e00\u8df3(next-hop)\u3001Community\u548cAtomic_Aggregate\u7b49\u3002<\/p>\n\n\n\n \u3000\u3000\u5728BGP\u7684\u8def\u5f84\u9009\u62e9\u8fc7\u7a0b\u4e2d\uff0c\u8def\u7531\u5668\u4f1a\u6839\u636e\u4e00\u7cfb\u5217\u9884\u5b9a\u4e49\u7684\u89c4\u5219\u6765\u8bc4\u4f30\u6536\u5230\u7684\u8def\u7531\u4fe1\u606f\uff0c\u5e76\u9009\u62e9\u6700\u4f73\u8def\u5f84\u3002\u8fd9\u4e9b\u89c4\u5219\u5305\u62ec\u4f46\u4e0d\u9650\u4e8e\u4e0a\u8ff0\u8def\u5f84\u5c5e\u6027\u7684\u6bd4\u8f83\u3002\u4f8b\u5982\uff0c\u901a\u5e38\u60c5\u51b5\u4e0b\uff0cAS_PATH\u8f83\u77ed\u7684\u8def\u7531\u4f1a\u88ab\u4f18\u5148\u9009\u62e9\uff0c\u56e0\u4e3a\u8fd9\u8868\u793a\u8def\u5f84\u66f4\u77ed\uff0c\u51cf\u5c11\u4e86\u8df3\u6570\u548c\u6f5c\u5728\u7684\u5ef6\u8fdf\u3002\u6b64\u5916\uff0cBGP\u8fd8\u5177\u6709\u5faa\u73af\u9884\u9632\u673a\u5236\uff0c\u5373\u4e0d\u4f1a\u5bfc\u5165\u5305\u542b\u81ea\u8eabAS\u53f7\u7684AS_PATH\uff0c\u4ee5\u9632\u6b62\u8def\u7531\u73af\u8def\u3002<\/p>\n\n\n\n \u3000\u3000\u5728BGP\u4e2d\u914d\u7f6e\u548c\u4f18\u5316\u8def\u7531\u7b56\u7565\u4ee5\u63d0\u9ad8\u7f51\u7edc\u6027\u80fd\u548c\u5b89\u5168\u6027\uff0c\u53ef\u4ee5\u4ece\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u9762\u8fdb\u884c\uff1a<\/p>\n\n\n\n \u3000\u3000BGP\u534f\u8bae\u7684\u9519\u8bef\u5904\u7406\u673a\u5236\u4e3b\u8981\u5305\u62ec\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u9762\uff1a<\/p>\n\n\n\n \u3000\u3000\u5728BGP\u591a\u8df3\u652f\u6301\u4e2d\uff0c\u786e\u4fdd\u6570\u636e\u5305\u901a\u8fc7\u591a\u4e2aAS\u65f6\u7684\u53ef\u9760\u6027\u548c\u6548\u7387\u6d89\u53ca\u591a\u4e2a\u65b9\u9762\u7684\u914d\u7f6e\u548c\u4f18\u5316\u63aa\u65bd\uff1a<\/p>\n\n\n\n \u3000\u3000\u4f7f\u7528ebgp-multihop\u547d\u4ee4\u53ef\u4ee5\u5141\u8bb8BGP\u4e0e\u975e\u76f4\u8fde\u7f51\u7edc\u4e0a\u7684\u5bf9\u7b49\u4f53\u5efa\u7acbEBGP\u8fde\u63a5\uff0c\u5e76\u53ef\u4ee5\u6307\u5b9a\u5141\u8bb8\u7684\u6700\u5927\u8df3\u6570\u3002\u8fd9\u4f7f\u5f97\u5728\u4e0d\u540cAS\u4e4b\u95f4\u5efa\u7acb\u8fde\u63a5\u6210\u4e3a\u53ef\u80fd\uff0c\u4ece\u800c\u63d0\u9ad8\u6570\u636e\u5305\u4f20\u8f93\u7684\u7075\u6d3b\u6027\u3002<\/p>\n\n\n\n \u3000\u3000BGP\u7684\u5b89\u5168\u68c0\u67e5\u529f\u80fd\u901a\u8fc7\u6bd4\u8f83\u63a5\u6536\u5230\u7684IP\u6570\u636e\u5305\u7684TTL\u5b57\u6bb5\u503c\u4e0e\u672c\u5730\u914d\u7f6e\u7684\u8df3\u6570\u6765\u4fdd\u62a4eBGP\u5bf9\u7b49\u4f53\u4f1a\u8bdd\u3002\u5982\u679c\u5165\u7ad9IP\u6570\u636e\u5305\u7684TTL\u503c\u5927\u4e8e\u6216\u7b49\u4e8e\u672c\u5730\u914d\u7f6e\u7684\u503c\uff0c\u5219\u63a5\u53d7\u5e76\u6b63\u5e38\u5904\u7406\u8be5\u6570\u636e\u5305;\u5982\u679cTTL\u503c\u5c0f\u4e8e\u672c\u5730\u914d\u7f6e\u7684\u503c\uff0c\u5219\u4e22\u5f03\u6570\u636e\u5305\u4e14\u4e0d\u751f\u6210ICMP\u6d88\u606f\u3002\u8fd9\u79cd\u673a\u5236\u9632\u6b62\u4e86\u4f2a\u9020\u6570\u636e\u5305\u7684\u54cd\u5e94\uff0c\u589e\u5f3a\u4e86\u5b89\u5168\u6027\u3002<\/p>\n\n\n\n \u3000\u3000\u672c\u5730AS\u529f\u80fd\u5141\u8bb8\u8def\u7531\u5668\u9664\u4e86\u5176\u771f\u5b9eAS\u4e4b\u5916\uff0c\u8fd8\u4f5c\u4e3a\u7b2c\u4e8c\u4e2a\u81ea\u6cbb\u7cfb\u7edf(AS)\u7684\u6210\u5458\u51fa\u73b0\u3002\u8fd9\u4f7f\u5f97\u4e24\u4e2aISP\u53ef\u4ee5\u5728\u65e0\u9700\u4fee\u6539\u5bf9\u7b49\u4f53\u5b89\u6392\u7684\u60c5\u51b5\u4e0b\u5408\u5e76\uff0c\u4ece\u800c\u63d0\u9ad8\u4e86\u7f51\u7edc\u7684\u7075\u6d3b\u6027\u548c\u53ef\u9760\u6027\u3002<\/p>\n\n\n\n \u3000\u3000\u5728BGP\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u914d\u7f6e\u542f\u7528\u591a\u8def\u5f84\u8d1f\u8f7d\u5747\u8861\u529f\u80fd\uff0c\u5e76\u6307\u5b9a\u7b49\u6548\u4e0b\u4e00\u8df3\u7684\u6570\u91cf\u3002\u8fd9\u6709\u52a9\u4e8e\u5728\u591a\u4e2a\u8def\u5f84\u4e4b\u95f4\u5206\u914d\u6d41\u91cf\uff0c\u4ece\u800c\u63d0\u9ad8\u7f51\u7edc\u7684\u6548\u7387\u548c\u53ef\u9760\u6027\u3002<\/p>\n\n\n\n \u3000\u3000BGP\u5feb\u901f\u91cd\u5b9a\u5411(FRR)\u65e8\u5728\u4f7f\u7528\u5907\u4efd\u94fe\u8def\u5728\u68c0\u6d4b\u5230\u6545\u969c\u94fe\u8def\u540e\u7ef4\u6301\u6570\u636e\u8f6c\u53d1\uff0c\u5b9e\u73b0\u201c\u96f6\u5ef6\u8fdf\u201d\u548c\u201c\u96f6\u635f\u5931\u201d\u3002\u5f53BGP\u8def\u7531\u8868\u6709\u591a\u6761\u8def\u5f84\u5230\u8fbe\u540c\u4e00\u4e2a\u7f51\u7edc\u65f6\uff0cBGP\u4f1a\u9ed8\u8ba4\u9009\u62e9\u4f18\u5148\u7ea7\u6700\u9ad8\u7684\u8def\u5f84\u3002\u800cBGP FRR\u5219\u4f1a\u5728\u53d1\u751f\u6545\u969c\u65f6\u4e3a\u6bcf\u6761\u6700\u4f73\u8def\u5f84\u9009\u62e9\u4e00\u6761\u5907\u4efd\u8def\u5f84\uff0c\u5e76\u5728\u5b8c\u6210\u8def\u7531\u6536\u655b\u540e\u518d\u5207\u6362\u56de\u6700\u4f73\u8def\u5f84\u3002<\/p>\n\n\n\n \u3000\u3000BGP\u534f\u8bae\u5728\u4e0d\u540c\u81ea\u6cbb\u7cfb\u7edf\u95f4\u4ea4\u6362\u8def\u7531\u4fe1\u606f\u65f6\uff0c\u9632\u6b62\u8def\u7531\u73af\u8def\u7684\u53d1\u751f\u4e3b\u8981\u4f9d\u8d56\u4e8e\u51e0\u4e2a\u5173\u952e\u673a\u5236\u3002\u9996\u5148\uff0cBGP\u4f7f\u7528\u8def\u5f84\u77e2\u91cf\u8def\u7531\u534f\u8bae(DV\u7b97\u6cd5)\uff0c\u8bbe\u8ba1\u4e0a\u907f\u514d\u4e86\u73af\u8def\u7684\u53d1\u751f\uff0c\u901a\u8fc7AS\u7f16\u53f7\u6765\u9632\u6b62\u73af\u8def\u3002\u5176\u6b21\uff0cBGP\u8bbe\u5907\u5728\u63a5\u6536eBGP\u5bf9\u7b49\u4f53\u53d1\u9001\u7684\u8def\u7531\u65f6\uff0c\u4f1a\u5c06\u5e26\u6709\u672c\u5730AS\u53f7\u7684\u8def\u7531\u4e22\u5f03\uff0c\u4ee5\u9632\u6b62AS\u95f4\u4ea7\u751f\u73af\u8def\u3002\u6b64\u5916\uff0cBGP\u8fd8\u5229\u7528AS\u8def\u5f84\u5c5e\u6027\u6765\u9632\u6b62\u73af\u8def\uff0c\u5f53\u8def\u7531\u4fe1\u606f\u7ecf\u8fc7\u591a\u4e2aAS\u65f6\uff0cAS\u8def\u5f84\u5c5e\u6027\u4f1a\u8bb0\u5f55\u4e0b\u6240\u6709\u7ecf\u8fc7\u7684AS\u7f16\u53f7\uff0c\u5f53\u8def\u7531\u4fe1\u606f\u8fd4\u56de\u5230\u67d0\u4e2aAS\u65f6\uff0c\u5982\u679cAS\u8def\u5f84\u4e2d\u5305\u542b\u4e86\u8be5AS\u7684\u7f16\u53f7\uff0c\u5219\u8be5\u8def\u7531\u4fe1\u606f\u4f1a\u88ab\u4e22\u5f03\uff0c\u4ece\u800c\u907f\u514d\u4e86\u73af\u8def\u3002\u6700\u540e\uff0cBGP\u8fd8\u91c7\u7528\u4e86\u6c34\u5e73\u5206\u5272(Horizontal Split)\u673a\u5236\uff0c\u907f\u514d\u8def\u7531\u73af\u8def\u548c\u4e0d\u5fc5\u8981\u8def\u7531\u4fe1\u606f\u7684\u4f20\u64ad\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" BGP\u534f\u8bae\u662f\u4e00\u79cd\u8def\u5f84\u77e2\u91cf\u534f\u8bae\uff0c\u4e3b\u8981\u7528\u4e8e\u5728\u4e0d\u540c\u7684\u81ea\u6cbb\u7cfb\u7edf\u4e4b\u95f4\u4ea4\u6362\u8def\u7531\u4fe1\u606f\uff0c\u5e76\u901a\u8fc7\u4e30\u5bcc\u7684\u8def\u5f84\u5c5e\u6027\u548c\u4e25\u683c\u7684\u90bb\u5c45\u5173\u7cfb\u7ba1\u7406\u6765\u5b9e\u73b0\u9ad8\u6548\u7684\u8def\u7531\u9009\u62e9\u548c\u7f51\u7edc\u53ef\u8fbe\u6027<\/p>\n","protected":false},"author":1,"featured_media":98952,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"categories":[36],"tags":[459],"class_list":["post-98980","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-lyxy"],"_links":{"self":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts\/98980"}],"collection":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/comments?post=98980"}],"version-history":[{"count":0,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts\/98980\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/media\/98952"}],"wp:attachment":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/media?parent=98980"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/categories?post=98980"},{"taxonomy":"post_tag","embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/tags?post=98980"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}\n
\u3000\u3000\u4e00\u3001 BGP\u534f\u8bae\u4e2d\u8def\u5f84\u5c5e\u6027\u7684\u5177\u4f53\u4f5c\u7528\u548c\u8ba1\u7b97\u65b9\u5f0f\u662f\u4ec0\u4e48?<\/h2>\n\n\n\n
\n
\u3000\u3000\u4e8c\u3001 \u5982\u4f55\u5728BGP\u4e2d\u914d\u7f6e\u548c\u4f18\u5316\u8def\u7531\u7b56\u7565\u4ee5\u63d0\u9ad8\u7f51\u7edc\u6027\u80fd\u548c\u5b89\u5168\u6027?<\/h2>\n\n\n\n
\n
\u3000\u3000\u4e09\u3001 BGP\u534f\u8bae\u7684\u9519\u8bef\u5904\u7406\u673a\u5236\u5177\u4f53\u5305\u62ec\u54ea\u4e9b\u5185\u5bb9\uff0c\u4ee5\u53ca\u5982\u4f55\u5b9e\u73b0\u8fd9\u4e9b\u9519\u8bef\u5904\u7406?<\/h2>\n\n\n\n
\n
\u3000\u3000\u56db\u3001 \u5728BGP\u591a\u8df3\u652f\u6301\u4e2d\uff0c\u5982\u4f55\u786e\u4fdd\u6570\u636e\u5305\u901a\u8fc7\u591a\u4e2aAS\u65f6\u7684\u53ef\u9760\u6027\u548c\u6548\u7387?<\/h2>\n\n\n\n
\u3000\u30001. \u591a\u8df3\u652f\u6301\u7684\u914d\u7f6e<\/strong>\uff1a<\/h3>\n\n\n\n
\u3000\u30002. TTL\u5b89\u5168\u68c0\u67e5<\/strong>\uff1a<\/h3>\n\n\n\n
\u3000\u30003. \u672c\u5730AS\u529f\u80fd<\/strong>\uff1a<\/h3>\n\n\n\n
\u3000\u30004. \u591a\u8def\u5f84\u8d1f\u8f7d\u5747\u8861<\/strong>\uff1a<\/h3>\n\n\n\n
\u3000\u30005. \u5feb\u901f\u91cd\u5b9a\u5411\uff08BGP FRR\uff09<\/strong>\uff1a<\/h3>\n\n\n\n
\u3000\u3000\u4e94\u3001 BGP\u534f\u8bae\u5728\u4e0d\u540c\u81ea\u6cbb\u7cfb\u7edf\u95f4\u4ea4\u6362\u8def\u7531\u4fe1\u606f\u65f6\uff0c\u5982\u4f55\u9632\u6b62\u8def\u7531\u73af\u8def\u7684\u53d1\u751f?<\/h2>\n\n\n\n