|
|
发表于 2016-1-24 11:47
来自手机
|
显示全部楼层
|
成功的网友有谁试试pro自动pppoe拨号的,以下是贴吧一位网友的教程: 1.网络支持多拨; 2.赚钱宝连接交换机或者支持pppoe-relay的路由器; 3.pppoe-relay概念请自行百度。 首先需要先行安装我提供的entware安装脚本,已集成依赖包ppp 安装方法: cd /tmp wget http://ldd.f3322.net:81/deploy/rp-pppoe.sh chmod +x rp-pppoe.sh sh rp-pppoe.sh 安装过程中会提示设置pppoe账号和密码 详细过程如下: —————————————————————- 用户名: >>> Enter your PPPoE user name (default test): 填写你的拨号账户 —————————————————————- 接口(网卡): INTERFACE 默认即可 >>> Enter the Ethernet interface connected to the DSL modem For Solaris, this is likely to be something like /dev/hme0. For Linux, it will be ethn, where ‘n’ is a number. (default eth0): eth0 —————————————————————- dns:填写如下,可自行修改为其他dns >>> Enter the DNS information here: 114.114.114.114 —————————————————————- 密码: PASSWORD >>> Please enter your PPPoE password: 填写你的拨号密码 >>> Please re-enter your PPPoE password: 填写你的拨号密码 —————————————————————- 防火墙:选择0回车 The firewall choices are: 0 – NONE: This script will not set any firewall rules. You are responsible for ensuring the security of your machine. You are STRONGLY recommended to use some kind of firewall rules. 1 – STANDALONE: Appropriate for a basic stand-alone web-surfing workstation 2 – MASQUERADE: Appropriate for a machine acting as an Internet gateway for a LAN >>> Choose a type of firewall (0-2): 0 —————————————————————- 保存设置: Ethernet Interface: eth0 User name: 你的拨号账户 Activate-on-demand: No DNS: 114.114.114.114 Firewalling: NONE >>> Accept these settings and adjust configuration files (y/n)? y —————————————————————- 保存成功 Congratulations, it should be all set up! Type ‘pppoe-start’ to bring up your PPPoE link and ‘pppoe-stop’ to bring it down. Type ‘pppoe-status’ to see the link status. —————————————————————- pppoe-start测试pppoe拨号 pppoe-stop关闭pppoe拨号 pppoe-status查看拨号状态 如测试成功,请重启赚钱宝,等待几分钟后登陆客户端查看ip,然后使用该ip重新连接ssh; route命令查看ppp0是否为默认路由; 添加了检测断线自动重拨的脚本,位于/opt/etc/cron.1min/route.sh,每分钟自动运行一次; 如安装后出现问题需要删除,请关机后拔出usb或者tf,然后开机ssh登陆赚钱宝运行如下命令: rm -f /etc/init.d/S99entware 插入外部存储,运行 rm -f /media/你的存储/S99entware rm -f /media/你的存储/entware.img 即可彻底删除,路径请自行替换 |
|