|
发表于 2004-1-6 07:18:49
|
显示全部楼层
一定和我一样了,内置ALCATEL猫.不行的.至少我没搞定,给你个相关资料.也许你可以搞定哦.
Using Linux 2.4.19 with PPPoA and the ITEX DSL Drivers
Getting the ITEX DSL Drivers and Linux 2.4.16, 2.4.17, 2.4.18 or 2.4.19 has been a bit of a trivial task for some people, and a real hassle for others.
UPDATE! 2003-07-09 : Success has been reported with the 2.4.20 kernel (ages ago but I forgot to update) and [email protected] has gotten his Alcatel Speedtouch PCI ADSL Modem working under slackware and is willing to help out anyone with Slackware issues.
This trys to document the workings with the 2.4.19 kernel, which is what it seems most people are trying to use. The drivers were originally released for the 2.4.16 kernel and since then part of the process, the atm kernel patch, has been integrated into the 2.4 tree. This makes the whole setup a lot simpler, but still easily confused by the itex documents and older howtos.
Known itex modems include the Nokia Ni200, The Dynalink AH-110 and the Alcatel Speedtouch PCI. There are probably many more.
If you dont feel comfortable configuring your own kernel, a copy of the config I used is available here. This includes almost everything compiled as modules, and apart from the changes required within, the same config used for the 2.4 SmoothWall kernel. The config should be saved as .config in /usr/src/linux-2.4.19/ once extracted as below.
You'll Want To Install Iptables Sometime, If You'Re Using Debian A Simple apt-get install iptables should work, for other distributions you might have to download an rpm package or source package.
Download linux 2.4.19 kernel source from a mirror near you.
Download itex drivers from http://www.nzdsl.co.nz/software/other/Kernel-2.4.16.tar.gz
Extract the 2.4.19 kernel source to /usr/src
tar xjvf linux-2.4.19.tar.bz2
Extract the itex drivers to /usr/src
tar xzvf Kernel-2.4.16.tar.gz
Please note that since 2.4.19 it is no longer required to apply the patch supplied with the itex drivers.
Now configure your kernel with
make menuconfig
And set the following options.
Code Maturity Level Options
- Prompt for development and/or incomplete code/drivers [Y]
Networking options
- Packet socket [Y]
- Packet socket: mmapped IO [Y]
- Asynchronous Transfer Mode (ATM) (EXPERIMENTAL) [Y]
- RFC1483/2684 Bridged protocols [Y]
Network device support
- PPP (point-to-point protocol) support [Y]
- PPP Deflate compression [Y]
- PPP over Ethernet (EXPERIMENTAL) [Y]
- PPP over ATM (EXPERIMENTAL) [Y]
And make sure the following is NOT set
General setup
- Support for hot-pluggable devices [N]
Now if on Debian, and you have the kernel-package installed you can compile and install your kernel with
make-kpkg kernel_image
dpkg -i /usr/src/kernel-image-2.4.19_10.00.Custom_i386.deb
Otherwise just go ahead with the usual
make dep
make bzImage
make modules
make install
make modules_install
Now test the kernel, you'll probably want to be monitoring the syslog as well while you're doing this
insmod -f /path/to/itex1577-2.4.16.o
Now, you should get a few messages about the driver finding your modem, and if all goes well, current modem state : SHOWTIME_L0. Congratulations, your DSL modem is working. If not, I suggest you start again. The most likely place to go wrong is in the kernel configuration, or the modem isnt plugged in properly.
I'm not going to worry about the ATM package or the br2684ctl program, if you do decide to go ahead with the ATM install, its probably going to fail, if it does dont worry, do the make install anyway.
Follow the following for installing the ppp program
tar xzvf itexpppoa_for_2.4.16.tar.gz
cd ppp-2.4.0b2
make
make install
cp pppd/plugins/pppoatm.so /usr/lib/pppd/plugins
mv /usr/sbin/pppd /usr/sbin/pppd-pppoa
And then edit /etc/ppp/options
asyncmap 0
lock
proxyarp
noauth
defaultroute
usepeerdns
user [email protected]
plugin /usr/lib/pppd/plugins/pppoatm.so
0.100
Note that the 0.100 is the correct VPI/VCI pair for New Zealand, your ISP can probably help you find the correct values for your country if you're unsure.
Edit both /etc/ppp/chap-secrets and /etc/ppp/pap-secrets to contain the following line where user@domain is your login name, and password is the password supplied by your ISP.
user@domain * password
Now run /usr/sbin/pppd-pppoa and if all goes well, you should be connected to the internet. Check by using /sbin/ifconfig which should now show a ppp0 connection (or ppp1 if you were already had a ppp connection up)
--------------------------------------------------------------------------------
Sascha Beaumont - [email protected] |
|