免费注册 查看新帖 |

Chinaunix

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

ADSL的拨号上网问题,请高手帮诊断一下 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-12-14 17:28 |只看该作者 |倒序浏览
我用我的开发板进行嵌入式拨号上网测试,能够发出去数据包了,但没有收到ADSL MODEM回答的数据包
以下是我的出错信息,请做过的高手帮我诊断一下是哪里出了错?多谢!

另外请问一下
/etc/ppp/pppoe.conf中
这句话该不该加?
# Linux kernel-mode plugin for pppd.  If you want to try the kernel-mode
# plugin, use LINUX_PLUGIN=/etc/ppp/plugins/rp-pppoe.so
LINUX_PLUGIN=/etc/ppp/plugins/rp-pppoe.so


---------------------------------------------
* The following section contains information about your system
Sat Nov  5 13:19:11 UTC 2005
Output of uname -a
Linux fa 2.4.18-rmk7-pxa1 #7 ?. 11.. 15 19:32:00 CST 2005 armv4l 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
eth0      Link encap:Ethernet  HWaddr 00:00:C0:FF:EE:08
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:0 (0.0 iB)  TX bytes:0 (0.0 iB)
          Interrupt:37 Base address:0x300
                                                                                                                                             
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:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 iB)  TX bytes:0 (0.0 iB)
                                                                                                                                             
sit0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 iB)  TX bytes:0 (0.0 iB)
                                                                                                                                             
---------------------------------------------
* 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    Not tainted
usbkbd                  2708   0 (unused)
rf                      4112   0 (unused)
evdev                   3356   0 (unused)
mousedev                4276   0 (unused)
keybdev                 1716   0 (unused)
input                   3536   0 [usbkbd evdev mousedev keybdev]
---------------------------------------------
* 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
---------------------------------------------
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.
search localhost
nameserver 202.96.134.134
nameserver 202.96.128.68
---------------------------------------------
* The following section lists /etc/ppp/options.
* You should have NOTHING in that file.
Contents of /etc/ppp/options
lock
---------------------------------------------
* 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=szcenhu@163.gd
---------------------------------------------
* The following section shows the pppd command we will invoke
pppd invocation
/usr/local/sbin/pppd pty '/usr/sbin/pppoe -p /var/run/pppoe.conf-adsl.pid.pppoe -I eth0 -T 80 -U  -m 1412   '  noipdefault noauth default-ag---------------------------------------------
using channel 3
Using interface ppp0
Connect: ppp0 <--> /dev/pts/0
Warning - secret file /etc/ppp/pap-secrets has world and/or group access
sent [LCP ConfReq id=0x1 <mru 1492> <magic 0x24d44af>]
sent [LCP ConfReq id=0x1 <mru 1492> <magic 0x24d44af>]
sent [LCP ConfReq id=0x1 <mru 1492> <magic 0x24d44af>]
sent [LCP ConfReq id=0x1 <mru 1492> <magic 0x24d44af>]
sent [LCP ConfReq id=0x1 <mru 1492> <magic 0x24d44af>]
sent [LCP ConfReq id=0x1 <mru 1492> <magic 0x24d44af>]
sent [LCP ConfReq id=0x1 <mru 1492> <magic 0x24d44af>]
sent [LCP ConfReq id=0x1 <mru 1492> <magic 0x24d44af>]
sent [LCP ConfReq id=0x1 <mru 1492> <magic 0x24d44af>]
sent [LCP ConfReq id=0x1 <mru 1492> <magic 0x24d44af>]
LCP: timeout sending Config-Requests
Connection terminated.
using channel 4
Using interface ppp0
Connect: ppp0 <--> /dev/pts/1
Waiting for 2 child processes...
  script /usr/sbin/pppoe -p /var/run/pppoe.conf-adsl.pid.pppoe -I eth0 -T 80 -U  -m 1412    -D /tmp/pppoe-debug-250/pppoe-debug.txt-0, pid 37  script /usr/sbin/pppoe -p /var/run/pppoe.conf-adsl.pid.pppoe -I eth0 -T 80 -U  -m 1412    -D /tmp/pppoe-debug-250/pppoe-debug.txt-0, pid 35Warning - secret file /etc/ppp/pap-secrets has world and/or group access
sent [LCP ConfReq id=0x2 <mru 1492> <magic 0xc1e594ab>]
pppoe: Timeout waiting for PADO packets
Script /usr/sbin/pppoe -p /var/run/pppoe.conf-adsl.pid.pppoe -I eth0 -T 80 -U  -m 1412    -D /tmp/pppoe-debug-250/pppoe-debug.txt-0 finished1sent [LCP ConfReq id=0x2 <mru 1492> <magic 0xc1e594ab>]
sending SIGTERM to process 357
tcflush failed: Bad file descriptor
---------------------------------------------
* 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
Sat Nov  5 13:19:49 UTC 2005
---------------------------------------------
* 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.5
13:19:44.511 SENT PPPoE Discovery (8863) PADI sess-id 0 length 12
SourceAddr 00:00:c0:ff:ee:08 DestAddr ff:ff:ff:ff:ff:ff
01 01 00 00 01 03 00 04 66 01 00 00               ........f...
                                                                                                                                             
13:19:49.628 SENT PPPoE Discovery (8863) PADI sess-id 0 length 12
SourceAddr 00:00:c0:ff:ee:08 DestAddr ff:ff:ff:ff:ff:ff
01 01 00 00 01 03 00 04 66 01 00 00               ........f...
                                                                                                                                             
pppoe: Timeout waiting for PADO packets

[ 本帖最后由 specialroc 于 2005-12-14 17:30 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2005-12-15 17:18 |只看该作者

up

自己顶一下

论坛徽章:
0
3 [报告]
发表于 2006-03-29 07:35 |只看该作者
你如何知道你的包已经发出去了呢?

论坛徽章:
0
4 [报告]
发表于 2006-03-29 07:36 |只看该作者
我现在遇到和你同样的问题,如果你解决了,还请多指教。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP