|
楼主 |
发表于 2004-5-30 07:54:55
|
显示全部楼层
sorry,语气硬了点,把我自己的相关文件内容贴如下
/etc/cxacru
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=
# ATM
VPI=0
VCI=35
# 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.0
GATEWAY=
启动过程
[root@MagicLinuxfans root]#cxstart.sh
>>> Inits Conexant AccessRunner <<<
time to remove modules driver cxacrudbg
>>> Removing cxacru driver...
time to remove modules driver speedtch
>>> Removing cxacru driver...
>>> Loading firmware...
Conexant AccessRunner microcode upload program. 6/9/2003
Josep Comas <[email protected]>
See credits in documentation
I found ADSL modem with VendorID = 0572 & ProductID = cb00
Loading and sending /usr/sbin/cxfirm4.bin...
Firmware is sent!
Setting configuration...
Waiting ADSL line is up (until 90 seconds)...
........................
ADSL line is up (Downstream 5216 Kbits/s, Upstream 640 Kbits/s)
time to remove modules driver cxacrudbg
>>> Removing cxacru driver...
time to remove modules driver speedtch
>>> Removing cxacru driver...
checking remove modules
>>> Loading driver...
Launching driver in normal mode...
/usr/sbin/cxload.sh successful
Setting PPP over Ethernet...
>>> Setting PPPoE <<<
>>> Loading br2684 kernel module...
>>> Loading ppp_generic...
>>> Activating send/receive data...
Conexant AccessRunner ioctl call. 6/9/2003
Josep Comas <[email protected]>
See credits in documentation
I found ADSL modem with VendorID = 0572 & ProductID = cb00
>>> Loading br2684ctl...
RFC1483/2684 bridge: Interface "nas0" created sucessfully
RFC1483/2684 bridge: Communicating over ATM 0.0.35, encapsulation: LLC
RFC1483/2684 bridge: Interface configured
>>> Activating interface...
>>> Loading pppd daemon...
/usr/sbin/cxnet4up.sh successful
[root@MagicLinuxfans root]#
ifconfig
ifconfig
eth0 Link encap:Ethernet HWaddr 00:00:00:00:72:D6
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:168 (168.0 b)
Interrupt:11 Base address:0x6000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:100 (100.0 b) TX bytes:100 (100.0 b)
nas0 Link encap:Ethernet HWaddr 00:00:01:00:00:00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2652 errors:0 dropped:0 overruns:0 frame:0
TX packets:2697 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2803415 (2.6 Mb) TX bytes:348241 (340.0 Kb)
ppp0 Link encapoint-to-Point Protocol
inet addr:221.205.199.203 P-t-P:24.24.24.24 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:2625 errors:0 dropped:0 overruns:0 frame:0
TX packets:2670 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:2781219 (2.6 Mb) TX bytes:261678 (255.5 Kb)
[root@MagicLinuxfans root]# |
|