{"id":297,"date":"2010-11-27T21:35:06","date_gmt":"2010-11-27T13:35:06","guid":{"rendered":"http:\/\/www.ipcpu.com\/?p=297"},"modified":"2010-11-27T21:35:06","modified_gmt":"2010-11-27T13:35:06","slug":"linux-ipv6-router","status":"publish","type":"post","link":"https:\/\/c.ipcpu.com\/2010\/11\/linux-ipv6-router\/","title":{"rendered":"\u4f7f\u7528Linux\u642d\u5efaIPV6\u8def\u7531\u5668(CentOS\u7248)"},"content":{"rendered":"

Building a IPV6 Router with Linux(CentOS)<\/strong><\/p>\n

Version 1.0.0
\nDate 2010-11-20
\nAuthor ipcpu
\nWebsite http:\/\/www.ipcpu.com<\/p>\n

\u65e9\u5c31\u60f3\u5199\u8fd9\u4e2a\u6559\u7a0b\u4e86\uff0c\u4e3b\u8981\u662f\u6ca1\u6709\u7535\u8111\u6765\u6d4b\u8bd5\uff0c\u7535\u8111\u574f\u4e86\u4fee\uff0c\u4fee\u4e86\u574f\uff0c\u54ce~<\/p>\n

IPv6\u65e9\u5c31\u5df2\u7ecf\u5728\u5404\u5927\u9ad8\u6821\u548c\u8fd0\u8425\u5546\u4e2d\u666e\u53ca\uff0c\u5982\u679c\u60a8\u662fADSL\u7528\u6237\uff0c\u5e76\u4e14\u5b89\u88c5\u4e86IPv6\u534f\u8bae\uff0c\u60a8\u4f1a\u53d1\u73b0\u4f60\u7684\u7535\u8111\u5df2\u7ecf\u63a5\u5165IPV6\u4e86\uff0c\u4f46\u662f\u56e0\u4e3a\u5bbd\u5e26\u8def\u7531\u7684\u5927\u9762\u79ef\u666e\u53ca\uff08\u5bbd\u5e26\u8def\u7531\u4e00\u822c\u90fd\u4e0d\u652f\u6301IPv6\uff09\u5f88\u591a\u7684\u7528\u6237\u8fd8\u662f\u65e0\u6cd5\u4f7f\u7528IPV6\u3002<\/p>\n

\u672c\u6587\u4e0d\u518d\u63a2\u8ba8IPV6\u7684\u8be6\u7ec6\u4f7f\u7528\uff0c\u8fd9\u65b9\u9762\u5404\u5927\u9ad8\u6821\u505a\u7684\u8fd8\u4e0d\u9519\uff0cPT\u4e0b\u8f7d\u5df2\u7ecf\u5c06\u5b66\u6821\u7684cernet2\u51fa\u53e3\u585e\u6ee1\u4e86\u3002<\/p>\n

\u8fd9\u91cc\u8fd8\u8981\u8bf4\u4e00\u70b9\uff0c\u6709\u4eba\u4f1a\u95ee\uff0cIPV6\u4f55\u65f6\u80fd\u666e\u53ca\uff1f\u8fd9\u4e2a\u95ee\u9898\u5176\u5b9e\u5f88\u590d\u6742\uff0cIPV6\u666e\u53ca\u7684\u6700\u5927\u963b\u529b\u5c31\u662f\u5bbd\u5e26\u8def\u7531\u5668\uff0c\u5bbd\u5e26\u8def\u7531\u5668\u4e00\u822c\u4e0d\u652f\u6301IPv6\uff0c\u8fd9\u5c31\u628a\u6700\u7ec8\u7528\u6237\u548cIPv6\u7f51\u7edc\u9694\u79bb\u5f00\u6765\u3002\u800cIPV6\u8bbe\u8ba1\u4e4b\u521d\u5c31\u5c06NAT\u8fd9\u6837\u7c7b\u4f3c\u6280\u672f\u62d2\u4e4b\u95e8\u5916\uff0c\u8fd9\u4e5f\u9020\u6210IPV6\u53d1\u5c55\u7f13\u6162\u3002<\/p>\n

\u6211\u4eec\u7684\u5b9e\u9a8c\u73af\u5883\u662f\u8fd9\u6837\u7684\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n

\"ct601\"<\/a><\/p>\n

\u4e00\u4e2a\u5178\u578b\u7684\u5c40\u57df\u7f51\u73af\u5883\uff0c\u8def\u7531\u5668\uff08Linux\uff09\u4f7f\u7528\u5149\u7ea4\u63a5\u5165\u8fd0\u8425\u5546IPv4\u7f51\u7edc\uff0c\u5e76\u4e14\u4f7f\u7528\uff08Hurricane Electric Free IPv6 Tunnel Broker\uff09IPv6-over-IPv4\u7684\u96a7\u9053\u63a5\u5165IPV6\u7f51\u7edc\u3002
\n\u6211\u4eec\u9700\u8981\u505a\u7684\u5c31\u662f\u8ba9\u540e\u9762\u7684PC\u7528\u6237\u63a5\u5165IPV6\u7f51\u7edc\u3002
\n<\/span>
\n*Warning!\u6ce8\u610f\uff1a\u672c\u6b21\u7684\u5b9e\u9a8c\u4f7f\u7528HE.NET\u7684\u96a7\u9053\uff0c\u9700\u8981\u8def\u7531\u5668(Linux)\u62e5\u6709\u516c\u7f51IP\u3002<\/strong><\/span><\/p>\n

1.\u00a0\u00a0 \u00a0\u5c06\u7f51\u7edc\u7ebf\u8def\u8fde\u63a5\u597d\uff0c\u914d\u7f6e\u597dLinux\u7684iptables\u8ba9PC\u53ef\u4ee5\u63a5\u5165IPV4\u7f51\u7edc\uff0c\u5177\u4f53\u7684\u4e0d\u7528\u8bf4\u4e86\uff0c\u53ef\u4ee5\u67e5\u770b\u672c\u7ad9\u5176\u4ed6\u6587\u7ae0\u3002<\/strong><\/p>\n

echo \u201c1\u2033 > \/proc\/sys\/net\/ipv4\/ip_forward
\niptables -t nat -A POSTROUTING -j MASQUERADE<\/span>
\n
\n*Warning\uff01\u6ce8\u610f\uff1aCentOS5.5\u9ed8\u8ba4\u7684iptables\u9632\u706b\u5899\u9ed8\u8ba4\u6709\u5f88\u591a\u89c4\u5219\uff0c\u53ef\u4ee5\u4f7f\u7528iptables \u2013F\u6e05\u7a7a\u540e\uff0c\u81ea\u884c\u6dfb\u52a0\u9700\u8981\u7684\u9009\u9879\uff0c\u6700\u540e\u4e0d\u8981\u5fd8\u4e86\u4f7f\u7528service iptables save\u4fdd\u5b58\u3002<\/span><\/strong><\/p>\n

\u8fd9\u91cc\u4f7f\u7528\u4e86\u6700\u7b80\u5355\u7684\u8bed\u53e5\uff0c\u5b9e\u9645\u73af\u5883\u5e94\u8be5\u52a0\u5f3a\u5b89\u5168\u8bbe\u7f6e\u3002<\/p>\n

2.\u00a0\u00a0 \u00a0\u4f7f\u7528Hurricane Electric Free IPv6 Tunnel Broker\u63a5\u5165IPV6\u7f51\u7edc\u3002<\/strong><\/p>\n

\u53bbhttp:\/\/tunnelbroker.net\/\u6ce8\u518c\u5e10\u53f7\uff0c\u767b\u9646\u540e\u70b9\u51fbUser Functions\u4e2d\u7684Create Regular Tunnel\u586b\u5199\u4f60\u7684\u516c\u7f51IP\u5730\u5740\u5373\u53ef\u3002\u751f\u6210\u7684\u96a7\u9053\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n

\"ct602\"<\/a><\/p>\n

3.\u00a0\u00a0 \u00a0\u5728\u96a7\u9053\u4fe1\u606f\u7684\u4e0b\u65b9\u6709Example IPv6 Tunnel Configurations by OS (Windows, Linux, etc.):\u5728\u8fd9\u91cc\u53ef\u4ee5\u627e\u5230\u5404\u4e2a\u64cd\u4f5c\u7cfb\u7edf\u96a7\u9053\u751f\u6210\u65b9\u6cd5\uff0c\u6211\u4eec\u8fd9\u91cc\u9009\u62e9\u4e86linux-route2,<\/strong><\/p>\n

modprobe ipv6
\nip tunnel add he-ipv6 mode sit remote 72.52.104.74 local \u3010\u4f60\u7684IP\u3011 ttl 255
\nip link set he-ipv6 up
\nip addr add 2001:470:1f01:f52b::2\/64 dev he-ipv6
\nip route add ::\/0 dev he-ipv6
\nip -f inet6 addr<\/span>
\n4.\u00a0\u00a0 \u00a0\u5728Linux\u4e0a\u8fd0\u884c\u6b64\u811a\u672c\u5373\u53ef\uff0c\u7136\u540e\u4f7f\u7528ifconfig\u547d\u4ee4\u53ef\u4ee5\u770b\u5230\u751f\u6210\u4e86sit0\u548csit1\u4e24\u4e2a\u501f\u53e3\u3002<\/strong><\/p>\n

5.\u00a0\u00a0 \u00a0\u6d4b\u8bd5IPv6\u8fde\u901a\u6027\u3002<\/strong><\/p>\n

Ping6 \u96a7\u9053\u7684\u53e6\u4e00\u7aef\u7684IPv6\u5730\u5740
\nping6 www.kame.net<\/p>\n

*Warning!\u6ce8\u610f\u5982\u679c\u51fa\u73b0
\n#ping6 www.kame.net
\nconnect: Network is unreachable
\n\u8fd9\u79cd\u60c5\u51b5\u662f\u56e0\u4e3a\u6dfb\u52a0\u7684\u9ed8\u8ba4\u8def\u7531\u6ca1\u6709\u751f\u6548\uff0c\u8fd8\u9700\u8981\u81ea\u884c\u6dfb\u52a0
\nroute -A inet6 add 2000::\/3 dev sit1<\/strong><\/span><\/p>\n

\u5982\u679c\u51fa\u73b0
\n# ping6 www.kame.net
\nPING www.kame.net(2001:200:dff:fff1:216:3eff:feb1:44d7) 56 data bytes
\n64 bytes from 2001:200:dff:fff1:216:3eff:feb1:44d7: icmp_seq=0 ttl=56 time=393 ms
\n64 bytes from 2001:200:dff:fff1:216:3eff:feb1:44d7: icmp_seq=0 ttl=56 time=393 ms<\/span>
\n\u5219\u8868\u660eIPV6\u7f51\u7edc\u8054\u901a\u6210\u529f\uff01<\/p>\n

6.\u00a0\u00a0 \u00a0\u63a5\u4e0b\u6765\u6211\u4eec\u9700\u8981\u7ed9\u5185\u7f51\u7684PC\u5206\u914dIPv6\u5730\u5740\uff0c\u8be5\u7ed9\u4ed6\u4eec\u5206\u914d\u4ec0\u4e48\u6837\u7684\u5730\u5740\u5462\uff0c\u8fd9\u4e2a\u662f\u4e0d\u80fd\u4e71\u5206\u914d\u7684\uff0c\u7531\u4e8eIPV6\u6ca1\u6709\u4e86NAT\u7684\u529f\u80fd\uff0c\u6240\u4ee5IPV6\u7684\u5730\u5740 \u5e94\u8be5\u662f\u5168\u7403\u552f\u4e00\u7684\uff0cHE.net\u7684\u96a7\u9053\u91cc\u7ed9\u6211\u4eec\u63d0\u4f9b\u4e86\u4e24\u4e2aIPV6\u6bb5\uff0c\u4e00\u4e2a48\u4f4d\uff08Routed \/48:\uff09\u4e00\u4e2a64\u4f4d\uff08Routed \/64:\uff09\u5982\u679c\u53ea\u6709\u4e00\u4e2a\u7f51\u6bb5\u7684\u8bdd\uff0c\u752864\u7684\u5c31\u53ef\u4ee5\u3002\u7f51\u7edc\u5927\u7684\u53ef\u4ee5\u628a48\u4f4d\u5212\u5206\u6210\u5b50\u7f51\u3002<\/strong><\/p>\n

\u8fd9\u91cc\u6211\u4eec\u7528\u5230\u4e86\u4e00\u4e2a\u8f6f\u4ef6radvd<\/span><\/strong>\uff0c\u5927\u5bb6\u77e5\u9053IPV6\u5730\u5740\u5206\u914d\u6709\u6709\u72b6\u6001\u548c\u65e0\u72b6\u6001\u533a\u5206\uff0cradvd\u5c31\u662f\u65e0\u72b6\u6001\u7684\u3002\u6211\u4eec\u53ef\u4ee5\u4ece\u7f51\u4e0a\u4e0b\u8f7dradvd\u6216\u8005\u7528yum install radvd\u5b89\u88c5\u3002<\/p>\n

Radvd\u7684\u914d\u7f6e\u6587\u4ef6\u662f\/etc\/radvd.conf\u548c\/etc\/sysconfig\/radvd\uff0c\u53ea\u9700\u8981\u66f4\u6539\u7b2c\u4e00\u4e2a\u5373\u53ef\u3002\u6211\u7684\u914d\u7f6e\u6587\u4ef6\u5982\u4e0b\uff1a
\n#cat \/etc\/radvd.conf<\/span><\/p>\n

interface eth0
\n{
\nAdvSendAdvert on;
\nMinRtrAdvInterval 30;
\nMaxRtrAdvInterval 100;
\nprefix 2001:470:4f05:152b::\/64
\n{
\nAdvOnLink on;
\nAdvAutonomous on;
\nAdvRouterAddr on;
\n};<\/p>\n

};<\/p>\n

7.\u00a0\u00a0 \u00a0\u63a5\u7740\u6211\u4eec\u8981\u5f00\u542fIPV6\u7684\u8f6c\u53d1\u529f\u80fd\uff0c\u8fd9\u4e2a\u548cIPv4\u7684\u8f6c\u53d1\u7c7b\u4f3c\uff0c\u53e6\u5916\u8fd8\u8981\u6e05\u7a7aip6tables\u89c4\u5219\u3002<\/strong><\/p>\n

echo 1 > \/proc\/sys\/net\/ipv6\/conf\/all\/forwarding
\nip6tables \u2013F && service ip6tables save<\/span><\/p>\n

8.\u00a0\u00a0 \u00a0\u7136\u540e\u518d\u5f00\u542fradvd\u670d\u52a1\uff0cservice radvd start<\/strong>
\n\u5982\u679c\u6ca1\u6709\u6253\u5f00IPv6\u8f6c\u53d1\uff0c\u5219\u4f1a\u62a5\u9519radvd: IPv6 forwarding seems to be disabled, exiting<\/span><\/p>\n

9.\u00a0\u00a0 \u00a0\u5728PC\u5ba2\u6237\u7aef\u4e2d\u5b89\u88c5IPv6\uff08Windows Vista\u548c7\u662f\u9ed8\u8ba4\u5b89\u88c5\u7684\uff09<\/strong><\/p>\n

10.\u00a0\u00a0 \u00a0PC\u5ba2\u6237\u7aef\u4f1a\u5f97\u5230IPv6\u5730\u57402001:470:4f05:152b\u5f00\u5934\u7684\u5730\u5740\uff0c\u53ef\u4ee5\u4f7f\u7528ipconfig\u67e5\u770b\u3002<\/strong><\/p>\n

\u4f7f\u7528ping 2001:470:4f05:152b::1\u6765\u67e5\u770b\u5230\u7f51\u5173\u7684\u8fde\u901a\u6027\u3002<\/p>\n

11.\u00a0\u00a0 \u00a0\u5728PC\u7aefping6 www.kame.net \u5982\u679c\u6709\u8fd4\u56de\u503c\u5c31OK\u4e86\u3002<\/strong><\/p>\n

\u5982\u679c\u6ca1\u6709\u8fd4\u56de\u503c\u4e5f\u4e0d\u8981\u7740\u6025\uff0c\u53ef\u4ee5\u81ea\u884c\u6dfb\u52a0\u9ed8\u8ba4\u7f51\u5173<\/p>\n

ipv6 -p rtu ::\/0\u00a0<\/span>7<\/span><\/strong>\/2001:470:1f05:152b::1\u00a0 \u8fd9\u4e2a\u7f51\u6bb5\u8981\u548cradvd.conf\u4e2d\u7684\u5bf9\u5e94\u8d77\u6765\u3002<\/span>
\n\u6216\u8005\u662fip route add 2001::\/3 via 2001:470:23:314::1\/64 metric 1
\n
\nTips.\u5c0f\u63d0\u793a\uff1a
\n1.\u5982\u4f55\u5220\u9664\u9ed8\u8ba4\u7f51\u5173\u5462\uff0c\u5475\u5475\uff0c\u52a0\u4e00\u4e2alife 0\u5c31\u53ef\u4ee5\u4e86
\nipv6 rtu ::\/0 7\/2001:470:19:13c::1 life 0
\n2.\u8fd9\u91cc\u9762\u76847\u8868\u793a\u4ec0\u4e48\u610f\u601d\u5462\uff1f
\n7\u8868\u793a\u7f51\u5361\u7d22\u5f15\u76f8\u5f53\u4e8eID\uff0c\u53ef\u4ee5\u4f7f\u7528netsh int ipv6 show int\u67e5\u770b\u3002<\/strong><\/span><\/p>\n

12.\u00a0\u00a0 \u00a0\u5982\u679cping\u6210\u529f\u8868\u793a\u4f60\u5df2\u7ecf\u5927\u529f\u544a\u6210\u4e86\uff0c\u54c8\u54c8\uff01<\/strong><\/p>\n

\u4eca\u5929\u5c31\u5199\u5230\u8fd9\u91cc\u628a\uff0c\u540e\u9762\u6ca1\u6709\u622a\u56fe\u662f\u56e0\u4e3a\u73b0\u5728\u5728\u5bb6\uff0c\u6ca1\u6cd5\u6d4b\u8bd5\u3002
\n\u66f4\u591a\u7cbe\u5f69\u6587\u7ae0\uff0c\u8bf7\u8bbf\u95ee\u6211\u7684\u535a\u5ba2http:\/\/www.ipcpu.com<\/p>\n

\u540e\u8bb0\uff1a<\/strong>
\n\u6211\u4ee5\u524d\u4e5f\u5199\u8fc7tunnel broker\u7684\u6587\u7ae0\uff0c\u7535\u8111\u662f\u53ef\u4ee5\u8f7b\u677e\u63a5\u5165IPv6\u7684\uff0c\u4f46\u662f\u5982\u679c\u8981\u505a\u8def\u7531\uff0c\u4f60\u5fc5\u987b\u6709\u5168\u7403\u552f\u4e00\u7684IPV6\u5730\u5740\uff08\u800c\u4e14\u5e94\u8be5\u662f\u4e00\u6bb5\u5730\u5740\uff09\uff0c\u8fd9\u4e2a\u662f\u9700\u8981\u7533\u8bf7\u7684\uff0c\u81f3\u4e8e \u5176\u4ed6\u7684tunnel broker\u670d\u52a1\u5546\u63d0\u4f9b\u4e0d\u63d0\u4f9b\uff0c\u5c31\u4e0d\u592a\u6e05\u695a\u4e86\uff0c\u53f0\u6e7e\u7684\u5927\u90e8\u5206\u4e0d\u63d0\u4f9b\u7684\uff0c\u81f3\u4e8e\u5176\u4ed6\u7684\u4e0d\u6e05\u695a\uff0c\u6709\u5174\u8da3\u7684\u540c\u5b66\u53ef\u4ee5\u8bd5\u4e00\u4e0b\u3002<\/p>\n

\u8fd9\u6837Linux\u5c31\u6210\u4e86ipv6\u7684\u8def\u7531\u5668\uff0c\u90a3\u4e48\u53ef\u4e0d\u53ef\u4ee5\u901a\u8fc7VPN\uff08PPTPd\u6216\u8005openVPN\u6765\u63a5\u5165ipv6\u5462\uff0c\u7406\u8bba\u4e0a\u8bf4\u662f\u53ef\u4ee5\u6ef4\uff01\u4f46\u662f\u6211\u53d1\u73b0ppp0\u63a5\u53e3\u6ca1\u6709ipv6\u7684link local\u5730\u5740\uff0c\u4e5f\u5c31\u662f\u8bf4PPP\u8fd8\u4e0d\u652f\u6301ipv6\uff1f\u8fd8\u662f\u6211\u6ca1\u88c5\u652f\u6301ipv6\u7684\u7248\u672c\uff1f\uff09<\/p>\n

\u8f6c\u8f7d\u8bf7\u6ce8\u660e\uff1aIPCPU-\u7f51\u7edc\u4e4b\u8def<\/a> » \u4f7f\u7528Linux\u642d\u5efaIPV6\u8def\u7531\u5668(CentOS\u7248)<\/a><\/p>","protected":false},"excerpt":{"rendered":"

Building a IPV6 Router with Linux(CentOS) Version 1.0.0 Date 2010-11-20 Author ipcpu Website http:\/\/www.ipcpu.com \u65e9\u5c31\u60f3\u5199\u8fd9\u4e2a\u6559\u7a0b\u4e86\uff0c\u4e3b\u8981\u662f\u6ca1\u6709\u7535\u8111\u6765\u6d4b\u8bd5\uff0c\u7535\u8111\u574f\u4e86\u4fee\uff0c\u4fee\u4e86\u574f\uff0c\u54ce~ IPv6\u65e9\u5c31\u5df2\u7ecf\u5728\u5404\u5927\u9ad8\u6821\u548c\u8fd0\u8425\u5546\u4e2d\u666e\u53ca\uff0c\u5982\u679c\u60a8\u662fADSL\u7528\u6237\uff0c\u5e76\u4e14\u5b89\u88c5\u4e86IPv6\u534f\u8bae\uff0c\u60a8\u4f1a\u53d1\u73b0\u4f60\u7684\u7535\u8111\u5df2\u7ecf\u63a5\u5165IPV6\u4e86\uff0c\u4f46\u662f\u56e0\u4e3a\u5bbd\u5e26\u8def\u7531\u7684\u5927\u9762\u79ef\u666e\u53ca\uff08\u5bbd\u5e26\u8def\u7531\u4e00\u822c\u90fd\u4e0d\u652f\u6301IPv6\uff09\u5f88\u591a\u7684\u7528\u6237\u8fd8\u662f\u65e0\u6cd5\u4f7f\u7528IPV6\u3002 \u672c\u6587\u4e0d\u518d\u63a2\u8ba8IPV6\u7684\u8be6\u7ec6\u4f7f\u7528\uff0c\u8fd9\u65b9\u9762\u5404\u5927\u9ad8\u6821\u505a\u7684\u8fd8\u4e0d\u9519\uff0cPT\u4e0b\u8f7d\u5df2\u7ecf\u5c06\u5b66\u6821\u7684cernet2\u51fa\u53e3\u585e\u6ee1\u4e86\u3002 \u8fd9\u91cc\u8fd8\u8981\u8bf4\u4e00\u70b9\uff0c\u6709\u4eba\u4f1a\u95ee\uff0cIPV6\u4f55\u65f6\u80fd\u666e\u53ca\uff1f\u8fd9\u4e2a\u95ee\u9898\u5176\u5b9e\u5f88\u590d\u6742\uff0cIPV6\u666e\u53ca\u7684\u6700\u5927\u963b\u529b\u5c31\u662f\u5bbd\u5e26\u8def\u7531\u5668\uff0c\u5bbd\u5e26\u8def\u7531\u5668\u4e00\u822c\u4e0d\u652f\u6301IPv6\uff0c\u8fd9\u5c31\u628a\u6700\u7ec8\u7528\u6237\u548cIPv6\u7f51\u7edc\u9694\u79bb\u5f00\u6765\u3002\u800cIPV6\u8bbe\u8ba1\u4e4b\u521d\u5c31\u5c06NAT\u8fd9\u6837\u7c7b\u4f3c\u6280\u672f\u62d2\u4e4b\u95e8\u5916\uff0c\u8fd9\u4e5f\u9020\u6210IPV6\u53d1\u5c55\u7f13\u6162\u3002 \u6211\u4eec\u7684\u5b9e\u9a8c\u73af\u5883\u662f\u8fd9\u6837\u7684\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a \u4e00\u4e2a\u5178\u578b\u7684\u5c40\u57df\u7f51\u73af\u5883\uff0c\u8def\u7531\u5668\uff08Linux\uff09\u4f7f\u7528\u5149\u7ea4\u63a5\u5165\u8fd0\u8425\u5546IPv4\u7f51\u7edc\uff0c\u5e76\u4e14\u4f7f\u7528\uff08Hurricane Electric Free IPv6 Tunnel Broker\uff09IPv6-over-IPv4\u7684\u96a7\u9053\u63a5\u5165IPV6\u7f51\u7edc\u3002 \u6211\u4eec\u9700\u8981\u505a\u7684\u5c31\u662f\u8ba9\u540e\u9762\u7684PC\u7528\u6237\u63a5\u5165IPV6\u7f51\u7edc\u3002 *Warning!\u6ce8\u610f\uff1a\u672c\u6b21\u7684\u5b9e\u9a8c\u4f7f\u7528HE.NET\u7684\u96a7\u9053\uff0c\u9700\u8981\u8def\u7531\u5668(Linux)\u62e5\u6709\u516c\u7f51IP\u3002 1.\u00a0\u00a0 \u00a0\u5c06\u7f51\u7edc\u7ebf\u8def\u8fde\u63a5\u597d\uff0c\u914d\u7f6e\u597dLinux\u7684iptables\u8ba9PC\u53ef\u4ee5\u63a5\u5165IPV4\u7f51\u7edc\uff0c\u5177\u4f53\u7684\u4e0d\u7528\u8bf4\u4e86\uff0c\u53ef\u4ee5\u67e5\u770b\u672c\u7ad9\u5176\u4ed6\u6587\u7ae0\u3002 echo \u201c1\u2033 > \/proc\/sys\/net\/ipv4\/ip_forward iptables -t nat -A POSTROUTING -j MASQUERADE *Warning\uff01\u6ce8\u610f\uff1aCentOS5.5\u9ed8\u8ba4\u7684iptables\u9632\u706b\u5899\u9ed8\u8ba4\u6709\u5f88\u591a\u89c4\u5219\uff0c\u53ef\u4ee5\u4f7f\u7528iptables \u2013F\u6e05\u7a7a\u540e\uff0c\u81ea\u884c\u6dfb\u52a0\u9700\u8981\u7684\u9009\u9879\uff0c\u6700\u540e\u4e0d\u8981\u5fd8\u4e86\u4f7f\u7528service iptables save\u4fdd\u5b58\u3002 \u8fd9\u91cc\u4f7f\u7528\u4e86\u6700\u7b80\u5355\u7684\u8bed\u53e5\uff0c\u5b9e\u9645\u73af\u5883\u5e94\u8be5\u52a0\u5f3a\u5b89\u5168\u8bbe\u7f6e\u3002 2.\u00a0\u00a0 \u00a0\u4f7f\u7528Hurricane Electric Free IPv6 Tunnel Broker\u63a5\u5165IPV6\u7f51\u7edc\u3002 \u53bbhttp:\/\/tunnelbroker.net\/\u6ce8\u518c\u5e10\u53f7\uff0c\u767b\u9646\u540e\u70b9\u51fbUser Functions\u4e2d\u7684Create Regular […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3,13],"tags":[],"_links":{"self":[{"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/posts\/297"}],"collection":[{"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/comments?post=297"}],"version-history":[{"count":0,"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/posts\/297\/revisions"}],"wp:attachment":[{"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/media?parent=297"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/categories?post=297"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/tags?post=297"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}