LinuxSir.cn,穿越时空的Linuxsir!

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

ADSL怎么连不上?

[复制链接]
发表于 2004-10-6 17:38:44 | 显示全部楼层 |阅读模式
我按BLFS5.1的文档,怎么也弄不成ADSL。
我的内核里把网卡支持编入内核,PPP over Ethernet的支持编译成了模块,开机正常加载模块,
按BLFS5.1的文档编译成功了rp-pppoe,没有使用kernel-mode-pppoe,
adsl-setup设定的值如用户、密码、防火墙(选2)、DNS等等与在RedHat下一样,RedHat下ADSL使用是正常的。

我的/etc/sysconfig/network内容只有一句:
HOSTNAME=localhost
我的/etc/hosts里内容是:127.0.0.1 localhost
rp-pppoe文档中说不要给网卡指定任何地址和网关,
就把/etc/rc.d/rc*.d/下的network启动链接S50network之类都删去了(开机不启动网卡,不知道我理解的对不对)。

adsl-start时总显示............TIMED OUT,连不上!
帮帮忙,没招了。
发表于 2004-10-7 22:33:40 | 显示全部楼层
DEBUG=1 adsl-start

post the result if you can't resolve the problem..
 楼主| 发表于 2004-10-9 01:30:57 | 显示全部楼层
DEBUG=1 adsl-start 执行了,帖出pppoe-debug.txt文件在下面,请黯然兄帮忙看一下,另外,我装的这次LFS-5.1.1,为什么开机挂模块挂不上?好象modprobe.conf没什么用了,同样的内核配置,同样的/etc/modprobe.conf,在RH下开机挂一大堆模块,在LFS-5.1.1开机时只能挂上nls-cp936和nls-cp437这两个模块,但如果用手动挂其它模块则没见有异常,module-init-tools安装0.9.15和3.0、3.1的版本都试过了,每次重启看看还是仅仅有这两个nls模块能自动挂上!郁闷中.....................难道是LFS-5.1.1自身的问题?
我把网卡和PPPOE支持干脆都编入内核了,但还是连不上ADSL。


pppoe-debug.txt文件内容:
---------------------------------------------
* The following section contains information about your system
Sun Oct 10 01:09:15 CST 2004
Output of uname -a
Linux localhost 2.6.8 #5 Sun Oct 10 01:05:51 CST 2004 i686 GenuineIntel unknown
GNU/Linux
---------------------------------------------
* 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:0A:EB:7B:E6:2A
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  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:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:11 Base address:0x7000

lo        Link encapocal 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
nls_cp936             126080  2
nls_cp437               5312  2
---------------------------------------------
* 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.
nameserver 202.99.160.68
nameserver 202.99.177.29
---------------------------------------------
* The following section lists /etc/ppp/options.
* You should have NOTHING in that file.
Contents of /etc/ppp/options
lock
plugin rp-pppoe.so eth0
#user "adhs2050007@adsl
#password "02050007"
#defaultroute
---------------------------------------------
* 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=adhs2050007@adsl
---------------------------------------------
* 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-adsl.pid.pppoe -I eth0 -T 80 -U  -m 1412   ' noipdefault noa
uth default-asyncmap defaultroute hide-password nodetach  mtu 1492 mru 1492 noac
comp noccp nobsdcomp nodeflate nopcomp novj novjccomp user adhs2050007@adsl lcp-
echo-interval 20 lcp-echo-failure 3   debug
---------------------------------------------
Plugin rp-pppoe.so loaded.
RP-PPPoE plugin version 3.3 compiled against pppd 2.4.2
/usr/sbin/pppd: unrecognized option 'pty'
pppd version 2.4.2
Usage: /usr/sbin/pppd [ options ], where options are:
        <device>        Communicate over the named device
        <speed>         Set the baud rate to <speed>
        <loc>:<rem>     Set the local and/or remote interface IP
                        addresses.  Either one may be omitted.
        asyncmap <n>    Set the desired async map to hex <n>
        auth            Require authentication from peer
        connect <p>     Invoke shell command <p> to set up the serial line
        crtscts         Use hardware RTS/CTS flow control
        defaultroute    Add default route through interface
        file <f>        Take options from file <f>
        modem           Use modem control lines
        mru <n>         Set MRU value to <n> for negotiation
See pppd(8) for more options.
---------------------------------------------
* 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 Oct 10 01:09:16 CST 2004
---------------------------------------------
* 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
发表于 2004-10-9 01:59:02 | 显示全部楼层
内核编译没把async选中。在ppp附近的一个选项。
不知道你是否有这个问题?

pty没有,,我不知道为什么。。
运行: expect -c "spawn ls"
结果参考:
http://lfs.securewebservices.co. ... ter06/binutils.html
 楼主| 发表于 2004-10-9 22:24:30 | 显示全部楼层
内核没有问题,不过还是要谢谢黯然兄,没有你提供的DEBUG=1 adsl-start,我到现在也
想不到症结所在,我仔细看了看这个pppoe-debug.txt文件,发现/etc/ppp/options里有
一句"plugin rp-pppoe.so eth0"很可疑,因为我的/etc/ppp/plugins下没有rp-pppoe.so文件(至于为什么编译了rp-pppoe后没有这个.so文件,我不清楚),于是我把/etc/ppp/options修改为只有一句lock,其它语句都去掉,再开始adsl-start,意想不到的是出现了.Connected!
终于连上了,,呵呵,不好意思的是,我竟然一度怀疑是这个LFS5.1.1的毛病,实在惭愧
了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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