|
看了bianwei兄的教程,在Magic Linux 1.1下小试一下,竟然不工作,回到win2000看看,才发现我们这里中国电信提供的只有PPPoE ,有点失望,然后用GOOGLE乱找一通,不小心找到好文一篇:http://www.linux.ie/articles/tutorials/adsl-howto.php
理论上讲,依据他的步骤,应该可以成功,可我却卡壳了,发了封信向作者求助,被退了回来,信的内容如下:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
hi,
thank you for your article about speedtouch usb adsl modem using PPPoE.
But following your instructions,my usb modem doesn't work yet.
the followings are my successful steps:
updated my kernel to the 2.4.21 with the options you provided.
installed the kernel module of speedtouh(speedtouch-1.6 ,include sarlib).
installed speedmgmt.
installed linux-atm-2.4.1 to my linux box.
installed pppd-2.4.0-pppoe.
compiled and installed brctl-010226.c correctly.
configured the options and chap-secrets.
everything works very well,but when i run this command:
br2684ctl -b -c 0 -a 8.35
it give me such msg:nas0 created successfully
Communicating over ATM 0.8.35, encapsulation: LLC
fatal:failed to connect on socket
After ignoring these msgs,run:ifconfig nas0 up &&pppd,the kernel painc
i use Magic Linux 1.1(a chinese contribution based on redhat) with a RTL8139(A) PCI Fast Ethernet Card(eth0).
i have searched the google.com,but no any useful info for me,so i give you this email,hope you can give me
some advice.
thank you very much
here is the code piece near the fatal:
if ((fd = socket(PF_ATMPVC, SOCK_DGRAM, ATM_AAL5)) < 0)
syslog(LOG_ERR,"failed to create socket %d, reason: %s", errno,strerror(errno));
memset(&qos, 0, sizeof(qos));
qos.aal = ATM_AAL5;
qos.txtp.traffic_class = ATM_UBR;
qos.txtp.max_sdu = 1524;
qos.txtp.pcr = ATM_MAX_PCR;
qos.rxtp = qos.txtp;
if ( (err=setsockopt(fd,SOL_SOCKET,SO_SNDBUF, &bufsize ,sizeof(bufsize))) )
syslog(LOG_ERR,"setsockopt SO_SNDBUF: (%d) %s\n",err, strerror(err));
if (setsockopt(fd, SOL_ATM, SO_ATMQOS, &qos, sizeof(qos)) < 0)
syslog(LOG_ERR,"setsockopt SO_ATMQOS %d", errno);
err = connect(fd, (struct sockaddr*)&addr, sizeof(struct sockaddr_atmpvc));
if (err < 0)
fatal("failed to connect on socket", err);
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
希望有人按这个教程做一遍,然后帮帮我,看问题出在哪,谢谢了
这可是我在linux碰到的最强大的敌人,但我相信在大家的努力下一定能消灭她。
终于明白了硬件制造商对linux的支持有多么重要了~~~~ |
|