- 论坛徽章:
- 0
|
参照, http://blog.sina.com.cn/s/blog_4d61a7570100fsie.html , 编译 pppoe ,
1.总是连接超时
[root@utu-Linux]\$ pppoe-start
.dm9000: dm9000_hash_table()
...............TIMED OUT
2.打开调试功能
[root@utu-Linux]\$export DEBUG=1
[root@utu-Linux]\$ pppoe-start
*** Running in debug mode... please be patient...
dm9000: dm9000_hash_table()
cat: can't open '/tmp/pppoe-debug-1034/pppoe-debug.txt-0': No such file or directory
*** Finished debugging run. Please review the file
*** '/tmp/pppoe-debug-1034/pppoe-debug.txt' and try to
*** figure out what is going on.
***
*** Unfortunately, we can NO LONGER accept debugging
*** output for analysis. Please do not send this to
*** Roaring Penguin; it is too time-consuming for
*** us to deal with all the analyses we have been sent.
[root@utu-Linux]\$ cd cd /tmp/pppoe-debug-1034
[root@utu-Linux]\$ ls
pppoe-debug.txt
现象, 显示以上信息后,立即退出,明显没到30秒(估计也就2秒的样子)
3.
[root@utu-Linux]\$ cat pppoe-debug.txt
---------------------------------------------
* The following section contains information about your system
Sun Dec 23 09:58:47 UTC 2001
Output of uname -a
Linux utu-linux 2.6.24.4 #262 Mon Dec 7 16:31:45 CST 2009 armv4tl 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:22:44:66:88:AA
inet addr:192.168.16.168 Bcast:192.168.16.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:80 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:9036 (8.8 KiB) TX bytes:0 (0.0 B)
Interrupt:53 Base address:0x2300
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 B) TX bytes:0 (0.0 B)
---------------------------------------------
* 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
proc_net 2060 0
adc 2836 0
megent_card_drv 9012 0
ch452 7364 0
Fs_Print 6360 0
Rc531 25540 0
smart_driver 16136 0
lcd_160_drv 18952 0
---------------------------------------------
* 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.16.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
---------------------------------------------
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.
nameserver 202.96.134.133
---------------------------------------------
* 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=PPPTEST
---------------------------------------------
* 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.conf-pppoe.pid.pppoe -I eth0 -T 80 -U -m 1412 ' noipdefault noauth default-asyncmap defaultroute hide-password nodetach mtu 1492 mru 1492 noaccomp nodeflate nopcomp novj novjccomp user PPPTEST lcp-echo-interval 20 lcp-echo-failure 3 debug
---------------------------------------------
setsid: /usr/sbin/pppd: No such file or directory
---------------------------------------------
* 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
Sun Dec 23 09:58:48 UTC 2001
---------------------------------------------
* 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
pppoe-debug.txt 里面全是无用的信息 , /pppoe-debug-1034/pppoe-debug.txt-0'又没创建成功,
请教有经验的大侠, 怎么调试解决上述情况?? |
|