LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: joeycn

Mandrake 下如何实现ADSL上网啊?

[复制链接]
发表于 2003-4-26 09:38:56 | 显示全部楼层
安装USB ADSL Modem只差最后一步了,无法解决
按照前辈的方法,成功安装了基于Globespan GS7070芯片的USB ADSL Modem(长虹CH200)的驱动程序。方法是这样的:

如果要驱动这一类型的usb adsl modem首先要下载两个驱动包

1.synch bin文件包,这个包包含了所有bin文件,bin文件的作用在于让你的modem和电信局端同步,不同的设备可能使用不同的bin,我的modem施用第15个.
下载地址:
http://eciadsl.flashtux.org/eciadsl_synch_bin.tar.gz

2.下载驱动程序.
驱动程序要下载cvs版本,这样才可一支持他的列表中没有的设备
下载地址:
http://eciadsl.flashtux.org/eciadsl_usermode_cvs.tar.gz

安装过程:
1.首先一定要确认你的设备的vid1/pid1和vid2/vid2.
如果不知道,可以在解压后的文件夹中,找到一个名子叫probe_device.sh的文件,运行它可以监测出来你的modem的这两组号码

2.在驱动程序的解压文件夹中运行:
./configure
make
make install
3.起动你的 x window,然后运行 eciconf.sh
按照提示输入你的modem的vid/pid号码,在 根据你的isp的介入方式选择不同的模式.
我在上海,我用的是rfc1843 LLC方式
还要确定vpi/vci的参数正确.
4.另外还要选择合适的bin文件,你可以把所有解压的bin都复制到/etc/eciadsl中,然后在运行ecionf.sh的时候一个一个试.
5.确定好你的设置之后,点create config!
6.最好的字符模式下,运行startmodem.这样有利于troubleshooing.
7.如果运行startmodem成功,你会发现多出来一个网络界面,我的名子叫做tap0,如果没有成功,一般是bin没有选对,或者模式错误
8.使用rp-pppoe软件.
运行adsl-setup.按照提示输入认证用的用户名密码,dns等.
还要注意,它还会问你使用哪个网络界面拨号,一定要选择刚刚多出来的那个.(我的系统里是tap0
你的系统可能会不同.)
9.运行adsl-start.少等片刻,这时你应该可以冲浪了^_^


用Eciconftxt.sh进行配置,已经基本上正确。指示灯显式和电信局端已经握手。但卡在这儿了,屏幕提示是这样的:


ECI load 1:success
fireware loaded successfully

setting up modem (3/5)..

ECI load 2:success
synchronization successful

connecting modem (4/5)..
connection successful

setting up route table (5/5)..

waiting for tun0..
couldn't set your static IP or your
if you don't use PPPoE, please check

请问是否是封装形式没选对,我选的是默认第一项。
在WinXP中显示我的Modem封装为RFC2516 PPPoE封装,但在Linux设置中没有这个选项,所以选了近似的。
发表于 2003-4-27 13:07:22 | 显示全部楼层
SnowingA兄,这个USB的ADSL,您应该到硬件版中,去跟帖,这样就会有弟兄帮助了。。。。

要学会用论坛及跟帖,请看我的签 名,多谢。
发表于 2003-4-27 22:41:45 | 显示全部楼层
受教。谢谢。
发表于 2003-5-3 22:38:21 | 显示全部楼层

请帮忙看看我的ADSL问题(附ifcfg-eth0,net_cnx_up,pppoe.conf,resolv.conf)

Mandrake9.1,安装了http://www.roaringpenguin.com/pppoe/rp-pppoe-3.5.tar.gz后./go安装成功,adsl-setup根据提示逐步设置成功,可是adsl-start却总是提示超时无法连接
................TIMED OUT
/usr/sbin/adsl-start: line 194: 4422 Terminated $CONNECT "$@" >/dev/null 2>&1


附/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/ppp/pppoe.conf
/etc/resolv.conf
/etc/sysconfig/network-scripts/net_cnx_up
这四个文件的内容,请各位前辈帮忙看看是什么问题?
ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
IPADDR=10.0.0.10
NETMASK=255.255.255.0
NETWORK=10.0.0.0
BROADCAST=10.0.0.255
ONBOOT=yes
MII_NOT_SUPPORTED=yes
net_cnx_up
#!/bin/bash
/sbin/route del default
LC_ALL=C LANG=C LANGUAGE=C LC_MESSAGES=C /usr/sbin/adsl-start eth0 'aa@163'
pppoe.conf
#***********************************************************************
#
# pppoe.conf
#
# Configuration file for rp-pppoe.  Edit as appropriate and install in
# /etc/ppp/pppoe.conf
#
# NOTE: This file is used by the adsl-start, adsl-stop, adsl-connect and
#       adsl-status shell scripts.  It is *not* used in any way by the
#       "pppoe" executable.
#
# Copyright (C) 2000 Roaring Penguin Software Inc.
#
# This file may be distributed under the terms of the GNU General
# Public License.
#
# LIC: GPL
# $Id: pppoe.conf,v 1.10 2002/04/09 17:28:38 dfs Exp $
#***********************************************************************

# When you configure a variable, DO NOT leave spaces around the "=" sign.

# Ethernet card connected to ADSL modem
ETH='eth0'

# ADSL user name.  You may have to supply "@provider.com"  Sympatico
# users in Canada do need to include "@sympatico.ca"
# Sympatico uses PAP authentication.  Make sure /etc/ppp/pap-secrets
# contains the right username/password combination.
# For Magma, use xxyyzz@magma.ca
USER='aa@163'

# Bring link up on demand?  Default is to leave link up all the time.
# If you want the link to come up on demand, set DEMAND to a number indicating
# the idle time after which the link is brought down.
DEMAND=no
#DEMAND=300

# DNS type: SERVER=obtain from server; SPECIFY=use DNS1 and DNS2;
# NOCHANGE=do not adjust.
DNSTYPE=NOCHANGE

# Obtain DNS server addresses from the peer (recent versions of pppd only)
# In old config files, this used to be called USEPEERDNS.  Changed to
# PEERDNS for better Red Hat compatibility
PEERDNS=no

DNS1=
DNS2=

# Make the PPPoE connection your default route.  Set to
# DEFAULTROUTE=no if you don't want this.
DEFAULTROUTE=yes

### ONLY TOUCH THE FOLLOWING SETTINGS IF YOU'RE AN EXPERT

# How long adsl-start waits for a new PPP interface to appear before
# concluding something went wrong.  If you use 0, then adsl-start
# exits immediately with a successful status and does not wait for the
# link to come up.  Time is in seconds.
#
# WARNING WARNING WARNING:
#
# If you are using rp-pppoe on a physically-inaccessible host, set
# CONNECT_TIMEOUT to 0.  This makes SURE that the machine keeps trying
# to connect forever after adsl-start is called.  Otherwise, it will
# give out after CONNECT_TIMEOUT seconds and will not attempt to
# connect again, making it impossible to reach.
CONNECT_TIMEOUT=30

# How often in seconds adsl-start polls to check if link is up
CONNECT_POLL=2

# Specific desired AC Name
ACNAME=

# Specific desired service name
SERVICENAME=

# Character to echo at each poll.  Use PING="" if you don't want
# anything echoed
PING="."

# File where the adsl-connect script writes its process-ID.
# Three files are actually used:
#   $PIDFILE       contains PID of adsl-connect script
#   $PIDFILE.pppoe contains PID of pppoe process
#   $PIDFILE.pppd  contains PID of pppd process
CF_BASE=`basename $CONFIG`
PIDFILE="/var/run/$CF_BASE-adsl.pid"

# Do you want to use synchronous PPP?  "yes" or "no".  "yes" is much
# easier on CPU usage, but may not work for you.  It is safer to use
# "no", but you may want to experiment with "yes".  "yes" is generally
# safe on Linux machines with the n_hdlc line discipline; unsafe on others.
SYNCHRONOUS=no

# Do you want to clamp the MSS?  Here's how to decide:
# - If you have only a SINGLE computer connected to the ADSL modem, choose
#   "no".
# - If you have a computer acting as a gateway for a LAN, choose "1412".
#   The setting of 1412 is safe for either setup, but uses slightly more
#   CPU power.
CLAMPMSS=1412
#CLAMPMSS=no

# LCP echo interval and failure count.
LCP_INTERVAL=20
LCP_FAILURE=3

# PPPOE_TIMEOUT should be about 4*LCP_INTERVAL
PPPOE_TIMEOUT=80

# Firewalling: One of NONE, STANDALONE or MASQUERADE
FIREWALL=NONE

# 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=

# Any extra arguments to pass to pppoe.  Normally, use a blank string
# like this:
PPPOE_EXTRA=""

# Rumour has it that "Citizen's Communications" with a 3Com
# HomeConnect ADSL Modem DualLink requires these extra options:
# PPPOE_EXTRA="-f 3c12:3c13 -S ISP"

# Any extra arguments to pass to pppd.  Normally, use a blank string
# like this:
PPPD_EXTRA=""


########## DON'T CHANGE BELOW UNLESS YOU KNOW WHAT YOU ARE DOING
# If you wish to COMPLETELY overrride the pppd invocation:
# Example:
# OVERRIDE_PPPD_COMMAND="pppd call dsl"

# If you want adsl-connect to exit when connection drops:
# RETRY_ON_FAILURE=no
resolv.conf
search adsl
nameserver 192.168.0.2

# ppp temp entry
发表于 2003-5-5 18:32:50 | 显示全部楼层

我实在搞不定了,麻烦南北兄来看一下(adsl问题)..

Mandrake9.1下,照您说的方法设置eth0和ppp0,可以ping通localhost,可是adsl-start时总显示错误如下:

[root@localhost root]# /usr/sbin/adsl-start
................TIMED OUT
/usr/sbin/adsl-start: line 193:  3040 Terminated              $CONNECT "$@" >/dev/null 2>&1

后来装上rp-pppoe后在文本界面时(./go)可以设置adsl相关信息,但连接时依旧显示超时错误;图形界面(./go-gui)竟然无法输入(好像键盘坏了一样)?!

我反反复复试了n次,包括设置静态ip,dhcp分配ip......请南北兄一定帮帮忙啊!
发表于 2003-5-5 21:41:24 | 显示全部楼层
呵呵。。。先查看一下网络配置,看看网卡有没有被正确配置
发表于 2003-5-6 00:36:29 | 显示全部楼层
要发以下文件的内容:

/etc/sysconfig/network-scripts/ifcfg-eth0

/etc/ppp/pppoe.conf

/etc/resolv.conf

/etc/sysconfig/network-scripts/net_cnx_up


多谢。
发表于 2003-5-6 08:31:55 | 显示全部楼层

那四个文件的内容在此页上数第9个贴,谢谢!

每个文件标题用蓝色标出来了
麻烦南北兄给看一下,多谢!!
发表于 2003-5-6 18:51:32 | 显示全部楼层
/etc/sysconfig/network-scripts/ifcfg-eth0文件

DEVICE=eth0
BOOTPROTO=none
IPADDR=10.0.0.10
NETMASK=255.255.255.0
BROADCAST=10.0.0.255
ONBOOT=yes
USERCTL=yes
PEERDNS=yes
TYPE=Ethernet




net_cnx_up文件内容改为如下形式的aa@163的引号要去掉。
#!/bin/bash
/sbin/route del default
LC_ALL=C LANG=C LANGUAGE=C LC_MESSAGES=C /usr/sbin/adsl-start eth0 aa@163

/etc/ppp/pppoe.conf出问题太多了。要改以下几处。

DNSTYPE=SPECIFY

DNS1=202.96.134.133
DNS2=202.96.168.68

/etc/resolov.conf的内容改为

nameserver 202.96.134.133
nameserver 202.96.168.68

改完后就重启机器。如果adsl没有启动。就运行
#adsl-start
发表于 2003-5-7 14:23:13 | 显示全部楼层

算了,看来我和Mandrake没有缘分...:(

十分感谢南北兄的回复,照您说的做了,可是adsl问题依旧,也许是和Mandrake没有缘分?哈,在Redhat下向您再次表示感谢!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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