{"id":477335,"date":"2023-08-09T09:11:08","date_gmt":"2023-08-09T09:11:08","guid":{"rendered":""},"modified":"2023-09-05T11:14:31","modified_gmt":"2023-09-05T11:14:31","slug":"generic-routing-encapsulation","status":"publish","type":"wiki","link":"https:\/\/oneproxy.pro\/cn\/wiki\/generic-routing-encapsulation\/","title":{"rendered":"\u901a\u7528\u8def\u7531\u5c01\u88c5"},"content":{"rendered":"<p>\u901a\u7528\u8def\u7531\u5c01\u88c5 (GRE) \u662f\u8ba1\u7b97\u673a\u7f51\u7edc\u4e2d\u7528\u4e8e\u5c06\u4e00\u4e2a\u6216\u591a\u4e2a\u7f51\u7edc\u6570\u636e\u5305\u5c01\u88c5\u5728\u53e6\u4e00\u4e2a IP \u6570\u636e\u5305\u5185\u7684\u96a7\u9053\u534f\u8bae\u3002GRE \u5e7f\u6cdb\u5e94\u7528\u4e8e\u5404\u79cd\u7f51\u7edc\u573a\u666f\uff0c\u5305\u62ec\u865a\u62df\u4e13\u7528\u7f51\u7edc (VPN) \u548c\u4ee3\u7406\u670d\u52a1\u5668\uff0c\u4ee5\u5728\u4e0d\u540c\u7f51\u7edc\u6216\u4e3b\u673a\u4e4b\u95f4\u521b\u5efa\u5b89\u5168\u9ad8\u6548\u7684\u901a\u4fe1\u901a\u9053\u3002\u672c\u6587\u6df1\u5165\u63a2\u8ba8 GRE \u7684\u7ec6\u8282\u53ca\u5176\u5728\u4ee3\u7406\u670d\u52a1\u5668\u6280\u672f\u9886\u57df\u7684\u91cd\u8981\u6027\uff0c\u91cd\u70b9\u4ecb\u7ecd\u5176\u5386\u53f2\u3001\u7ed3\u6784\u3001\u529f\u80fd\u3001\u7c7b\u578b\u3001\u5e94\u7528\u548c\u672a\u6765\u524d\u666f\u3002<\/p>\n<h2>\u901a\u7528\u8def\u7531\u5c01\u88c5\u7684\u8d77\u6e90\u5386\u53f2\u548c\u9996\u6b21\u63d0\u53ca<\/h2>\n<p>\u901a\u7528\u8def\u7531\u5c01\u88c5\u7684\u6982\u5ff5\u6700\u521d\u7531 Tony Li \u548c Paul Traina \u4e8e 1994 \u5e74\u5728 RFC 1701 \u548c RFC 1702 \u4e2d\u63d0\u51fa\u3002\u8fd9\u4e9b RFC \u5f15\u5165\u4e86 GRE\uff0c\u4f5c\u4e3a\u4e00\u79cd\u5141\u8bb8\u5728 IP \u7f51\u7edc\u4e0a\u5c01\u88c5\u591a\u4e2a\u7f51\u7edc\u5c42\u534f\u8bae\u7684\u673a\u5236\u3002GRE \u7684\u4e3b\u8981\u8bbe\u8ba1\u76ee\u7684\u662f\u5728\u516c\u5171\u4e92\u8054\u7f51\u4e0a\u521b\u5efa\u865a\u62df\u4e13\u7528\u7f51\u7edc\uff0c\u4fc3\u8fdb\u5730\u7406\u5206\u5e03\u7f51\u7edc\u4e4b\u95f4\u7684\u5b89\u5168\u548c\u79c1\u5bc6\u901a\u4fe1\u3002<\/p>\n<h2>\u6709\u5173\u901a\u7528\u8def\u7531\u5c01\u88c5\u7684\u8be6\u7ec6\u4fe1\u606f<\/h2>\n<p>GRE \u7684\u5de5\u4f5c\u539f\u7406\u662f\u5c06\u6765\u81ea\u4e00\u79cd\u7f51\u7edc\u534f\u8bae\uff08\u4f8b\u5982 IPv4\u3001IPv6 \u6216 IPX\uff09\u7684\u6570\u636e\u5305\u5c01\u88c5\u5728 IP \u6570\u636e\u5305\u4e2d\uff0cIP \u6570\u636e\u5305\u5145\u5f53\u8fd9\u4e9b\u5c01\u88c5\u6570\u636e\u5305\u7684\u4f20\u9001\u673a\u5236\u3002\u6b64\u5c01\u88c5\u8fc7\u7a0b\u5141\u8bb8\u5728\u4e24\u4e2a\u7aef\u70b9\u4e4b\u95f4\u521b\u5efa\u96a7\u9053\uff0c\u5e76\u5c06\u539f\u59cb\u6570\u636e\u5305\u4fdd\u7559\u4e3a\u6709\u6548\u8d1f\u8f7d\u5e76\u901a\u8fc7\u4e2d\u95f4\u7f51\u7edc\u53d1\u9001\u3002\u5230\u8fbe\u7aef\u70b9\u540e\uff0cGRE \u6570\u636e\u5305\u5c06\u88ab\u89e3\u5c01\u88c5\uff0c\u539f\u59cb\u6570\u636e\u5305\u5c06\u8f6c\u53d1\u5230\u5176\u9884\u671f\u76ee\u7684\u5730\u3002<\/p>\n<h2>\u901a\u7528\u8def\u7531\u5c01\u88c5\u7684\u5185\u90e8\u7ed3\u6784\u2014\u2014GRE\u7684\u5de5\u4f5c\u539f\u7406<\/h2>\n<p>GRE \u6570\u636e\u5305\u7684\u5185\u90e8\u7ed3\u6784\u7531\u6807\u51c6 IP \u6807\u5934\u548c\u540e\u9762\u7684 GRE \u6807\u5934\u7ec4\u6210\u3002 GRE \u6807\u5934\u5305\u542b\u591a\u4e2a\u5b57\u6bb5\uff0c\u5305\u62ec\uff1a<\/p>\n<ol>\n<li>\n<p><strong>\u534f\u8bae\u7c7b\u578b<\/strong>\uff1a\u8868\u793a GRE \u6570\u636e\u5305\u4e2d\u643a\u5e26\u7684\u6709\u6548\u8f7d\u8377\u7c7b\u578b\u3002\u4f8b\u5982\uff0c\u5b83\u53ef\u4ee5\u6307\u5b9a\u5c01\u88c5\u7684\u6570\u636e\u662f IPv4 \u6570\u636e\u5305\u3001IPv6 \u6570\u636e\u5305\u6216\u4efb\u4f55\u5176\u4ed6\u534f\u8bae\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u94a5\u5319<\/strong>\uff1a\u53ef\u9009\u5b57\u6bb5\uff0c\u53ef\u7528\u4e8e\u8bc6\u522b\u7279\u5b9a\u7684 GRE \u96a7\u9053\u6216\u6dfb\u52a0\u989d\u5916\u4fe1\u606f\u4ee5\u4f9b\u5904\u7406\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u5e8f\u5217\u53f7<\/strong>\uff1a\u53e6\u4e00\u4e2a\u53ef\u9009\u5b57\u6bb5\uff0c\u7528\u4e8e\u5bf9\u6570\u636e\u5305\u8fdb\u884c\u6392\u5e8f\uff0c\u5728\u6570\u636e\u5305\u6392\u5e8f\u81f3\u5173\u91cd\u8981\u7684\u60c5\u51b5\u4e0b\u7279\u522b\u6709\u7528\u3002<\/p>\n<\/li>\n<\/ol>\n<p>\u901a\u8fc7\u5229\u7528\u8fd9\u4e9b\u5b57\u6bb5\uff0cGRE \u53ef\u4ee5\u5c01\u88c5\u591a\u79cd\u534f\u8bae\uff0c\u5e2e\u52a9\u5efa\u7acb\u70b9\u5bf9\u70b9\u6216\u591a\u70b9\u5bf9\u591a\u70b9\u7684\u901a\u4fe1\u901a\u9053\u3002<\/p>\n<h2>\u901a\u7528\u8def\u7531\u5c01\u88c5\u5173\u952e\u7279\u6027\u5206\u6790<\/h2>\n<p>GRE \u7684\u4e3b\u8981\u7279\u6027\u4f7f\u5b83\u6210\u4e3a\u7f51\u7edc\u548c\u4ee3\u7406\u670d\u52a1\u5668\u73af\u5883\u4e2d\u6709\u4ef7\u503c\u7684\u5de5\u5177\uff0c\u5305\u62ec\uff1a<\/p>\n<ol>\n<li>\n<p><strong>\u591a\u529f\u80fd\u6027<\/strong>\uff1aGRE \u80fd\u591f\u5c01\u88c5\u5404\u79cd\u7f51\u7edc\u534f\u8bae\uff0c\u4f7f\u5176\u5177\u6709\u901a\u7528\u6027\uff0c\u80fd\u591f\u9002\u5e94\u4e0d\u540c\u7684\u7ec4\u7f51\u573a\u666f\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u5b89\u5168<\/strong>\uff1aGRE \u901a\u8fc7\u5c06\u654f\u611f\u6570\u636e\u5c01\u88c5\u5728\u53e6\u4e00\u4e2a\u6570\u636e\u5305\u4e2d\u6765\u63d0\u4f9b\u4e00\u5b9a\u7a0b\u5ea6\u7684\u5b89\u5168\u6027\uff0c\u4ece\u800c\u4f7f\u672a\u7ecf\u6388\u6743\u7684\u5b9e\u4f53\u66f4\u96be\u62e6\u622a\u6216\u7be1\u6539\u539f\u59cb\u6709\u6548\u8d1f\u8f7d\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u96a7\u9053\u6280\u672f<\/strong>\uff1aGRE \u7684\u96a7\u9053\u65b9\u6cd5\u5141\u8bb8\u5728\u516c\u5171\u4e92\u8054\u7f51\u4e0a\u521b\u5efa\u865a\u62df\u4e13\u7528\u7f51\u7edc\uff0c\u4ece\u800c\u5728\u8fdc\u7a0b\u7f51\u7edc\u4e4b\u95f4\u63d0\u4f9b\u5b89\u5168\u8fde\u63a5\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u8def\u7531\u7075\u6d3b\u6027<\/strong>\uff1aGRE \u4e0d\u4f9d\u8d56\u4e8e\u7279\u5b9a\u7684\u8def\u7531\u534f\u8bae\uff0c\u4f7f\u5176\u80fd\u591f\u517c\u5bb9\u4e0d\u540c\u7684\u8def\u7531\u57fa\u7840\u8bbe\u65bd\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u53ef\u6269\u5c55\u6027<\/strong>\uff1aGRE \u7684\u7b80\u5355\u8bbe\u8ba1\u548c\u7075\u6d3b\u6027\u4f7f\u5176\u5177\u6709\u53ef\u6269\u5c55\u6027\uff0c\u9002\u5408\u5927\u89c4\u6a21\u7f51\u7edc\u90e8\u7f72\u3002<\/p>\n<\/li>\n<\/ol>\n<h2>\u901a\u7528\u8def\u7531\u5c01\u88c5\u7684\u7c7b\u578b<\/h2>\n<p>GRE\u5c01\u88c5\u4e3b\u8981\u6709\u4e24\u79cd\u7c7b\u578b\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th><strong>\u7c7b\u578b<\/strong><\/th>\n<th><strong>\u63cf\u8ff0<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>IP \u4e0a\u7684 GRE<\/strong><\/td>\n<td>GRE \u6570\u636e\u5305\u901a\u8fc7 IP \u7f51\u7edc\u4f20\u9001\u7684\u6700\u5e38\u89c1\u7c7b\u578b\u3002\u8fd9\u4f7f\u5f97\u80fd\u591f\u5c01\u88c5\u5404\u79cd\u7f51\u7edc\u534f\u8bae\u3002<\/td>\n<\/tr>\n<tr>\n<td><strong>IPv6 \u4e0a\u7684 GRE<\/strong><\/td>\n<td>\u4f7f\u7528 IPv6 \u4f5c\u4e3a GRE \u6570\u636e\u5305\u4f20\u8f93\u534f\u8bae\u7684\u53d8\u4f53\u3002\u8fd9\u4f7f\u5f97 GRE \u80fd\u591f\u5728 IPv6 \u7f51\u7edc\u4e0a\u8fd0\u884c\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u901a\u7528\u8def\u7531\u5c01\u88c5\u7684\u4f7f\u7528\u65b9\u6cd5\u3001\u4f7f\u7528\u4e2d\u9047\u5230\u7684\u95ee\u9898\u53ca\u89e3\u51b3\u65b9\u6848<\/h2>\n<p>GRE \u53ef\u5e94\u7528\u4e8e\u5404\u79cd\u7f51\u7edc\u573a\u666f\uff0c\u5305\u62ec\uff1a<\/p>\n<ol>\n<li>\n<p><strong>\u865a\u62df\u4e13\u7528\u7f51\u7edc (VPN)<\/strong>\uff1aGRE \u7528\u4e8e\u5728\u8fdc\u7a0b\u529e\u516c\u5ba4\u4e4b\u95f4\u521b\u5efa\u5b89\u5168\u7684\u901a\u4fe1\u901a\u9053\uff0c\u4f7f\u5b83\u4eec\u80fd\u591f\u50cf\u76f4\u63a5\u8fde\u63a5\u4e00\u6837\u8fdb\u884c\u901a\u4fe1\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u591a\u64ad\u6d41\u91cf\u8f6c\u53d1<\/strong>\uff1aGRE \u53ef\u7528\u4e8e\u5728\u542f\u7528\u591a\u64ad\u7684\u7f51\u7edc\u4e4b\u95f4\u4f20\u8f93\u591a\u64ad\u6d41\u91cf\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u8986\u76d6\u7f51\u7edc<\/strong>\uff1aGRE \u53ef\u4ee5\u5728\u73b0\u6709\u57fa\u7840\u8bbe\u65bd\u4e0a\u521b\u5efa\u8986\u76d6\u7f51\u7edc\uff0c\u4ece\u800c\u4fc3\u8fdb\u53ef\u6269\u5c55\u4e14\u7075\u6d3b\u7684\u7f51\u7edc\u62d3\u6251\u3002<\/p>\n<\/li>\n<\/ol>\n<p>\u7136\u800c\uff0c\u4f7f\u7528 GRE \u5b58\u5728\u4e00\u4e9b\u6311\u6218\uff0c\u5305\u62ec\uff1a<\/p>\n<ul>\n<li>\n<p><strong>\u9ad8\u67b6<\/strong>\uff1aGRE \u5f15\u5165\u4e86\u989d\u5916\u7684\u6807\u5934\u4fe1\u606f\uff0c\u589e\u52a0\u4e86\u603b\u4f53\u6570\u636e\u5305\u5927\u5c0f\u5e76\u53ef\u80fd\u5f71\u54cd\u7f51\u7edc\u6027\u80fd\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u5b89\u5168<\/strong>\uff1a\u867d\u7136 GRE \u63d0\u4f9b\u4e86\u4e00\u5b9a\u7a0b\u5ea6\u7684\u5b89\u5168\u6027\uff0c\u4f46\u53ef\u80fd\u9700\u8981\u989d\u5916\u7684\u52a0\u5bc6\u548c\u8eab\u4efd\u9a8c\u8bc1\u673a\u5236\u6765\u786e\u4fdd\u4f20\u8f93\u6570\u636e\u7684\u673a\u5bc6\u6027\u548c\u5b8c\u6574\u6027\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u517c\u5bb9\u6027<\/strong>\uff1a\u67d0\u4e9b\u9632\u706b\u5899\u548c\u8def\u7531\u5668\u53ef\u80fd\u4e0d\u5b8c\u5168\u652f\u6301 GRE\uff0c\u4ece\u800c\u5bfc\u81f4\u7f51\u7edc\u4e92\u64cd\u4f5c\u6027\u65b9\u9762\u5b58\u5728\u6f5c\u5728\u95ee\u9898\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e9b\u95ee\u9898\uff0c\u7f51\u7edc\u7ba1\u7406\u5458\u53ef\u4ee5\u5b9e\u65bd\u4f18\u5316\uff0c\u4f8b\u5982\u4f7f\u7528\u786c\u4ef6\u52a0\u901f\u7684GRE\u8def\u7531\u5668\u3001\u91c7\u7528IPsec\u7b49\u52a0\u5bc6\u534f\u8bae\u4ee5\u53ca\u786e\u4fdd\u4e0e\u7f51\u7edc\u8bbe\u5907\u7684\u517c\u5bb9\u6027\u3002<\/p>\n<h2>\u4e3b\u8981\u7279\u70b9\u53ca\u4e0e\u540c\u7c7b\u672f\u8bed\u7684\u5176\u4ed6\u6bd4\u8f83<\/h2>\n<table>\n<thead>\n<tr>\n<th><strong>\u7279\u5f81<\/strong><\/th>\n<th><strong>GRE<\/strong><\/th>\n<th><strong>\u7f51\u7edc\u5b89\u5168\u534f\u8bae<\/strong><\/th>\n<th><strong>L2TP<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>\u534f\u8bae\u7c7b\u578b<\/strong><\/td>\n<td>\u96a7\u9053\u534f\u8bae<\/td>\n<td>\u5b89\u5168\u534f\u8bae<\/td>\n<td>\u96a7\u9053\u534f\u8bae<\/td>\n<\/tr>\n<tr>\n<td><strong>\u5b89\u5168<\/strong><\/td>\n<td>\u4e3a\u4e86\u5b89\u5168\u9700\u8981\u989d\u5916\u7684\u52a0\u5bc6<\/td>\n<td>\u63d0\u4f9b\u52a0\u5bc6\u548c\u8eab\u4efd\u9a8c\u8bc1<\/td>\n<td>\u652f\u6301\u52a0\u5bc6\u548c\u8ba4\u8bc1<\/td>\n<\/tr>\n<tr>\n<td><strong>\u652f\u6301\u7684\u534f\u8bae<\/strong><\/td>\n<td>\u53ef\u5c01\u88c5\u591a\u79cd\u7f51\u7edc\u534f\u8bae<\/td>\n<td>\u4ec5\u9650\u4e8e\u57fa\u4e8e IP \u7684\u534f\u8bae<\/td>\n<td>\u4e3b\u8981\u7528\u4e8e\u96a7\u9053 IP \u6d41\u91cf<\/td>\n<\/tr>\n<tr>\n<td><strong>\u8def\u7531\u4f9d\u8d56<\/strong><\/td>\n<td>\u72ec\u7acb\u4e8e\u8def\u7531\u534f\u8bae<\/td>\n<td>\u9700\u8981\u5b89\u5168\u5173\u8054\u7684\u652f\u6301<\/td>\n<td>\u72ec\u7acb\u4e8e\u8def\u7531\u534f\u8bae<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u4e0e\u901a\u7528\u8def\u7531\u5c01\u88c5\u76f8\u5173\u7684\u672a\u6765\u524d\u666f\u548c\u6280\u672f<\/h2>\n<p>\u968f\u7740\u6280\u672f\u7684\u4e0d\u65ad\u53d1\u5c55\uff0cGRE \u53ef\u80fd\u4ecd\u7136\u662f\u7f51\u7edc\u548c\u4ee3\u7406\u670d\u52a1\u5668\u6280\u672f\u4e2d\u76f8\u5173\u4e14\u6709\u4ef7\u503c\u7684\u7ec4\u6210\u90e8\u5206\u3002\u5b83\u7684\u7075\u6d3b\u6027\u548c\u5c01\u88c5\u5404\u79cd\u7f51\u7edc\u534f\u8bae\u7684\u80fd\u529b\u4f7f\u5176\u9002\u5408\u65b0\u5174\u8d8b\u52bf\uff0c\u4f8b\u5982\uff1a<\/p>\n<ol>\n<li>\n<p><strong>\u8fb9\u7f18\u8ba1\u7b97<\/strong>\uff1aGRE \u53ef\u4ee5\u4fc3\u8fdb\u8fb9\u7f18\u8ba1\u7b97\u73af\u5883\u4e2d\u8fb9\u7f18\u8bbe\u5907\u548c\u96c6\u4e2d\u5f0f\u670d\u52a1\u5668\u4e4b\u95f4\u7684\u5b89\u5168\u901a\u4fe1\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u7269\u8054\u7f51\u8fde\u63a5<\/strong>\uff1aGRE \u53ef\u80fd\u4f1a\u5728\u7269\u8054\u7f51\u7f51\u7edc\u4e2d\u63d0\u4f9b\u5b89\u5168\u901a\u4fe1\u901a\u9053\u65b9\u9762\u53d1\u6325\u4f5c\u7528\uff0c\u5c24\u5176\u662f\u5728\u6d89\u53ca\u4e0d\u540c\u534f\u8bae\u65f6\u3002<\/p>\n<\/li>\n<li>\n<p><strong>5G \u7f51\u7edc<\/strong>\uff1aGRE \u53ef\u7528\u4e8e\u5728\u76db\u884c\u591a\u79cd\u901a\u4fe1\u534f\u8bae\u7684 5G \u7f51\u7edc\u4e2d\u5b9e\u73b0\u5b89\u5168\u901a\u4fe1\u548c\u9ad8\u6548\u6570\u636e\u4f20\u8f93\u3002<\/p>\n<\/li>\n<\/ol>\n<h2>\u5982\u4f55\u4f7f\u7528\u4ee3\u7406\u670d\u52a1\u5668\u6216\u5982\u4f55\u5c06\u4ee3\u7406\u670d\u52a1\u5668\u4e0e\u901a\u7528\u8def\u7531\u5c01\u88c5\u5173\u8054<\/h2>\n<p>\u4ee3\u7406\u670d\u52a1\u5668\u5728\u589e\u5f3a\u7f51\u7edc\u901a\u4fe1\u7684\u9690\u79c1\u6027\u3001\u5b89\u5168\u6027\u548c\u6027\u80fd\u65b9\u9762\u53d1\u6325\u7740\u81f3\u5173\u91cd\u8981\u7684\u4f5c\u7528\u3002\u901a\u8fc7\u5c06 GRE \u4e0e\u4ee3\u7406\u670d\u52a1\u5668\u6280\u672f\u76f8\u7ed3\u5408\uff0c\u53ef\u4ee5\u5b9e\u73b0\u4ee5\u4e0b\u51e0\u4e2a\u597d\u5904\uff1a<\/p>\n<ol>\n<li>\n<p><strong>\u4ee3\u7406 VPN<\/strong>\uff1aGRE \u53ef\u7528\u4e8e\u901a\u8fc7\u4ee3\u7406\u670d\u52a1\u5668\u5efa\u7acb VPN \u8fde\u63a5\uff0c\u5141\u8bb8\u7528\u6237\u8bbf\u95ee\u53d7\u9650\u5236\u7684\u5185\u5bb9\uff0c\u540c\u65f6\u53d7\u76ca\u4e8e\u8fd9\u4e24\u79cd\u6280\u672f\u7684\u5b89\u5168\u548c\u9690\u79c1\u529f\u80fd\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u8d1f\u8f7d\u5747\u8861<\/strong>\uff1aGRE \u53ef\u4ee5\u4fc3\u8fdb\u4ee3\u7406\u670d\u52a1\u5668\u57fa\u7840\u8bbe\u65bd\u4e2d\u7684\u8d1f\u8f7d\u5e73\u8861\u548c\u5bb9\u9519\uff0c\u786e\u4fdd\u5e73\u7a33\u9ad8\u6548\u7684\u6d41\u91cf\u5206\u914d\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u5b89\u5168\u901a\u8baf<\/strong>\uff1aGRE \u5728\u4ee3\u7406\u670d\u52a1\u5668\u548c\u5ba2\u6237\u7aef\u4e4b\u95f4\u542f\u7528\u52a0\u5bc6\u96a7\u9053\uff0c\u589e\u5f3a\u6570\u636e\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u7684\u6570\u636e\u9690\u79c1\u548c\u5b89\u5168\u6027\u3002<\/p>\n<\/li>\n<\/ol>\n<h2>\u76f8\u5173\u94fe\u63a5<\/h2>\n<ul>\n<li><a href=\"https:\/\/tools.ietf.org\/html\/rfc1701\" target=\"_new\" rel=\"noopener nofollow\">RFC 1701<\/a> \u2013 \u901a\u7528\u8def\u7531\u5c01\u88c5 (GRE)<\/li>\n<li><a href=\"https:\/\/tools.ietf.org\/html\/rfc1702\" target=\"_new\" rel=\"noopener nofollow\">RFC 1702<\/a> \u2013 IPv4 \u7f51\u7edc\u4e0a\u7684\u901a\u7528\u8def\u7531\u5c01\u88c5<\/li>\n<\/ul>\n<p>\u901a\u8fc7\u4e86\u89e3\u901a\u7528\u8def\u7531\u5c01\u88c5\u7684\u590d\u6742\u6027\u548c\u5e94\u7528\uff0c\u7f51\u7edc\u4e13\u4e1a\u4eba\u58eb\u548c OneProxy \u7b49\u4ee3\u7406\u670d\u52a1\u5668\u63d0\u4f9b\u5546\u53ef\u4ee5\u4f18\u5316\u5176\u670d\u52a1\u5e76\u4fdd\u6301\u5728\u73b0\u4ee3\u7f51\u7edc\u901a\u4fe1\u7684\u6700\u524d\u6cbf\u3002 GRE \u7684\u591a\u529f\u80fd\u6027\u548c\u9002\u5e94\u6027\u4f7f\u5176\u6210\u4e3a\u6ee1\u8db3\u4e0d\u65ad\u53d8\u5316\u7684\u5b89\u5168\u9ad8\u6548\u6570\u636e\u4f20\u8f93\u9700\u6c42\u7684\u5b9d\u8d35\u5de5\u5177\u3002<\/p>","protected":false},"featured_media":477336,"menu_order":0,"template":"","meta":{"_acf_changed":false,"content-type":"","inline_featured_image":false,"footnotes":""},"class_list":["post-477335","wiki","type-wiki","status-publish","has-post-thumbnail","hentry"],"acf":{"faq_title":"Frequently Asked Questions about <mark>Generic Routing Encapsulation (GRE) in Proxy Server Technology<\/mark>","faq_items":[{"question":"<strong>What is Generic Routing Encapsulation (GRE) and how is it used in networking?<\/strong>","answer":"<p>Generic Routing Encapsulation (GRE) is a tunneling protocol used in computer networking to encapsulate one or more network packets inside another IP packet. It allows the creation of secure communication channels between different networks or hosts by encapsulating diverse network protocols within IP packets. GRE finds applications in Virtual Private Networks (VPNs), multicast traffic forwarding, and overlay networks, providing versatility and flexibility in networking environments.<\/p>"},{"question":"<strong>When and by whom was GRE first proposed?<\/strong>","answer":"<p>GRE was first proposed in 1994 by Tony Li and Paul Traina in RFC 1701 and RFC 1702. These RFCs introduced GRE as a mechanism to encapsulate multiple network layer protocols over IP networks, primarily to enable the creation of virtual private networks over the public Internet.<\/p>"},{"question":"<strong>How does Generic Routing Encapsulation (GRE) work internally?<\/strong>","answer":"<p>GRE works by encapsulating packets from one network protocol, such as IPv4, IPv6, or IPX, within IP packets. The GRE header contains fields like Protocol Type, Key, and Sequence Number, allowing for the identification of the encapsulated payload and facilitating point-to-point or multipoint-to-multipoint communication channels.<\/p>"},{"question":"<strong>What are the key features of GRE?<\/strong>","answer":"<p>The key features of GRE include its versatility in encapsulating various network protocols, providing a certain level of security, enabling the creation of virtual private networks, compatibility with different routing infrastructures, and scalability for large-scale network deployments.<\/p>"},{"question":"<strong>What are the different types of Generic Routing Encapsulation?<\/strong>","answer":"<p>There are two main types of GRE encapsulation:<\/p><ol><li>GRE over IP: The most common type where GRE packets are carried over an IP network, allowing the encapsulation of various network protocols.<\/li><li>GRE over IPv6: A variant that uses IPv6 as the transport protocol for GRE packets, enabling GRE to operate over IPv6 networks.<\/li><\/ol>"},{"question":"<strong>How can GRE be used with proxy servers and what benefits does it offer?<\/strong>","answer":"<p>GRE can be combined with proxy server technology to establish VPN connections over proxies, providing users access to restricted content with enhanced security and privacy. It also facilitates load balancing, fault tolerance, and secure communication between proxy servers and clients.<\/p>"},{"question":"<strong>What challenges may arise when using GRE, and how can they be addressed?<\/strong>","answer":"<p>Challenges related to GRE usage include increased overhead due to additional header information, security concerns that may require additional encryption, and potential compatibility issues with some firewalls and routers. These challenges can be addressed by using hardware-accelerated GRE routers, implementing encryption protocols like IPsec, and ensuring compatibility with network devices.<\/p>"},{"question":"<strong>What are the future perspectives of Generic Routing Encapsulation (GRE) in networking?<\/strong>","answer":"<p>GRE is likely to remain relevant in networking and proxy server technologies, especially in emerging trends like edge computing, IoT connectivity, and 5G networking. Its versatility and ability to encapsulate diverse network protocols make it suitable for future network communication needs.<\/p>"},{"question":"<strong>Where can I find more information about Generic Routing Encapsulation (GRE)?<\/strong>","answer":"<p>For more information about GRE, you can refer to the following resources:<\/p><ul><li><a href=\"https:\/\/tools.ietf.org\/html\/rfc1701\" target=\"_new\">RFC 1701<\/a> - Generic Routing Encapsulation (GRE)<\/li><li><a href=\"https:\/\/tools.ietf.org\/html\/rfc1702\" target=\"_new\">RFC 1702<\/a> - Generic Routing Encapsulation over IPv4 networks<\/li><\/ul><p>Explore the power and potential of GRE in networking and proxy server technology with OneProxy's comprehensive encyclopedia article!<\/p>"}]},"_links":{"self":[{"href":"https:\/\/oneproxy.pro\/cn\/wp-json\/wp\/v2\/wiki\/477335","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oneproxy.pro\/cn\/wp-json\/wp\/v2\/wiki"}],"about":[{"href":"https:\/\/oneproxy.pro\/cn\/wp-json\/wp\/v2\/types\/wiki"}],"version-history":[{"count":0,"href":"https:\/\/oneproxy.pro\/cn\/wp-json\/wp\/v2\/wiki\/477335\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/oneproxy.pro\/cn\/wp-json\/wp\/v2\/media\/477336"}],"wp:attachment":[{"href":"https:\/\/oneproxy.pro\/cn\/wp-json\/wp\/v2\/media?parent=477335"}],"curies":[{"name":"\u53ef\u6e7f\u6027\u7c89\u5242","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}