{"id":5852,"date":"2022-01-09T15:18:29","date_gmt":"2022-01-09T23:18:29","guid":{"rendered":"https:\/\/www.xh86.me\/?p=5852"},"modified":"2022-01-09T15:18:29","modified_gmt":"2022-01-09T23:18:29","slug":"ikev2-%e5%ae%a2%e6%88%b7%e7%ab%afmtu%e5%bc%95%e8%b5%b7%e7%9a%84%e7%bd%91%e7%bb%9c%e6%95%85%e9%9a%9c","status":"publish","type":"post","link":"https:\/\/www.xh86.me\/?p=5852","title":{"rendered":"ikev2 \u5ba2\u6237\u7aefmtu\u5f15\u8d77\u7684\u7f51\u7edc\u6545\u969c"},"content":{"rendered":"<p>\u7f51\u7edc\u62d3\u6251\uff1a<\/p>\n<blockquote>\n<pre><code>                  InWall Internet\r\n                          |\r\n                          | \r\n     ikev2 \u5ba2\u6237\u7aef-------\u8def\u7531\u5668-----openvpn mtu1400-----VPS-------OutWall Internet\r\n                          |\r\n                          |\r\n                     ikev2\u670d\u52a1\u5668\r\n<\/code><\/pre>\n<\/blockquote>\n<p>\u6545\u969c\u73b0\u8c61\uff1a<br \/>\nios\u7684ikev2\u5ba2\u6237\u7aef\u6253\u5f00\u5883\u5185\u5916\u7f51\u7ad9\u6b63\u5e38<br \/>\nwindows\u7684ikev2\u5ba2\u6237\u7aef\u5883\u5185\u7f51\u7ad9\u6b63\u5e38\uff0c\u4e0d\u80fd\u6253\u5f00\u5883\u5916https\u7f51\u7ad9\uff0c\u5883\u5916http\u7f51\u7ad9\u5927\u90e8\u5206\u8d44\u6e90\u52a0\u8f7d\u4e0d\u5168<\/p>\n<p>\u6392\u67e5\uff1a<br \/>\nwindows\u8fde\u63a5vpn\u540e\uff0c\u4f7f\u7528ipip.net\u67e5\u770b\u51fa\u53e3\u516c\u7f51ip\uff0c\u53d1\u73b0\u5df2\u7ecf\u662fikev2 vpn\u670d\u52a1\u5668\u51fa\u53e3ip\uff0cping \u5883\u5916ip\u662f\u901a\u7684\uff0ctelnet\u68c0\u67e5443\u7aef\u53e3\u662f\u901a\uff0ccurl\u6d4b\u8bd5\u53d1\u73b0\u5361\u5728\u8bc1\u4e66\u534f\u5546<br \/>\n\u636e\u6b64\u57fa\u672c\u53ef\u4ee5\u786e\u5b9a\u662fmtu\u5f15\u8d77\u7684\u95ee\u9898\uff0c\u4f7f\u7528\u547d\u4ee4ping -l 1370 -f \u5883\u5916\u7f51\u5740\uff0c\u4e0d\u65ad\u8c03\u6574\u5305\u5927\u5c0f\uff0c\u53d1\u73b0\u6700\u5927mtu\u662f1370<\/p>\n<p>\u89e3\u51b3\u529e\u6cd5\uff1a<br \/>\n\u8fde\u63a5vpn\u540e\uff0c\u4f7f\u7528\u547d\u4ee4<br \/>\nnetsh interface ipv4 set subinterface &#8220;vpn\u540d\u79f0&#8221; mtu=1350 store=persistent<br \/>\n\u4fee\u6539windows ikev2 \u865a\u62df\u7f51\u5361mtu\u4e3a1350<br \/>\n\u95ee\u9898\u89e3\u51b3<\/p>\n<p>\u603b\u7ed3\uff1a<br \/>\n\u4e00\u5f00\u59cb\u4f7f\u7528\u7684\u662fios\u7684ikev2\u5ba2\u6237\u7aef\uff0c\u90fd\u6ca1\u6709\u51fa\u73b0\u95ee\u9898\uff0c\u67e5\u627e\u8d44\u6599\u53d1\u73b0\u82f9\u679c\u7cfb\u7684ikev2\u5ba2\u6237\u7aef\u9ed8\u8ba4mtu\u662f1280\uff0c\u82f9\u679c\u9009\u62e9\u8fd9\u4e2amtu\u5927\u5c0f\u8fd8\u6709\u4e00\u4e2a\u539f\u56e0\u662fipv6\u7684\u6700\u5c0f\u5305\u5927\u5c0f\u662f1280<br \/>\nikev2\u670d\u52a1\u5668strongswan\u5e94\u8be5\u662f\u53ef\u4ee5\u8bbe\u7f6emtu\u7684\uff0c\u540e\u7eed\u66f4\u65b0\u3002<\/p>\n<p>\u9644\uff1a<br \/>\nstrongSwan Android client: MTU 1400<br \/>\nMacOS \/ iOS built-in IPsec client: MTU 1280<br \/>\nWindows built-in IPsec client: MTU 1400<br \/>\nCisco VPN client: MTU 1300<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7f51\u7edc\u62d3\u6251\uff1a InWall Internet | | ikev2 \u5ba2\u6237\u7aef&#8212;&#8212;-\u8def\u7531\u5668&#8212;&#8211;openv [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-5852","post","type-post","status-publish","format-standard","hentry","category-cisco"],"_links":{"self":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/5852","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5852"}],"version-history":[{"count":1,"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/5852\/revisions"}],"predecessor-version":[{"id":5853,"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/5852\/revisions\/5853"}],"wp:attachment":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5852"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5852"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5852"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}