{"id":2560,"date":"2023-02-15T16:27:58","date_gmt":"2023-02-15T08:27:58","guid":{"rendered":"https:\/\/www.wjxy.net.cn\/?p=2560"},"modified":"2023-10-04T06:31:13","modified_gmt":"2023-10-03T22:31:13","slug":"centos-7%e6%8b%a8%e5%8f%b7%e4%b8%8a%e7%bd%91%ef%bc%88adsl-pppoe%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.wjxy.net.cn\/?p=2560","title":{"rendered":"CentOS 7\u62e8\u53f7\u4e0a\u7f51\uff08ADSL &#038; PPPoE\uff09"},"content":{"rendered":"<p>\u6b65\u9aa4\u6982\u8ff0\uff1a<\/p>\n<p>1\u3001\u641c\u5bfbPPPoE\u76f8\u5173\u8f6f\u4ef6\uff0c\u672c\u4eba\u4f7f\u7528\u7684\u662frp-pppoe<\/p>\n<p>yum search pppoe<\/p>\n<p>2\u3001\u4f7f\u7528yum\u5b89\u88c5rp-pppoe<\/p>\n<p>yum install rp-pppoe -y<\/p>\n<p>3\u3001\u5f00\u59cb\u914d\u7f6ePPPoE\u8fde\u63a5<\/p>\n<p>pppoe-setup<\/p>\n<p>4\u3001\u8f93\u5165ISP\u63d0\u4f9b\u7684\u8d26\u6237<\/p>\n<p>Enter your Login Name (default root): 0512632<\/p>\n<p>5\u3001\u8f93\u5165\u4ee5\u592a\u7f51\u5361\u4ee3\u53f7\uff0c\u9ed8\u8ba4\u662feth0\uff08\u6ce8\uff1aCentOS 7\u5df2\u4e0d\u662f\u9ed8\u8ba4eth0\uff0c\u81ea\u884c\u4f7f\u7528ifconfig\u547d\u4ee4\u5373\u53ef\u627e\u5230\uff09<\/p>\n<p>(default eth0):<\/p>\n<p>6\u3001\u914d\u7f6e\uff1a\u82e5\u957f\u65f6\u95f4\u8fde\u7ebf\uff0c\u8fde\u7ebf\u4f1a\u88ab\u81ea\u52a8\u4e2d\u65ad\uff08\u6211\u4e0d\u5e72\uff0c\u9009no\uff09<\/p>\n<p>Enter the demand value (default no):<\/p>\n<p>7\u3001\u914d\u7f6e\u4e3bDNS\u670d\u52a1\u5668<\/p>\n<p>Enter the DNS information here: 223.6.6.6<\/p>\n<p>8\u3001\u914d\u7f6e\u6b21DNS\u670d\u52a1\u5668<\/p>\n<p>Enter the secondary DNS server address here: 8.8.8.8<\/p>\n<p>9\u3001\u4e24\u6b21\u8f93\u5165PPOE\u8d26\u6237\u5bc6\u7801\u4ee5\u786e\u8ba4<\/p>\n<p>Please enter your Password:<br \/>\nPlease re-enter your Password:<\/p>\n<p>10\u3001\u914d\u7f6e\u666e\u901a\u8d26\u6237\u662f\u5426\u6709\u7f51\u7edc\u8fde\u63a5\u6743\u9650<\/p>\n<p>normal user to start or stop DSL connection (default yes):<\/p>\n<p>11\u3001\u914d\u7f6e\u9632\u706b\u5899\uff08\u6ca1\u6709\u7279\u6b8a\u9700\u6c42\u90090\u5c31OK\uff09<\/p>\n<p>Choose a type of firewall (0-2): 0<\/p>\n<p>12\u3001\u914d\u7f6e\u662f\u5426\u5f00\u673a\u81ea\u52a8\u62e8\u53f7\u8fde\u63a5<\/p>\n<p>Do you want to start this connection at boot time?<br \/>\nPlease enter no or yes (default no):yes<\/p>\n<p>13\u3001\u786e\u8ba4\u521a\u586b\u5199\u7684\u914d\u7f6e\u4fe1\u606f<\/p>\n<p>Accept these settings and adjust configuration files (y\/n)? y<\/p>\n<p>14\u3001\u8fde\u63a5\u7f51\u7edc\u5c3d\u60c5\u4eab\u53d7\u5427\uff01<\/p>\n<p>\u76f8\u5173\u547d\u4ee4@ \u8fde\u63a5\u7f51\u7edc\uff1a\/sbin\/ifup ppp0\uff0c\u65ad\u5f00\u8fde\u63a5\uff1a\/sbin\/ifdown ppp0\uff0c\u67e5\u770b\u7f51\u7edc\u72b6\u6001\uff1a\/sbin\/pppoe-status<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6b65\u9aa4\u6982\u8ff0\uff1a 1\u3001\u641c\u5bfbPPPoE\u76f8\u5173\u8f6f\u4ef6\uff0c\u672c\u4eba\u4f7f\u7528\u7684\u662frp-pppoe yum search pppoe 2\u3001\u4f7f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/www.wjxy.net.cn\/index.php?rest_route=\/wp\/v2\/posts\/2560"}],"collection":[{"href":"https:\/\/www.wjxy.net.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wjxy.net.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wjxy.net.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wjxy.net.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2560"}],"version-history":[{"count":3,"href":"https:\/\/www.wjxy.net.cn\/index.php?rest_route=\/wp\/v2\/posts\/2560\/revisions"}],"predecessor-version":[{"id":2573,"href":"https:\/\/www.wjxy.net.cn\/index.php?rest_route=\/wp\/v2\/posts\/2560\/revisions\/2573"}],"wp:attachment":[{"href":"https:\/\/www.wjxy.net.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2560"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wjxy.net.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2560"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wjxy.net.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2560"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}