LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1260|回复: 2

有关speedtouch usb adsl modem using PPPoE的,头都大了,里面有些有用的信息,大侠进来

[复制链接]
发表于 2003-7-20 17:08:00 | 显示全部楼层 |阅读模式
看了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的支持有多么重要了~~~~
 楼主| 发表于 2003-7-23 01:18:04 | 显示全部楼层
难道真没有人搞定过PPPoE????
发表于 2003-7-23 19:41:44 | 显示全部楼层
我也是USB的
搞不定
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表