找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 6942|回复: 22

[N1盒子] n1 pppoe拨号

[复制链接]
发表于 2019-2-5 14:29 来自手机 | 显示全部楼层 |阅读模式
谁会pppoe拨号呀,求助
我的恩山、我的无线 The best wifi forum is right here.
发表于 2019-2-5 14:47 | 显示全部楼层
本帖最后由 一个大草包 于 2019-2-5 14:54 编辑
  1. apt install pppoe
  2. nano /etc/ppp/pppoe.conf
复制代码

内容如下:
  1. ETH=eth0
  2. USER=
  3. DEMAND=no
  4. DNSTYPE=NOCHANGE
  5. USEPEERDNS=no
  6. DEFAULTROUTE=yes
  7. CONNECT_TIMEOUT=20
  8. CONNECT_POLL=2
  9. ACNAME=
  10. SERVICENAME=
  11. PING="."
  12. CF_BASE=`basename $CONFIG`
  13. PIDFILE="/var/run/$CF_BASE-adsl.pid"
  14. SYNCHRONOUS=no
  15. CLAMPMSS=1492
  16. LCP_INTERVAL=20
  17. LCP_FAILURE=3
  18. PPPOE_TIMEOUT=80
  19. FIREWALL=NONE
  20. LINUX_PLUGIN=/usr/lib/pppd/2.4.7/rp-pppoe.so
  21. PPPOE_EXTRA=""
  22. PPPD_EXTRA=""
复制代码
第二行那里填上你的宽带帐号

  1. nano /etc/ppp/pap-secrets
复制代码


内容如下:
  1. #
  2. # /etc/ppp/pap-secrets
  3. #
  4. # This is a pap-secrets file to be used with the AUTO_PPP function of
  5. # mgetty. mgetty-0.99 is preconfigured to startup pppd with the login option
  6. # which will cause pppd to consult /etc/passwd (and /etc/shadow in turn)
  7. # after a user has passed this file. Don't be disturbed therefore by the fact
  8. # that this file defines logins with any password for users. /etc/passwd
  9. # (again, /etc/shadow, too) will catch passwd mismatches.
  10. #
  11. # This file should block ALL users that should not be able to do AUTO_PPP.
  12. # AUTO_PPP bypasses the usual login program so it's necessary to list all
  13. # system userids with regular passwords here.
  14. #
  15. # ATTENTION: The definitions here can allow users to login without a
  16. # password if you don't use the login option of pppd! The mgetty Debian
  17. # package already provides this option; make sure you don't change that.

  18. # INBOUND connections

  19. # Every regular user can use PPP and has to use passwords from /etc/passwd
  20. *        hostname        ""        *

  21. # UserIDs that cannot use PPP at all. Check your /etc/passwd and add any
  22. # other accounts that should not be able to use pppd!
  23. guest        hostname        "*"        -
  24. master        hostname        "*"        -
  25. root        hostname        "*"        -
  26. support        hostname        "*"        -
  27. stats        hostname        "*"        -

  28. # OUTBOUND connections

  29. # Here you should add your userid password to connect to your providers via
  30. # PAP. The * means that the password is to be used for ANY host you connect
  31. # to. Thus you do not have to worry about the foreign machine name. Just
  32. # replace password with your password.
  33. # If you have different providers with different passwords then you better
  34. # remove the following line.

  35. #        *        password
复制代码
最后面添加一行:
宽带帐号 * 宽带密码


最后用:
  1. pppoe-start
复制代码
拨号

点评

谢谢热心的老哥,我还想问一下,任何版本都可以的吗,  详情 回复 发表于 2019-2-5 16:07
热心大佬,顶你  详情 回复 发表于 2019-2-5 15:04
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-2-5 15:04 来自手机 | 显示全部楼层
一个大草包 发表于 2019-2-5 14:47
内容如下:第二行那里填上你的宽带帐号



热心大佬,顶你
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-2-5 16:07 来自手机 | 显示全部楼层
一个大草包 发表于 2019-2-5 14:47
内容如下:第二行那里填上你的宽带帐号



谢谢热心的老哥,我还想问一下,任何版本都可以的吗,

点评

debian和ubuntu都通用,其他的因为我没有用过,不清楚。但是要注意其中一行 LINUX_PLUGIN=/usr/lib/pppd/2.4.7/rp-pppoe.so 如果rp-pppoe.so版本不是2.4.7的话根据实际改一下。  详情 回复 发表于 2019-2-5 16:27
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-2-5 16:27 来自手机 | 显示全部楼层
Leihan 发表于 2019-2-5 16:07
谢谢热心的老哥,我还想问一下,任何版本都可以的吗,

debian和ubuntu都通用,其他的因为我没有用过,不清楚。但是要注意其中一行
LINUX_PLUGIN=/usr/lib/pppd/2.4.7/rp-pppoe.so
如果rp-pppoe.so版本不是2.4.7的话根据实际改一下。

点评

我设置了,可是pppoe拨号显示超时,检查了账号密码什么的也没问题,您能帮忙看一下吗?[attachimg]268618[/attachimg][attachimg]268617[/attachimg][attachimg]268616[/attachimg]  详情 回复 发表于 2019-2-5 18:38
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-2-5 18:38 | 显示全部楼层
一个大草包 发表于 2019-2-5 16:27
debian和ubuntu都通用,其他的因为我没有用过,不清楚。但是要注意其中一行
LINUX_PLUGIN=/usr/lib/pppd ...

我设置了,可是pppoe拨号显示超时,检查了账号密码什么的也没问题,您能帮忙看一下吗?

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×

点评

账号和*之间 *和密码之间 是有空格的,我看图是不是没分开? 其实最简单的拨号是pppoeconf,图形界面,请看我的帖子: https://www.right.com.cn/forum/thread-365151-1-1.html  详情 回复 发表于 2019-2-5 18:44
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-2-5 18:44 来自手机 | 显示全部楼层
Leihan 发表于 2019-2-5 18:38
我设置了,可是pppoe拨号显示超时,检查了账号密码什么的也没问题,您能帮忙看一下吗?

账号和*之间
*和密码之间
是有空格的,我看图是不是没分开?

其实最简单的拨号是pppoeconf,图形界面,请看我的帖子:
https://www.right.com.cn/forum/thread-365151-1-1.html

点评

大哥,我可能有点烦人了,那个拨号获取ip后,ppp0是获取ip,可是不能上网,尽管有ip,该怎么办呢  详情 回复 发表于 2019-2-5 22:33
秒啊,谢谢大佬谢谢大佬,立马连上了 哈哈哈哈哈哈哈 哈哈哈哈哈哈哈哈哈哈 折腾好几天了  详情 回复 发表于 2019-2-5 18:47
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-2-5 18:47 | 显示全部楼层
一个大草包 发表于 2019-2-5 18:44
账号和*之间
*和密码之间
是有空格的,我看图是不是没分开?

秒啊,谢谢大佬谢谢大佬,立马连上了 哈哈哈哈哈哈哈 哈哈哈哈哈哈哈哈哈哈  折腾好几天了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-2-5 22:33 来自手机 | 显示全部楼层
一个大草包 发表于 2019-2-5 18:44
账号和*之间
*和密码之间
是有空格的,我看图是不是没分开?

大哥,我可能有点烦人了,那个拨号获取ip后,ppp0是获取ip,可是不能上网,尽管有ip,该怎么办呢

点评

N1自己上网还是别的设备通过N1上网?  详情 回复 发表于 2019-2-5 22:40
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-2-5 22:40 来自手机 | 显示全部楼层
Leihan 发表于 2019-2-5 22:33
大哥,我可能有点烦人了,那个拨号获取ip后,ppp0是获取ip,可是不能上网,尽管有ip,该怎么办呢

N1自己上网还是别的设备通过N1上网?

点评

n1自己上网,我的是交换机  详情 回复 发表于 2019-2-5 22:41
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-2-5 22:41 来自手机 | 显示全部楼层
一个大草包 发表于 2019-2-5 22:40
N1自己上网还是别的设备通过N1上网?

n1自己上网,我的是交换机

点评

看看/etc/resolv conf? 我能想到的。 官方镜像喜欢用1.1.1.1,但很多地方1.1.1.1用不了。 netstat -nap|grep 53。 看看?  详情 回复 发表于 2019-2-5 22:46
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-2-5 22:46 来自手机 | 显示全部楼层
本帖最后由 一个大草包 于 2019-2-5 22:59 编辑
Leihan 发表于 2019-2-5 22:41
n1自己上网,我的是交换机

看看/etc/resolv.conf?
我能想到的。
官方镜像喜欢用1.1.1.1,但很多地方1.1.1.1用不了。
netstat -nap|grep 53 看看?

点评

[attachimg]268626[/attachimg]您帮忙看一下  详情 回复 发表于 2019-2-5 23:11
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-2-5 23:05 来自手机 | 显示全部楼层
n1能支持500m以上带宽吗

点评

说是千兆网口  详情 回复 发表于 2019-2-5 23:13
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-2-5 23:11 | 显示全部楼层
一个大草包 发表于 2019-2-5 22:46
看看/etc/resolv.conf?
我能想到的。
官方镜像喜欢用1.1.1.1,但很多地方1.1.1.1用不了。

您帮忙看一下

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×

点评

不懂了。只能重启大法试试。  详情 回复 发表于 2019-2-5 23:18
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-2-5 23:13 来自手机 | 显示全部楼层
backlove 发表于 2019-2-5 23:05
n1能支持500m以上带宽吗

说是千兆网口
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-25 05:02

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表