使用pppoe来上ADSL出问题!?
时间:2006-08-05
来源:互联网
我在内核中已经支持pppoe相关选项,并且把eth0的IP地址全部去掉了,使eth0保持UP和RUNNING状态。
有没有对pppoe了解的高手解答一下,多谢!
修改了pppoe-start脚本,打印出了debug信息,出错的地方如下:
---------------------------------------------
* The following section shows the pppd command we will invoke
pppd invocation
/usr/bin/setsid /usr/sbin/pppd pty '/usr/sbin/pppoe -p /var/run/-pppoe.pid.pppoe -I eth0 -T 80 -U -m 1412 ' noipdefault noauth default-asyncmap defaultroute hide-password nodetach usepeerdns mtu 1492 mru 1492 noaccomp nodeflate nopcomp novj novjccomp user 26753742 lcp-echo-interval 20 lcp-echo-failure 3 debug
---------------------------------------------
Couldn't set tty to PPP discipline: Invalid argument
Waiting for 1 child processes...
script /usr/sbin/pppoe -p /var/run/-pppoe.pid.pppoe -I eth0 -T 80 -U -m 1412 -D /tmp/pppoe-debug-12132/pppoe-debug.txt-0, pid 12195
pppoe: read (asyncReadFromPPP): Session 8483: Input/output error
Script /usr/sbin/pppoe -p /var/run/-pppoe.pid.pppoe -I eth0 -T 80 -U -m 1412 -D /tmp/pppoe-debug-12132/pppoe-debug.txt-0 finished (pid 12195), status = 0x1
---------------------------------------------
* The following section is an extract from your log.
* Look for error messages from pppd, such as
* a lack of kernel support for PPP, authentication failure
* etc.
Extract from /var/log/messages
Aug 5 07:49:28 Karl pppoe[11690]: read (asyncReadFromPPP): Session 11391: Input/output error
Aug 5 07:49:28 Karl pppoe[11690]: Sent PADT
Aug 5 07:49:28 Karl pppd[11686]: Exit.
Aug 5 07:49:28 Karl pppoe-connect: PPPoE connection lost; attempting re-connection.
Aug 5 07:49:33 Karl pppd[11773]: pppd 2.4.2 started by root, uid 0
Aug 5 07:49:33 Karl pppd[11773]: Couldn't set tty to PPP discipline: Invalid argument
Aug 5 07:49:53 Karl pppoe[11777]: PADS: Service-Name: ''
Aug 5 07:49:53 Karl pppoe[11777]: PPP session is 9563 (0x255b)
Aug 5 07:49:53 Karl pppoe[11777]: read (asyncReadFromPPP): Session 9563: Input/output error
Aug 5 07:49:53 Karl pppoe[11777]: Sent PADT
Aug 5 07:49:53 Karl pppd[11773]: Exit.
作者: ooio_karl 发布时间: 2006-08-05
作者: jjj311 发布时间: 2006-08-05
作者: jjj311
eth0 要IP吧,如192.168.0.*** 是吗?
|
我看pppoe的man手册里面强调不要配IP的。
作者: ooio_karl 发布时间: 2006-08-05
Couldn't set tty to PPP discipline: Invalid argument
正常的应该是:
Aug 5 09:44:07 ejserver pppd[7548]: pppd 2.4.2 started by root, uid 0
Aug 5 09:44:07 ejserver pppd[7548]: Using interface ppp0
Aug 5 09:44:07 ejserver pppd[7548]: Connect: ppp0 <--> /dev/pts/0
Aug 5 09:44:07 ejserver pppoe[7552]: PADS: Service-Name: ''
Aug 5 09:44:07 ejserver pppoe[7552]: PPP session is 1421 (0x58d)
Aug 5 09:44:10 ejserver pppd[7548]: Remote message: Welcome to use ...
Aug 5 09:44:10 ejserver pppd[7548]: PAP authentication succeeded
作者: shpchp 发布时间: 2006-08-05
直接修改脚本里面的那行命令么?
作者: ooio_karl 发布时间: 2006-08-05
你检查一下你的内核设置,ppp是否支持tty端口?
作者: shpchp 发布时间: 2006-08-05
我把PPP相关选项都选上了,呵呵
作者: ooio_karl 发布时间: 2006-08-06
也没问题啊
作者: orphen 发布时间: 2006-08-06
作者: orphen
我的eth0配有IP的啊~~~
也没问题啊 |
我的也是!!!!晕4
作者: jjj311 发布时间: 2006-08-06
作者: druggo 发布时间: 2006-08-06
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28