|
Conexant USB ADSL AccessRunner
Conexant 芯片的USB ADSL都可以使用
在MagicLinux-1.2-final上直接安装然后稍加配置就能使用了
安装以下软件包:
http://www.magiclinux.org/people/lovewilliam/USB_ADSL/cxacru-2004-07-24.k2.6.6mgc.i686.rpm
http://www.magiclinux.org/people/lovewilliam/linux-atm/linux-atm-2.4.1-2mgc.i686.rpm
然后编辑 /etc/cxacru 将你的信息设置好,
运行 adsl-setup 进行虚拟拨号设置
一切就绪后运行cxstart.sh就成啦!
配置请参考
http://www.linuxfans.org/nuke/modules.php?name=News&file=article&op=view&sid=2167
[quote:a5943d3161="lovewilliam"]
2.3设置协议
编辑/etc/cxacru文件,像这个样子:
[code:1]
#
# Config file for Conexant AccessRunner
#
# Driver mode
DRIVER_MODE=1 # 1 = normal, 2 = debug, 3 = normal+max speed (without ask adsl status), 4 = debug+max speed (without ask adsl status)
# Protocol
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
# 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
VPI=0
VCI=33
# Specific for RFC1483/2684 routed/bridged
# if IP_ADDRESS is blank in bridged mode then it uses DHCP to get IP
IP_ADDRESS=
NETMASK=255.255.255.255
GATEWAY=
[/code:1]
需要更改的是# Protocol # ADSL # ATM
如果你用的是RFC1483/2684协议还要设置# Specific for RFC1483/2684 routed/bridged
PPPOE和PPPOA的用户只要修改# Protocol # ADSL # ATM 这3项就可以了
3.拨号
在终端下输入cxstart.sh建立连接 cxstop.sh断掉连接
用ifconfig检查一下你是否已经连上了,像这个样子:
[code:1]
[root@Love root]# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
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)
nas0 Link encap:Ethernet HWaddr 00:00:01:00:00:00
inet6 addr: fe80::200:1ff:fe00:0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:17650 errors:0 dropped:0 overruns:0 frame:0
TX packets:15790 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:15856545 (15.1 Mb) TX bytes:2128934 (2.0 Mb)
ppp0 Link encap:Point-to-Point Protocol
inet addr:221.214.196.80 P-t-P:221.0.64.38 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:16454 errors:0 dropped:0 overruns:0 frame:0
TX packets:14588 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:15674609 (14.9 Mb) TX bytes:1613794 (1.5 Mb)
[root@Love root]#
[/code:1]
如果有nas0和ppp0那么恭喜你你已经成功了!
[/quote] |
|