LinuxSir.cn,穿越时空的Linuxsir!

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

Conexant芯片实达5800UB(USB ADSL)猫,pppoe拨号的安装经验.

[复制链接]
发表于 2004-4-9 22:19:43 | 显示全部楼层 |阅读模式
这个芯片的猫,一直折腾了我快1年半了.今天它终于能够冲浪了.
下边是我的安装经验.

1系统说明.
redhat 9 内核没有更新过.为2.4.20-8  系统安装为最小 拨号方式PPPoe.

2. 下载相关软件.
安装使用的是gz包.RPM实验过几次都没有成功.
另外需要系统安装盘,或者网络下载,以解决可能出现的文件倚赖问题.

(1)ppp-2.4.1.tar.gz
ftp://cs.anu.edu.au/pub/software/ppp/ppp-2.4.1.tar.gz
详悉列表在这里
http://www.fr.linuxfromscratch.org/view/blfs-cvs/connect/ppp.html
(2)rp-pppoe-3.5.tar.gz
ftp://ftp.rutgers.edu/pub/slackw ... rp-pppoe-3.5.tar.gz
详悉列表在这里
http://www.linuxfromscratch.org/ ... /connect/pppoe.html
(3)linux-atm-2.4.1.tar.gz
http://prdownloads.sourceforge.n ... 4.1.tar.gz?download
详悉列表在这里
http://sourceforge.net/projects/linux-atm/
(4)cxacru-2003-10-05-src.tgz.tar(这里我使用了最新版,并且有GUI,你可以选择没有GUI的版本,会省去好多可能出现的麻烦)
http://prdownloads.sourceforge.n ... -2003-10-05-src.tgz
详悉列表在这里
http://prdownloads.sourceforge.net/accessrunner/
另:你可能没有安装usb软件包.那你需要从下边地址下载一个rpm,来安装usb支持.
记得安装后要重现启动一下.
ftp://rpmfind.net/linux/fedora/c ... -0.1.8-2.1.i386.rpm

3,可能出现的问题:
如果安装系统的时候没有安装下边这几个包,就会出现几种make或者是./configure错误.
<1>,GNOME开发环境(我选择了GUI的驱动,所以需要GTK和glade包支持.)
错误提示 cxacru/panel 相关.具体文件是 cxacru/panel/cxpanel.c的下边两行
#include <gtk/gtk.h>
#include <glade/glade.h>
解决办法,1下载无GUI的驱动,2使用redhat光盘引导.更新系统,安装GTK与glade包及其倚赖包,也就是安装GNOME开发套件.
<2>,没有安装内核原代码.
解决办法最好是:使用redhat光盘引导.更新系统,安装内核原代码.
然后要创建内核连接.具体的方法,请参考http://www.linuxsir.cn/forum.php?mod=viewthread&tid=41094
,这里就不在赘述了.
<3>,安装了linux-atm软件包以后仍然找不到libatm.so.1
解决办法是:复制/usr/local/lib目录里的libatm.so,libatm.so.1(注意这是个连接文件,真正的libatm.so.1的名子是libatm.so.1.0.0)libatm.so.1.0.0三个文件到/usr/lib目录.
<4>,记得一定要替换/usr/include/linux/sonet.h ! sonet.h 这个文件存在Bug.你可以到网上搜索此信息.sonet.h在附件中,请改名为sonet.h使用.
4,安装.(这里的软件包,我是在win下down的,然后在linux下挂载这个mat32分区.具体方法是:
[root@localhost root]#mount /dev/hea8(这个数字根据你的分区情况定) /met/f )

(1)安装以前,需要了解系统里是否安装了我们需要的软件.如果安装了.需要卸载.
具体方法是执行下列命令.(记得按照顺序开始,这样就没有倚赖关系了)

[root@localhost root]#rpm -q ppp 回车
如果返回的是没有安装该软件的信息.就可以跳过下个命令.
如果返回了安装了该软件的其他版本的信息.就要使用下边的命令删除该包
[root@localhost root]#rpm -e ppp --nodeps --force 回车
回到命令行提示符以后,我们检查rp-pppoe包.执行下列命令
[root@localhost root]#rpm -q rp-ppp 回车
如果返回的是没有安装该软件的信息.就可以跳过下个命令.
如果返回了安装了该软件的其他版本的信息.就要使用下边的命令删除该包
[root@localhost root]#rpm -e rp-ppp --nodeps --force
回到命令行提示符以后,我们检查linux-atm包.执行下列命令
[root@localhost root]#rpm -q linux-atm 回车
如果返回的是没有安装该软件的信息.就可以跳过下个命令.
如果返回了安装了该软件的其他版本的信息.就要使用下边的命令删除该包
[root@localhost root]#rpm -e linux-atm --nodeps --force
最后我们检查libusb包是否安装过.
[root@localhost root]#rpm -q libusb 回车
如果已经安装,可以不更新.
如果没有安装需要下列命令来安装该软件.
[root@localhost root]# cp /mnt/f/libusb-0.1.8-2.1.i386.rpm /usr
[root@localhost root]#cd /usr
[root@localhost usr]#rpm -Uvh libusb-0.1.8-2.1.i386.rpm
到现在,安装准备工作已经基本完成了.下边开始编译安装.
(2)首先来安装ppp软件
运行如下命令
[root@localhost usr]#cp /mnt/f/ppp-2.4.1.tar.gz /usr
[root@localhost usr]#tar zxvf ppp-2.4.1.tar.gz
[root@localhost usr]# cd ppp-2.4.1
[root@localhost ppp-2.4.1]# make
[root@localhost ppp-2.4.1]# make install
一般情况下,都会顺利通过.至此,ppp安装完毕.
(3)接着来安装rp-ppp软件
运行如下命令
[root@localhost ppp-2.4.1]cd ..
[root@localhost usr]#cp /mnt/f/rp-pppoe-3.5.tar.gz /usr
[root@localhost usr]#tar zxvf rp-pppoe-3.5.tar.gz
[root@localhost usr]#cd rp-pppoe-3.5
[root@localhost rp-pppoe-3.5]# ./go
一般情况下,都会顺利通过.在安装过程中会叫你来提供运行参数,这里可以直接完整输入.也可以简单跳过,以后使用adsl-setup设置.至此,rp-ppp安装完毕.
(4)然后来安装linux-atm软件
运行如下命令
[root@localhost rp-pppoe-3.5]#cd ..
[root@localhost usr]#cp /mnt/f/linux-atm-2.4.1.tar.gz /usr
[root@localhost usr]#tar zxvf linux-atm-2.4.1.tar.gz
[root@localhost usr]# cd linux-atm-2.4.1
[root@localhost linux-atm-2.4.1]#./configure
[root@localhost linux-atm-2.4.1]# make
[root@localhost linux-atm-2.4.1]# make install
一般情况下,都会顺利通过.至此linux-atm安装完毕.
(5)最后来安装5800UB USB ADSL modem的驱动软件cxacru-2003-10-05-src.tgz
运行如下命令
[root@localhost linux-atm-2.4.1]#cd ..
[root@localhost usr]#cp /mnt/f/cxacru-2003-10-05-src.tgz /usr
[root@localhost usr]#tar zxvf cxacru-2003-10-05-src.tgz
[root@localhost usr]# cd cxacru
[root@localhost cxacru]#make
[root@localhost cxacru]#make install
一般情况下,都会顺利通过.至此cxacru这个驱动程序安装完毕.
所有程序安装完毕.

5,配置.
运行如下命令开始设置
[root@localhost cxacru]#adsl-setup
Welcome to the Roaring Penguin ADSL client setup.  First, I will run
some checks on your system to make sure the PPPoE client is installed
properly...

Looks good!  Now, please enter some information:

USER NAME

>>> Enter your PPPoE user name (default hlyeseek):  在这里输入你的拨号帐号

INTERFACE

>>> Enter the Ethernet interface connected to the ADSL modem
For Solaris, this is likely to be something like /dev/hme0.
For Linux, it will be ethn, where 'n' is a number.
(default nas0): nas0 这里是你使用adsl猫产生的虚拟网卡,一般是nas0

Do you want the link to come up on demand, or stay up continuously?
If you want it to come up on demand, enter the idle time in seconds
after which the link should be dropped.  If you want the link to
stay up permanently, enter 'no' (two letters, lower-case.)
NOTE: Demand-activated links do not interact well with dynamic IP
addresses.  You may have some problems with demand-activated links.
>>> Enter the demand value (default no): 这里直接回车

DNS

Please enter the IP address of your ISP's primary DNS server.
If your ISP claims that 'the server will provide DNS addresses',
enter 'server' (all lower-case) here.
If you just press enter, I will assume you know what you are
doing and not modify your DNS setup.
>>> Enter the DNS information here:202.96.134.133 这里是第一DNS寻址信息
Please enter the IP address of your ISP's secondary DNS server.
If you just press enter, I will assume there is only one DNS server.
>>> Enter the secondary DNS server address here:202.96.168.68
这里是第二DNS寻址信息

PASSWORD

>>> Please enter your PPPoE password: 在这里输入pppoe拨号密码
>>> Please re-enter your PPPoE password: 在这里输入pppoe拨号密码
FIREWALLING

Please choose the firewall rules to use.  Note that these rules are
very basic.  You are strongly encouraged to use a more sophisticated
firewall setup; however, these will provide basic security.  If you
are running any servers on your machine, you must choose 'NONE' and
set up firewalling yourself.  Otherwise, the firewall rules will deny
access to all standard servers like Web, e-mail, ftp, etc.  If you
are using SSH, the rules will block outgoing SSH connections which
allocate a privileged source port.

The firewall choices are:
0 - NONE: This script will not set any firewall rules.  You are responsible
          for ensuring the security of your machine.  You are STRONGLY
          recommended to use some kind of firewall rules.
1 - STANDALONE: Appropriate for a basic stand-alone web-surfing workstation
2 - MASQUERADE: Appropriate for a machine acting as an Internet gateway
                for a LAN
>>> Choose a type of firewall (0-2):0 这里是防火墙选择.

** Summary of what you entered **

Ethernet Interface: nas0
Ethernet Interface: nas0
User name:          hlyeseek
Activate-on-demand: No
Primary DNS:        202.96.134.133
Secondary DNS:     202.96.168.68
Firewalling:        STANDALONE

>>> Accept these settings and adjust configuration files (y/n)?y
输入y回车保存信息.
设置好pppoe配置文件以后.进入etc目录
使用下边命令
[root@localhost cxacru]#cd /etc
[root@localhost etc]#vi cxacru (也可以使用任何文本编辑器)
按键盘上的 a键,进入编辑模式
# Driver mode 这里不需要修改
DRIVER_MODE=1  # 1 = normal, 2 = debug, 3 = normal+max speed (without ask adsl status), 4 = debu
g+max speed (without ask adsl status)

# Protocol 这里要选择4也就是PROTOCOL_MODE=4
PROTOCOL_MODE=4  # 1 = RFC1483/2684 routed, 2 = PPP over ATM (pppoa), 3 = RFC1483/2684 bridged,
4 = PPP over Ethernet (pppoe)

# Paths 这里不需要修改
BINARY_PATH="/usr/sbin"
ATM_PATH=""

# ADSL 这里要根据你的猫的调制方式选择,我的是 G.dmt,所以我选择4,(win下看,##得到.可以留空,但是会影响adsl初始化时间)
#  if OPEN_MODE is blank then cxload uses default mode acoording VID & PID
#  Values for OPEN_MODE are:
#    0 = auto selection, G.Handshake
#    1 = auto selection, T1.413
#    2 = G.Handshake
#    3 = ANSI T1.413
#    4 = ITU-T G.992.1 (G.DMT)
#    5 = ITU-T G.992.2 (G.LITE)
OPEN_MODE=4

# ATM 这里就不用说了,通道参数,可以在win下看到,也可以咨询ISP.根据你的数添
VPI=8
VCI=81

# Specific for RFC1483/2684 routed/bridged
#  if IP_ADDRESS is blank in bridged mode then it uses DHCP to get IP 网络配##置,一般不需要改,但是我还是把这里的NETMASK设置成了255.255.255.255,实际#有画蛇添足的嫌疑,呵呵,被折腾怕了.
IP_ADDRESS=
NETMASK=255.255.255.255
GATEWAY=
按键盘上的Esc键,输入  :wq  然后Enter保存信息
到这里cxacru文件编辑完成.
然后要作的是打开 /etc/hotplug/blacklist  文件,添加usbcam 这个参数到文件的最后一行.
[root@localhost etc]#cd /etc/hotplug
[root@localhost hotplug]#vi blacklist
按键盘上的 a键,进入编辑模式
#
# Listing a module here prevents the hotplug scripts from loading it.
# Usually that'd be so that some other driver will bind it instead,
# no matter which driver happens to get probed first.  Sometimes user
# mode tools can also control driver binding.
#
# Syntax:  driver name alone (without any spaces) on a line. Other
# lines are ignored.
#

# uhci ... usb-uhci handles the same pci class
usb-uhci

# tulip ... de4x5, xircom_tulip_cb, dmfe (...) handle same devices
de4x5
# At least 2.4.3 and later xircom_tulip doesn't have that conflict
# xircom_tulip_cb
dmfe
usbcam
按键盘上的Esc键,输入  :wq 回车保存信息
/*这里的操作可能你不需要.如果你确定想要和我一样设置,请一定要将DHCP服务器地址输入正确.使用下边命令进行操作.
[root@localhost hotplug]#redhat-config-network
如果你没有安装这个软件包,请添加它.是个不错的工具.
在出现的窗口中,双击ppp0这个设备.-->出现一个新窗口-->选择自动获得IP地址,后边的选择框选择拨号.(不是DHCP噢).接着在这行的下边有主机名(可选)(H)在那里输入你在win下边看到的服务器的IP地址.获得方法是,在WIN桌面右下双击哪个拨号图标,会看到本地,和服务器两个地址.
接着保存退出*/
至于/etc/ppp/options文件,pppoe可能不必修改.至少我们这里是这样的.

到现在为止,我们应该可以认定这个该死的猫已经可以游泳了.那叫我们开始吧.

[root@localhost hotplug]#cxstart.sh
[root@localhost hotplug]#ifconfig
看下nas0和ppp0都激活了吧?
接着该干什么了呢?那随你.............

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
 楼主| 发表于 2004-4-24 02:29:06 | 显示全部楼层

各地DNS列表。

在我这里使用202.96.168.68 和202.96.134.133,有时候会解析的很慢。选择了辽宁本地的效果好了很多。
难道这也有关系?
------------------------------
北京 10.2.1.38 202.106.196.115 202.106.0.20
上海 10.95.0.3 202.96.199.133 202.96.0.133
天津 10.10.64.68 202.99.96.68
广东 202.96.128.68 202.96.128.110
河南 10.68.160.3 10.68.32.3 202.102.227.68 202.102.245.12
广西 10.137.128.40 202.103.224.68 202.96.128.68
福建 10.110.0.10 202.101.98.55 202.101.98.54
湖南 10.62.1.17 202.103.96.68 202.103.0.68
江苏 202.102.29.3 10.74.32.30 202.102.15.162
陕西 10.172.18.8 202.100.4.16 202.100.0.68
湖北 10.55.0.33 10.54.2.136 202.103.0.68
山东 10.82.17.68 202.102.152.3 202.102.154.3
浙江 10.103.68.1 202.96.96.68 202.96.104.18
辽宁 10.34.11.2 202.96.75.68 202.98.0.68
安徽 10.89.64.5 202.102.192.68
重庆 10.150.0.1 61.128.128.68
黑龙江 10.48.2.4 202.97.224.68 202.97.229.133
河北 10.17.128.90 202.99.160.68
吉林 10.42.64.65 10.44.223.66 202.98.14.18 202.98.14.19
江西 10.117.32.40 202.101.224.68
山西 10.23.32.22 202.99.192.68
新疆 10.196.1.14 61.128.97.73 61.128.97.74
贵州 10.157.2.15 202.98.192.68
云南 10.162.10.3 202.98.160.68 202.98.96.68
四川 10.143.0.69 202.98.96.68
内蒙古 10.29.0.2 202.99.224.68
青海 10.184.0.1 202.100.128.68
海南 10.131.16.88 202.100.192.68 202.100.199.8
宁夏 10.190.2.67 202.100.96.68 202.100.0.68
甘肃 10.179.64.1 202.100.72.13
香港 205.252.144.228 208.151.69.65
澳门 202.175.3.8 202.175.3.3
发表于 2004-4-30 21:05:28 | 显示全部楼层
yeseek兄辛苦了。。

本文极尽详细!成文有序!有条有理,最适合我等菜鸟弟兄。。。


加为精华帖,以供弟兄们分享!

再次感谢!

北南 呈上
 楼主| 发表于 2004-5-1 17:49:28 | 显示全部楼层
最初由 北南南北 发表
yeseek兄辛苦了。。

本文极尽详细!成文有序!有条有理,最适合我等菜鸟弟兄。。。


加为精华帖,以供弟兄们分享!

再次感谢!

北南 呈上


你等尚且为菜鸟。那我等岂不是$%#$%?

惭愧。
看来要努力了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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