{"id":881,"date":"2024-10-09T16:44:21","date_gmt":"2024-10-09T08:44:21","guid":{"rendered":"https:\/\/www.ygcloud.com\/knowledge\/?p=881"},"modified":"2024-10-09T16:44:21","modified_gmt":"2024-10-09T08:44:21","slug":"ipv6%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9fipv4%e5%92%8cipv6%e8%af%a5%e6%80%8e%e4%b9%88%e9%80%89%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.ygcloud.com\/knowledge\/881\/","title":{"rendered":"IPv6\u662f\u4ec0\u4e48\uff1fIPv4\u548cIPv6\u8be5\u600e\u4e48\u9009\uff1f"},"content":{"rendered":"<p>\u5927\u5bb6\u597d\uff0c\u6211\u662f\u4e00\u540d\u957f\u671f\u4f7f\u7528\u6d77\u5916VPS\u7684\u7528\u6237\u3002\u5728\u5404\u79cd\u4e1a\u52a1\u573a\u666f\u4e0b\uff0c\u6211\u5c1d\u8bd5\u8fc7\u8bb8\u591a\u4e0d\u540c\u7684\u5e73\u53f0\u548c\u914d\u7f6e\uff0c\u4e5f\u79ef\u7d2f\u4e86\u4e00\u4e9b\u7ecf\u9a8c\u3002\u4eca\u5929\uff0c\u6211\u60f3\u548c\u5927\u5bb6\u5206\u4eab\u4e00\u4e0b\u5173\u4e8eIPv4\u548cIPv6\u7684\u77e5\u8bc6\uff0c\u4ee5\u53ca\u5728\u4e0d\u540c\u60c5\u51b5\u4e0b\u8be5\u5982\u4f55\u9009\u62e9\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-882\" src=\"https:\/\/www.ygcloud.com\/knowledge\/wp-content\/uploads\/2024\/10\/8fbdbf5573b18fa.png\" alt=\"\" width=\"600\" height=\"596\" srcset=\"https:\/\/www.ygcloud.com\/knowledge\/wp-content\/uploads\/2024\/10\/8fbdbf5573b18fa.png 796w, https:\/\/www.ygcloud.com\/knowledge\/wp-content\/uploads\/2024\/10\/8fbdbf5573b18fa-300x298.png 300w, https:\/\/www.ygcloud.com\/knowledge\/wp-content\/uploads\/2024\/10\/8fbdbf5573b18fa-150x150.png 150w, https:\/\/www.ygcloud.com\/knowledge\/wp-content\/uploads\/2024\/10\/8fbdbf5573b18fa-768x763.png 768w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<h2>\u4e00\u3001IPv4\u4e0eIPv6\u7684\u57fa\u7840\u77e5\u8bc6<\/h2>\n<p><strong>1.1 \u4ec0\u4e48\u662fIPv4\uff1f<\/strong><\/p>\n<p>IPv4\uff0c\u5373\u4e92\u8054\u7f51\u534f\u8bae\u7b2c\u56db\u7248\uff0c\u662f\u76ee\u524d\u5e7f\u6cdb\u4f7f\u7528\u7684\u7f51\u7edc\u534f\u8bae\u3002\u5b83\u91c7\u752832\u4f4d\u5730\u5740\u683c\u5f0f\uff0c\u7406\u8bba\u4e0a\u80fd\u63d0\u4f9b\u7ea643\u4ebf\u4e2a\u552f\u4e00\u7684IP\u5730\u5740\u3002\u968f\u7740\u4e92\u8054\u7f51\u7684\u8fc5\u731b\u53d1\u5c55\uff0cIPv4\u5730\u5740\u8d44\u6e90\u9010\u6e10\u67af\u7aed\uff0c\u5c31\u50cf\u57ce\u5e02\u91cc\u7684\u8f66\u4f4d\u8d8a\u6765\u8d8a\u96be\u627e\u3002<\/p>\n<p><strong>1.2 \u4ec0\u4e48\u662fIPv6\uff1f<\/strong><\/p>\n<p>\u4e3a\u4e86\u89e3\u51b3IPv4\u5730\u5740\u8017\u5c3d\u7684\u95ee\u9898\uff0cIPv6\uff08\u4e92\u8054\u7f51\u534f\u8bae\u7b2c\u516d\u7248\uff09\u5e94\u8fd0\u800c\u751f\u3002\u5b83\u91c7\u7528128\u4f4d\u5730\u5740\u683c\u5f0f\uff0c\u5730\u5740\u6570\u91cf\u8fbe\u52302\u7684128\u6b21\u65b9\uff0c\u8fd9\u4e2a\u6570\u5b57\u6709\u591a\u5927\u5462\uff1f\u5927\u5230\u53ef\u4ee5\u7ed9\u5730\u7403\u4e0a\u7684\u6bcf\u4e00\u7c92\u6c99\u5b50\u90fd\u5206\u914d\u6570\u767e\u4e07\u4e2aIP\u5730\u5740\u3002<\/p>\n<h2>\u4e8c\u3001IPv4\u548cIPv6\u7684\u4e3b\u8981\u533a\u522b<\/h2>\n<p>&#8211; \u5730\u5740\u5bb9\u91cf\uff1aIPv4\u7ea6\u670943\u4ebf\u4e2a\u5730\u5740\uff0cIPv6\u5219\u67093.4\u00d710\u768438\u6b21\u65b9\u4e2a\u5730\u5740\u3002<br \/>\n&#8211; \u5730\u5740\u8868\u793a\uff1a<br \/>\nIPv4\uff1a\u70b9\u5206\u5341\u8fdb\u5236\u8868\u793a\uff0c\u4f8b\u5982192.168.0.1\u3002<br \/>\nIPv6\uff1a\u5192\u53f7\u5206\u9694\u7684\u5341\u516d\u8fdb\u5236\u8868\u793a\uff0c\u4f8b\u59822001:0db8:85a3:0000:0000:8a2e:0370:7334\u3002<br \/>\n&#8211; \u7f51\u7edc\u914d\u7f6e\uff1aIPv6\u652f\u6301\u81ea\u52a8\u914d\u7f6e\uff0c\u66f4\u52a0\u65b9\u4fbf\u8bbe\u5907\u63a5\u5165\u7f51\u7edc\u3002<br \/>\n&#8211; \u5b89\u5168\u6027\uff1aIPv6\u5185\u7f6e\u4e86IPSec\u534f\u8bae\uff0c\u589e\u5f3a\u4e86\u6570\u636e\u4f20\u8f93\u7684\u5b89\u5168\u6027\u3002<\/p>\n<h2>\u4e09\u3001\u4e0d\u540c\u4e1a\u52a1\u573a\u666f\u4e0b\u7684\u9009\u62e9<\/h2>\n<p><strong>3.1 \u7f51\u7ad9\u6258\u7ba1<\/strong><\/p>\n<p>\u5982\u679c\u60a8\u7684\u76ee\u6807\u7528\u6237\u4e3b\u8981\u4f7f\u7528IPv4\u7f51\u7edc\uff0c\u90a3\u4e48\u9009\u62e9\u652f\u6301IPv4\u7684VPS\u662f\u5fc5\u8981\u7684\u3002\u76ee\u524d\uff0c\u5927\u90e8\u5206\u7528\u6237\u4ecd\u7136\u4f9d\u8d56IPv4\uff0c\u56e0\u6b64\u786e\u4fdd\u7f51\u7ad9\u5728IPv4\u7f51\u7edc\u4e0b\u53ef\u8bbf\u95ee\u81f3\u5173\u91cd\u8981\u3002\u4e0d\u8fc7\uff0c\u652f\u6301IPv6\u53ef\u4ee5\u63d0\u9ad8\u672a\u6765\u517c\u5bb9\u6027\uff0c\u6bd5\u7adf\u79d1\u6280\u7684\u53d1\u5c55\u603b\u662f\u8d85\u4e4e\u60f3\u8c61\u3002<\/p>\n<p><strong>3.2 \u5927\u89c4\u6a21\u8bbe\u5907\u8fde\u63a5<\/strong><\/p>\n<p>\u5bf9\u4e8e\u9700\u8981\u5927\u91cfIP\u5730\u5740\u7684\u9879\u76ee\uff0c\u4f8b\u5982\u7269\u8054\u7f51\u8bbe\u5907\u8fde\u63a5\u3001\u6570\u636e\u91c7\u96c6\u7b49\uff0cIPv6\u662f\u7406\u60f3\u7684\u9009\u62e9\u3002\u5b83\u5e9e\u5927\u7684\u5730\u5740\u7a7a\u95f4\u53ef\u4ee5\u6ee1\u8db3\u51e0\u4e4e\u65e0\u9650\u7684\u8fde\u63a5\u9700\u6c42\uff0c\u907f\u514d\u4e86IPv4\u5730\u5740\u4e0d\u591f\u7528\u7684\u5c34\u5c2c\u3002<\/p>\n<p><strong>3.3 \u5730\u533a\u8bbf\u95ee\u9650\u5236<\/strong><\/p>\n<p>\u6709\u4e9b\u5730\u533a\u6216\u7f51\u7edc\u73af\u5883\u5bf9IPv4\u6216IPv6\u6709\u7279\u5b9a\u7684\u652f\u6301\u6216\u9650\u5236\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u9700\u8981\u6839\u636e\u76ee\u6807\u5730\u533a\u7684\u7f51\u7edc\u72b6\u51b5\u9009\u62e9\u5408\u9002\u7684IP\u7248\u672c\u3002<\/p>\n<h2>\u56db\u3001\u6d4b\u8bd5VPS\u7684\u7f51\u7edc\u8d28\u91cf<\/h2>\n<p>\u5728\u8d2d\u4e70VPS\u4e4b\u524d\uff0c\u8fdb\u884c\u4e00\u4e9b\u6d4b\u8bd5\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u66f4\u597d\u5730\u4e86\u89e3\u5176\u6027\u80fd\u3002<\/p>\n<p><strong>4.1 Ping\u5ef6\u8fdf\u6d4b\u8bd5<\/strong><\/p>\n<p>\u4f7f\u7528\u201cping\u201d\u547d\u4ee4\u6d4b\u8bd5VPS\u7684\u7f51\u7edc\u5ef6\u8fdf\uff0c\u6570\u503c\u8d8a\u4f4e\uff0c\u7f51\u7edc\u54cd\u5e94\u901f\u5ea6\u8d8a\u5feb\u3002<\/p>\n<pre>ping -c 4 your_vps_ip<\/pre>\n<p><strong>4.2 \u5e26\u5bbd\u6d4b\u8bd5<\/strong><\/p>\n<p>\u5229\u7528\u201ciperf\u201d\u7b49\u5de5\u5177\u6d4b\u8bd5\u7f51\u7edc\u5e26\u5bbd\uff0c\u786e\u4fdd\u6ee1\u8db3\u4e1a\u52a1\u7684\u4f20\u8f93\u9700\u6c42\u3002<\/p>\n<p><strong>4.3 IP\u5f52\u5c5e\u5730\u67e5\u8be2<\/strong><\/p>\n<p>\u901a\u8fc7\u5728\u7ebf\u5de5\u5177\u67e5\u8be2VPS\u7684IP\u5f52\u5c5e\u5730\uff0c\u786e\u8ba4\u5176\u4f4d\u4e8e\u9884\u671f\u7684\u5730\u7406\u4f4d\u7f6e\u3002<\/p>\n<p>&#8211; \u793a\u4f8b\u5de5\u5177\uff1aIPIP.net<\/p>\n<h2>\u4e94\u3001\u8d2d\u4e70VPS\u65f6\u9700\u8981\u6ce8\u610f\u7684\u95ee\u9898<\/h2>\n<p>1. IP\u7c7b\u578b\u652f\u6301\uff1a\u786e\u8ba4VPS\u662f\u5426\u63d0\u4f9bIPv4\u3001IPv6\u6216\u53cc\u6808\u652f\u6301\uff0c\u786e\u4fdd\u7b26\u5408\u4e1a\u52a1\u9700\u6c42\u3002<br \/>\n2. \u7f51\u7edc\u8d28\u91cf\uff1a\u67e5\u770bVPS\u63d0\u4f9b\u5546\u7684\u7f51\u7edc\u72b6\u51b5\uff0c\u662f\u5426\u6709\u4e22\u5305\u3001\u5ef6\u8fdf\u9ad8\u7b49\u95ee\u9898\u3002<br \/>\n3. \u552e\u540e\u670d\u52a1\uff1a\u9009\u62e9\u63d0\u4f9b\u53ca\u65f6\u6280\u672f\u652f\u6301\u7684\u4f9b\u5e94\u5546\uff0c\u65b9\u4fbf\u9047\u5230\u95ee\u9898\u65f6\u8fc5\u901f\u89e3\u51b3\u3002<br \/>\n4. \u4ef7\u683c\u900f\u660e\u5ea6\uff1a\u6ce8\u610f\u662f\u5426\u6709\u9690\u85cf\u8d39\u7528\uff0c\u4f8b\u5982IP\u5730\u5740\u7684\u989d\u5916\u6536\u8d39\u7b49\u3002<br \/>\n5. \u8d44\u6e90\u914d\u7f6e\uff1a\u6839\u636e\u4e1a\u52a1\u9700\u8981\u9009\u62e9\u5408\u9002\u7684CPU\u3001\u5185\u5b58\u548c\u5b58\u50a8\u914d\u7f6e\uff0c\u907f\u514d\u8d44\u6e90\u6d6a\u8d39\u6216\u4e0d\u8db3\u3002<\/p>\n<h2>\u516d\u3001\u65b0\u624b\u9700\u8981\u907f\u514d\u7684\u5751<\/h2>\n<p>&#8211; \u53ea\u5173\u6ce8\u4ef7\u683c\uff0c\u4e0d\u770b\u6027\u80fd\uff1a\u8fc7\u4e8e\u8ffd\u6c42\u4f4e\u4ef7\uff0c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u9009\u62e9\u7684VPS\u6027\u80fd\u4e0d\u8db3\uff0c\u5f71\u54cd\u4e1a\u52a1\u8fd0\u884c\u3002<br \/>\n&#8211; \u5ffd\u7565IP\u652f\u6301\u7c7b\u578b\uff1a\u672a\u786e\u8ba4VPS\u652f\u6301\u7684IP\u7248\u672c\uff0c\u5bfc\u81f4\u540e\u7eed\u9700\u8981\u91cd\u65b0\u66f4\u6362\u670d\u52a1\u5546\u3002<br \/>\n&#8211; \u4e0d\u8fdb\u884c\u6d4b\u8bd5\uff1a\u8d2d\u4e70\u524d\u672a\u5bf9VPS\u8fdb\u884c\u57fa\u672c\u7684\u6027\u80fd\u548c\u7f51\u7edc\u6d4b\u8bd5\uff0c\u540e\u7eed\u53ef\u80fd\u51fa\u73b0\u4e0d\u53ef\u9884\u89c1\u7684\u95ee\u9898\u3002<br \/>\n&#8211; \u5ffd\u89c6\u5408\u540c\u6761\u6b3e\uff1a\u672a\u4ed4\u7ec6\u9605\u8bfb\u670d\u52a1\u534f\u8bae\uff0c\u53ef\u80fd\u5728\u9000\u6b3e\u3001\u8d54\u507f\u7b49\u65b9\u9762\u9047\u5230\u9ebb\u70e6\u3002<\/p>\n<h2>\u7ed3\u8bed<\/h2>\n<p>\u9009\u62e9IPv4\u8fd8\u662fIPv6\uff0c\u5173\u952e\u5728\u4e8e\u60a8\u7684\u4e1a\u52a1\u9700\u6c42\u548c\u76ee\u6807\u7528\u6237\u7fa4\u4f53\u3002\u5bf9\u4e8e\u9700\u8981\u5e7f\u6cdb\u517c\u5bb9\u6027\u7684\u4e1a\u52a1\uff0c\u5efa\u8bae\u9009\u62e9\u540c\u65f6\u652f\u6301IPv4\u548cIPv6\u7684VPS\u3002\u5e0c\u671b\u6211\u7684\u5206\u4eab\u80fd\u4e3a\u5927\u5bb6\u5728\u9009\u62e9VPS\u65f6\u63d0\u4f9b\u4e00\u4e9b\u6709\u7528\u7684\u53c2\u8003\u3002<\/p>\n<p>\u5728\u4fe1\u606f\u6280\u672f\u98de\u901f\u53d1\u5c55\u7684\u4eca\u5929\uff0c\u591a\u4e86\u89e3\u4e00\u4e9b\u76f8\u5173\u77e5\u8bc6\uff0c\u603b\u4e0d\u4f1a\u662f\u574f\u4e8b\u3002\u795d\u5927\u5bb6\u90fd\u80fd\u627e\u5230\u6700\u9002\u5408\u81ea\u5df1\u7684VPS\u65b9\u6848\uff0c\u5c11\u8e29\u5751\uff0c\u591a\u7701\u5fc3\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5927\u5bb6\u597d\uff0c\u6211\u662f\u4e00\u540d\u957f\u671f\u4f7f\u7528\u6d77\u5916VPS\u7684\u7528\u6237\u3002\u5728\u5404\u79cd\u4e1a\u52a1\u573a\u666f\u4e0b\uff0c\u6211\u5c1d\u8bd5\u8fc7\u8bb8\u591a\u4e0d\u540c\u7684\u5e73\u53f0\u548c\u914d\u7f6e\uff0c\u4e5f\u79ef\u7d2f\u4e86\u4e00\u4e9b\u7ecf\u9a8c\u3002\u4eca\u5929\uff0c\u6211\u60f3\u548c\u5927\u5bb6\u5206\u4eab\u4e00\u4e0b\u5173\u4e8eIPv4\u548cIPv6\u7684\u77e5\u8bc6\uff0c\u4ee5\u53ca\u5728\u4e0d\u540c\u60c5\u51b5\u4e0b\u8be5\u5982\u4f55\u9009\u62e9\u3002 \u4e00\u3001IPv4\u4e0eIPv6\u7684\u57fa\u7840\u77e5\u8bc6 1.1 \u4ec0\u4e48\u662f&#8230;<\/p>\n","protected":false},"author":1,"featured_media":882,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[39,14],"tags":[46,20],"topic":[],"class_list":["post-881","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-support","category-security","tag-vps","tag--ip"],"_links":{"self":[{"href":"https:\/\/www.ygcloud.com\/knowledge\/wp-json\/wp\/v2\/posts\/881","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ygcloud.com\/knowledge\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ygcloud.com\/knowledge\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ygcloud.com\/knowledge\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ygcloud.com\/knowledge\/wp-json\/wp\/v2\/comments?post=881"}],"version-history":[{"count":1,"href":"https:\/\/www.ygcloud.com\/knowledge\/wp-json\/wp\/v2\/posts\/881\/revisions"}],"predecessor-version":[{"id":883,"href":"https:\/\/www.ygcloud.com\/knowledge\/wp-json\/wp\/v2\/posts\/881\/revisions\/883"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ygcloud.com\/knowledge\/wp-json\/wp\/v2\/media\/882"}],"wp:attachment":[{"href":"https:\/\/www.ygcloud.com\/knowledge\/wp-json\/wp\/v2\/media?parent=881"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ygcloud.com\/knowledge\/wp-json\/wp\/v2\/categories?post=881"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ygcloud.com\/knowledge\/wp-json\/wp\/v2\/tags?post=881"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.ygcloud.com\/knowledge\/wp-json\/wp\/v2\/topic?post=881"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}