{"id":178,"date":"2018-01-30T16:38:14","date_gmt":"2018-01-30T08:38:14","guid":{"rendered":"https:\/\/wp.yaanren.win\/?p=178"},"modified":"2018-01-30T16:38:14","modified_gmt":"2018-01-30T08:38:14","slug":"ppp%e7%9a%84linux%e7%a7%bb%e6%a4%8d%e5%8f%8appp0%e7%9a%84%e8%b7%af%e7%94%b1%e8%ae%be%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/wp.625300.xyz\/?p=178","title":{"rendered":"ppp\u7684linux\u79fb\u690d\u53cappp0\u7684\u8def\u7531\u8bbe\u7f6e"},"content":{"rendered":"<h1 class=\"csdn_top\"><\/h1>\n<div class=\"article_bar clearfix\">\n<p><button class=\"btn-noborder\">\u8f6c\u81ea\uff1ahttp:\/\/blog.csdn.net\/tietao\/article\/details\/8056840<\/button><\/p>\n<\/div>\n<div id=\"article_content\" class=\"article_content csdn-tracking-statistics tracking-click\" data-mod=\"popu_519\" data-dsm=\"post\">\n<div>\n<div>1\u3001\u9996\u5148\u5148\u4e0b\u8f7dppp-2.4.4<\/div>\n<div><\/div>\n<div>2\u3001\u4ea4\u53c9\u7f16\u8bd1\uff0c<\/div>\n<div>\u9996\u5148.\/configure<\/div>\n<div>\u4e4b\u540emake CC=arm-linux-gcc(\u5728configure\u65f6\uff0c\u8bd5\u8fc7&#8211;host=arm-linux-gcc,\u53d1\u73b0\u4e0d\u597d\u7528\u5c31\u5728\u8fd9\u91cc\u52a0\u4e86\uff09<\/div>\n<div><\/div>\n<div>3\u3001\u7f16\u8bd1\u5b8c\u6210\u540e\uff0c<\/div>\n<div>\u5c06pppd,chat\u590d\u5236\u5230\/usr\/sbin\u76ee\u5f55\u4e0b\uff0c<\/div>\n<div><\/div>\n<div>4\u3001\u914d\u7f6e<\/div>\n<div><\/div>\n<div>4.1 \u4fee\u6539\u6e90\u4ee3\u7801scripts\u76ee\u5f55\u4e0b\u7684ppp-on ppp-on-dialer ppp-off<\/div>\n<div>\u00a0\u00a0\u00a0\u00a0\u00a0\u4e4b\u540e\u590d\u5236\u5230\/etc\/ppp\u76ee\u5f55\u4e0b<\/div>\n<div>\u00a0 \u00a0 \u00a0\u5e76\u4fee\u6539\u6267\u884c\u6743\u9650\uff0cchmod +x ppp-on ppp-off ppp-on-dialer<\/div>\n<div>4.2 pppd\u63d0\u4f9b\u8ba4\u8bc1\u4fe1\u606f\u65f6\uff0c\u53ef\u80fd\u534f\u5546\u4f7f\u7528PAP\u6216\u8005CHAP\u8ba4\u8bc1\u65b9\u5f0f\uff0c\u6240\u4ee5\u9700\u8981\u4fee\u6539\u6e90\u4ee3\u7801etc.ppp\u76ee\u5f55\u4e0b\u7684pap-secrets\u548cchap-secrets\uff0c<\/div>\n<div>\u00a0\u5728pap-secrets\u6dfb\u52a0\u9700\u8981\u7684\u7528\u6237\u540d\u548c\u5bc6\u7801<\/div>\n<div>\u00a0card * card *<\/div>\n<div>\u00a0\u5728chap-secrets\u6dfb\u52a0\u9700\u8981\u7684\u7528\u6237\u540d\u548c\u53e3\u4ee4<\/div>\n<div>\u00a0card * card *<\/div>\n<div>\u00a0\u4e4b\u540e\u5c06\u5b83\u4eec\u590d\u5236\u5230\/etc\/ppp\u76ee\u5f55\u4e0b<\/div>\n<div><\/div>\n<div>5\u3001\u4e4b\u540e\u53ef\u4ee5\u62e8\u53f7\u4e86\uff0c<\/div>\n<div>ppp-on<\/div>\n<div>\u5728\u62e8\u53f7\u65f6\uff0c\u9700\u8981\u6ce8\u610f\u4f7f\u7528\u7684\uff0c\u4e32\u53e3\u53f7\uff0c\u6ce2\u7279\u7387\uff0c\u662f\u5426\u5408\u9002\uff0c\u53f7\u7801\u8fd9\u4e2a\uff0c<\/div>\n<div>\u6210\u529f\u7684\u8bdd\uff0c\u5728\/dev\/\u4e0b\u4f1a\u6709ppp0,<\/div>\n<div>\u67e5\u770bnetstat \u00a0-nr<\/div>\n<div>Kernel IP routing table<br \/>\nDestination\u00a0\u00a0\u00a0\u00a0 Gateway\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Genmask\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Flags\u00a0\u00a0 MSS Window\u00a0 irtt Iface<br \/>\n192.200.1.21\u00a0\u00a0\u00a0 *\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 255.255.255.255 UH\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0 0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 0 ppp0<br \/>\n192.168.0.0\u00a0\u00a0\u00a0\u00a0 *\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 255.255.255.0 \u00a0 \u00a0 U\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0 0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a00 eth0<br \/>\ndefault \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0*\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0.0.0.0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 U\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0 0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a00 ppp0<\/div>\n<div>\u4e5f\u4f1a\u53d1\u73b0\u4e00\u4e2appp0\u63a5\u53e3<\/div>\n<div><\/div>\n<div>6\u3001\u5230\u8fd9\u91cc\uff0c\u5982\u679csocket\u53ef\u4ee5connect\u4e0a\uff0c\u662f\u5e78\u8fd0\u7684\u3002<\/div>\n<div>\u5c24\u5176\u662f\u5728\u8bbe\u5907\u4e2d\u8fd8\u5b58\u5728eth0\u7684\u65f6\u5019\uff0c\u56e0\u4e3a\u8fd9\u4e2a\u65f6\u5019\u9ed8\u8ba4\u8def\u7531\u6709\u53ef\u80fd\u4e0d\u662f\u521a\u624d\u62e8\u53f7\u6210\u529f\u7684ppp0,\u8fd9\u6837\u5c31\u9700\u8981\u5c06ppp0\u8bbe\u7f6e\u4e3a\u9ed8\u8ba4\u8def\u7531\u3002<\/div>\n<div>\u6709\u4e24\u79cd\u65b9\u6cd5\uff1a<\/div>\n<div>1\u3001\u5728\u62e8\u53f7\u524d\u5c06\u9ed8\u8ba4\u8def\u7531\u5220\u9664\uff08\u5982\u679c\u5df2\u7ecf\u5b58\u5728\u9ed8\u8ba4\u8def\u7531\uff0cpppd\u62e8\u53f7\u662f\u4e0d\u4f1a\u4fee\u6539\u8fd9\u4e2a\u7684\uff0c\u5177\u4f53\u89e3\u91ca\u89c1How to hook up PPP\u00a0in Linux\u7684no default route\uff09\u3002<\/div>\n<div>2\u3001\u5c06ppp0\u8bbe\u7f6e\u4e3a\u9ed8\u8ba4\u8def\u7531\u3002<\/div>\n<div><\/div>\n<div><span style=\"color: #ff0000;\">\u5148\u5220\u9664\u539f\u6765\u8def\u7531\uff1aroute del default<\/span><\/div>\n<div><span style=\"color: #ff0000;\">\u518d\u5c06ppp0\u8bbe\u7f6e\u4e3a\u9ed8\u8ba4\u8def\u7531\uff1aroute add default dev ppp0<\/span><\/div>\n<div><\/div>\n<div>7\u3001\u5230\u8fd9\u91cc\uff0c\u81ea\u5df1\u9047\u5230\u7684\u95ee\u9898\uff0c\u57fa\u672c\u90fd\u7ed3\u675f\u4e86\u3002<\/div>\n<div><\/div>\n<div>\u53c2\u8003\u7684\u8fde\u63a5\uff1a<\/div>\n<div><a href=\"http:\/\/blog.csdn.net\/absurd\/article\/details\/1596496\" target=\"_blank\" rel=\"noopener\">http:\/\/blog.csdn.net\/absurd\/article\/details\/1596496<\/a><\/div>\n<div>ppp\u6570\u636e\u6536\u53d1\u6d41\u7a0b\uff08\u535a\u4e3b\u5199\u7684\u5f88\u8be6\u7ec6\uff09<\/div>\n<div><a href=\"http:\/\/blog.csdn.net\/Raul_Shao\/article\/details\/5908127\" target=\"_blank\" rel=\"noopener\">http:\/\/blog.csdn.net\/Raul_Shao\/article\/details\/5908127<\/a><\/p>\n<div>ppp linux\u79fb\u690d<\/div>\n<div><a href=\"http:\/\/topic.csdn.net\/u\/20090518\/14\/576d7940-72e3-43ef-b866-5d445e89a49f.html\" target=\"_blank\" rel=\"noopener\">http:\/\/topic.csdn.net\/u\/20090518\/14\/576d7940-72e3-43ef-b866-5d445e89a49f.html<\/a><\/div>\n<div>\u5173\u4e8eppp0\u8def\u7531\u95ee\u9898\u7684\u5e16\u5b50<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u8f6c\u81ea\uff1ahttp:\/\/blog.csdn.net\/tietao\/article\/details\/8056840 &#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32,33,37],"tags":[],"class_list":["post-178","post","type-post","status-publish","format-standard","hentry","category-32","category-33","category-37"],"_links":{"self":[{"href":"https:\/\/wp.625300.xyz\/index.php?rest_route=\/wp\/v2\/posts\/178","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.625300.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.625300.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.625300.xyz\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.625300.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=178"}],"version-history":[{"count":0,"href":"https:\/\/wp.625300.xyz\/index.php?rest_route=\/wp\/v2\/posts\/178\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.625300.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=178"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.625300.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=178"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.625300.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=178"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}