免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 6328 | 回复: 13
打印 上一主题 下一主题

[应用] mips上移植ppp pppoe进行宽带拨号 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-05-15 15:57 |只看该作者 |倒序浏览
在mips上移植ppp和pppoe进行宽带拨号,出现了问题。老是超时!!!
我移植了两次,不同版本的ppp和pppoe两次不同调试信息如下:

---------------------------------------------
* The following section contains information about your system
Thu Jan  1 00:03:43 UTC 1970
Output of uname -a
Linux (none) 2.6.31--LSDK-9.2.0_U10.5.13 #12 Fri May 10 13:55:30 CST 2013 mips unknown
---------------------------------------------
* The following section contains information about your network
* interfaces.  The one you chose for PPPoE should contain the words:
* 'UP' and 'RUNNING'.  If it does not, you probably have an Ethernet
* driver problem.
Output of ifconfig -a
ath0      Link encap:Ethernet  HWaddr 6C:E8:73:EC:64:BC
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11 errors:0 dropped:215 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:2684 (2.6 KiB)

br0       Link encap:Ethernet  HWaddr 6C:E8:73:EC:64:BC
          inet addr:192.168.1.253  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1278 errors:0 dropped:0 overruns:0 frame:0
          TX packets:948 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:104274 (101.8 KiB)  TX bytes:411050 (401.4 KiB)

eth0      Link encap:Ethernet  HWaddr 6C:E8:73:EC:64:BD
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:125 errors:1 dropped:1 overruns:0 frame:0
          TX packets:80 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:9880 (9.6 KiB)  TX bytes:10420 (10.1 KiB)

eth1      Link encap:Ethernet  HWaddr 6C:E8:73:EC:64:BC
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1279 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1002 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:132410 (129.3 KiB)  TX bytes:420492 (410.6 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:12 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:612 (612.0 B)  TX bytes:612 (612.0 B)

wifi0     Link encap:UNSPEC  HWaddr 6C-E8-73-EC-64-BC-00-4C-00-00-00-00-00-00-00-00
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:7438 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2088 errors:15 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:2 Memory:b8100000-b811ffff

---------------------------------------------
* The following section contains information about kernel modules
* If the module for your Ethernet card is 'tulip', you might
* want to look for an updated version at http://www.scyld.com
Output of lsmod
Module                  Size  Used by    Tainted: P
umac 578128 0 - Live 0xc0242000
ath_dev 197344 1 umac, Live 0xc0150000 (P)
ath_rate_atheros 19840 1 ath_dev, Live 0xc0104000 (P)
ath_hal 332768 2 umac,ath_dev, Live 0xc00a4000 (P)
adf 9920 3 umac,ath_dev,ath_hal, Live 0xc003d000
asf 6816 3 umac,ath_dev,ath_hal, Live 0xc0030000 (P)
athrs_gmac 50240 0 - Live 0xc0019000
---------------------------------------------
* The following section lists your routing table.
* If you have an entry which starts with '0.0.0.0', you probably
* have defined a default route and gateway, and pppd will
* not create a default route using your ISP.  Try getting
* rid of this route.
Output of netstat -n -r
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 br0
---------------------------------------------
Contents of /etc/resolv.conf
* The following section lists DNS setup.
* If you can browse by IP address, but not name, suspect
* a DNS problem.
---------------------------------------------
* The following section lists /etc/ppp/options.
* You should have NOTHING in that file.
Contents of /etc/ppp/options
---------------------------------------------
* The following section identifies your Ethernet interface
* and user name.  Some ISP's need 'username'; others
* need 'username@isp.com'.  Try both
ETH=eth0; USER=057101111945
---------------------------------------------
* The following section shows the pppd command we will invoke
pppd invocation
/usr/sbin/pppd pty '/usr/sbin/pppoe -p /var/run/pppoe.conf-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 057101111945 lcp-echo-interval 20 lcp-echo-failure 3   debug
---------------------------------------------
Warning: couldn't open ppp database /var/local/tmp/ppp/pppd2.tdb
using channel 8
Using interface ppp0
Connect: ppp0 <--> /dev/pts/1
sent [LCP ConfReq id=0x1 <mru 1492> <magic 0x3c78f651>]
rcvd [LCP ConfAck id=0x1 <mru 1492> <magic 0x3c78f651>]
rcvd [LCP ConfReq id=0x2 <mru 1492> <auth pap> <magic 0x8dbd2ea2>]
No auth is possible
lcp_reqci: returning CONFREJ.

sent [LCP ConfRej id=0x2 <auth pap>]
rcvd [LCP ConfReq id=0x3 <mru 1492> <magic 0x94a0b605>]
lcp_reqci: returning CONFACK.
sent [LCP ConfAck id=0x3 <mru 1492> <magic 0x94a0b605>]
sent [LCP EchoReq id=0x0 magic=0x3c78f651]
sent [CCP ConfReq id=0x1 <bsd v1 15>]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
rcvd [LCP TermReq id=0x4]
LCP terminated by peer
sent [LCP TermAck id=0x4]
Script /usr/sbin/pppoe -p /var/run/pppoe.conf-pppoe.pid.pppoe -I eth0 -T 80 -U  -m 1412    -D /tmp/pppoe-debug-3567/pppoe-debug.txt-0 finished (pid 3671), status = 0x0
Modem hangup
Connection terminated.
---------------------------------------------
* 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.
Can't find messages file (looked for /var/{log,adm}/messages
Thu Jan  1 00:03:46 UTC 1970
---------------------------------------------
* The following section is a dump of the packets
* sent and received by rp-pppoe.  If you don't see
* any output, it's an Ethernet driver problem.  If you only
* see three PADI packets and nothing else, check your cables
* and modem.  Make sure the modem lights flash when you try
* to connect.  Check that your Ethernet card is in
* half-duplex, 10Mb/s mode.  If all else fails,
* try using pppoe-sniff.
rp-pppoe debugging dump
rp-pppoe-3.8
00:03:43.318 SENT PPPoE Discovery (8863) PADI sess-id 0 length 12
SourceAddr 6c:e8:73:ec:64:bd DestAddr ff:ff:ff:ff:ff:ff
01 01 00 00 01 03 00 04 00 00 0e 58               ...........X

00:03:43.336 RCVD PPPoE Discovery (8863) PADO sess-id 0 length 23
SourceAddr 08:19:a6:9c:5c:1b DestAddr 6c:e8:73:ec:64:bd
01 01 00 00 01 03 00 04 00 00 0e 58 01 02 00 07   ...........X....
51 75 69 64 77 61 79                              Quidway

00:03:43.336 SENT PPPoE Discovery (8863) PADR sess-id 0 length 12
SourceAddr 6c:e8:73:ec:64:bd DestAddr 08:19:a6:9c:5c:1b
01 01 00 00 01 03 00 04 00 00 0e 58               ...........X

00:03:43.354 RCVD PPPoE Discovery (8863) PADS sess-id 23594 length 12
SourceAddr 08:19:a6:9c:5c:1b DestAddr 6c:e8:73:ec:64:bd
01 01 00 00 01 03 00 04 00 00 0e 58               ...........X

00:03:44.328 SENT PPPoE Session (8864) SESS sess-id 23594 length 16
SourceAddr 6c:e8:73:ec:64:bd DestAddr 08:19:a6:9c:5c:1b
c0 21 01 01 00 0e 01 04 05 d4 05 06 3c 78 f6 51   .!..........<x.Q

00:03:44.344 RCVD PPPoE Session (8864) SESS sess-id 23594 length 16
SourceAddr 08:19:a6:9c:5c:1b DestAddr 6c:e8:73:ec:64:bd
c0 21 02 01 00 0e 01 04 05 d4 05 06 3c 78 f6 51   .!..........<x.Q

00:03:46.349 RCVD PPPoE Session (8864) SESS sess-id 23594 length 20
SourceAddr 08:19:a6:9c:5c:1b DestAddr 6c:e8:73:ec:64:bd
c0 21 01 02 00 12 01 04 05 d4 03 04 c0 23 05 06   .!...........#..
8d bd 2e a2                                       ....

00:03:46.356 SENT PPPoE Session (8864) SESS sess-id 23594 length 10
SourceAddr 6c:e8:73:ec:64:bd DestAddr 08:19:a6:9c:5c:1b
c0 21 04 02 00 08 03 04 c0 23                     .!.......#

00:03:46.373 RCVD PPPoE Session (8864) SESS sess-id 23594 length 16
SourceAddr 08:19:a6:9c:5c:1b DestAddr 6c:e8:73:ec:64:bd
c0 21 01 03 00 0e 01 04 05 d4 05 06 94 a0 b6 05   .!..............

00:03:46.380 SENT PPPoE Session (8864) SESS sess-id 23594 length 16
SourceAddr 6c:e8:73:ec:64:bd DestAddr 08:19:a6:9c:5c:1b
c0 21 02 03 00 0e 01 04 05 d4 05 06 94 a0 b6 05   .!..............

00:03:46.380 SENT PPPoE Session (8864) SESS sess-id 23594 length 10
SourceAddr 6c:e8:73:ec:64:bd DestAddr 08:19:a6:9c:5c:1b
c0 21 09 00 00 08 3c 78 f6 51                     .!....<x.Q

00:03:46.380 SENT PPPoE Session (8864) SESS sess-id 23594 length 9
SourceAddr 6c:e8:73:ec:64:bd DestAddr 08:19:a6:9c:5c:1b
80 fd 01 01 00 07 15 03 2f                        ......../

00:03:46.381 SENT PPPoE Session (8864) SESS sess-id 23594 length 24
SourceAddr 6c:e8:73:ec:64:bd DestAddr 08:19:a6:9c:5c:1b
80 21 01 01 00 16 03 06 00 00 00 00 81 06 00 00   .!..............
00 00 83 06 00 00 00 00                           ........

00:03:46.397 RCVD PPPoE Session (8864) SESS sess-id 23594 length 6
SourceAddr 08:19:a6:9c:5c:1b DestAddr 6c:e8:73:ec:64:bd
c0 21 05 04 00 04                                 .!....

00:03:46.404 SENT PPPoE Session (8864) SESS sess-id 23594 length 6
SourceAddr 6c:e8:73:ec:64:bd DestAddr 08:19:a6:9c:5c:1b
c0 21 06 04 00 04                                 .!....

00:03:46.422 RCVD PPPoE Discovery (8863) PADT sess-id 23594 length 0
SourceAddr 08:19:a6:9c:5c:1b DestAddr 6c:e8:73:ec:64:bd

00:03:46.422 SENT PPPoE Discovery (8863) PADT sess-id 23594 length 35
SourceAddr 6c:e8:73:ec:64:bd DestAddr 08:19:a6:9c:5c:1b
01 03 00 04 00 00 0e 58 02 03 00 17 52 65 63 65   .......X....Rece
69 76 65 64 20 50 41 44 54 20 66 72 6f 6d 20 70   ived PADT from p
65 65 72                                          eer

第二次不同版本的pppoe和pppd调试信息如下:

········前一部分省略
pppd invocation
/usr/sbin/pppd pty '/usr/sbin/pppoe -p /var/run/pppoe.conf-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 02006751105@163.gd lcp-echo-interval 20 lcp-echo-failure 3   debug
---------------------------------------------
Warning: couldn't open ppp database /var/run/pppd2.tdb
Fatal signal 11
Couldn't get channel number: Input/output error

Script /usr/sbin/pppoe -p /var/run/pppoe.conf-pppoe.pid.pppoe -I eth0 -T 80 -U  -m 1412    -D /tmp/pppoe-debug-846/pppoe-debug.txt-0 finished (pid 905), status = 0x7f
---------------------------------------------
* 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.
Can't find messages file (looked for /var/{log,adm}/messages
Thu Jan  1 00:13:24 UTC 1970
---------------------------------------------
* The following section is a dump of the packets
* sent and received by rp-pppoe.  If you don't see
* any output, it's an Ethernet driver problem.  If you only
* see three PADI packets and nothing else, check your cables
* and modem.  Make sure the modem lights flash when you try
* to connect.  Check that your Ethernet card is in
* half-duplex, 10Mb/s mode.  If all else fails,
* try using pppoe-sniff.
rp-pppoe debugging dump

论坛徽章:
0
2 [报告]
发表于 2013-05-15 15:58 |只看该作者
可能是问题的地方,我已经标红,请高手指教呀!!

论坛徽章:
0
3 [报告]
发表于 2013-05-15 17:02 |只看该作者
顶起呀!!!

论坛徽章:
0
4 [报告]
发表于 2013-05-15 17:51 |只看该作者
顶呀,紧急求助!!!

论坛徽章:
0
5 [报告]
发表于 2013-05-16 09:17 |只看该作者
自己顶!!!!

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
6 [报告]
发表于 2013-05-16 10:03 |只看该作者
本帖最后由 goldenfort 于 2013-05-16 10:12 编辑

回复 1# liwentao1091


    先确定你  要拔的宽带线路 在pc  机上可以拨通,没有问题,

 再, 贴的这些文件里,好象没有配置拨号用户名和密码。
 

论坛徽章:
0
7 [报告]
发表于 2013-05-16 10:42 |只看该作者
回复 6# goldenfort
你好,我已经在电脑验证过,用户名和密码也已经设置!!!


   

论坛徽章:
0
8 [报告]
发表于 2013-05-16 16:24 |只看该作者
求助啊,已经花了一个星期的时间了,求高手!!!

论坛徽章:
0
9 [报告]
发表于 2013-05-16 16:50 |只看该作者
虽然不知道,但顶一下

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
10 [报告]
发表于 2013-05-17 08:18 |只看该作者
回复 1# liwentao1091


    应该是broadcom 平台吧, 这平台上pppoe拨号,本来就是好的。直接就可以拨
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP