QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1065|回复: 8

请问linux rh9+adsl上网,必须要网卡吗?

[复制链接]
发表于 2004-1-3 21:39:14 | 显示全部楼层 |阅读模式
阿尔卡特的adsl,上网,必须要网卡吗?在win2k下不用,装了驱动就能上了。
linux下是否要装网卡?请教一下。
 楼主| 发表于 2004-1-4 18:51:20 | 显示全部楼层
怎么没人回答呀,斑竹呢?
回复

使用道具 举报

发表于 2004-1-5 18:55:23 | 显示全部楼层
请把您的问题说的清楚一些!!

您的adsl是什么样的?
是以太猫,路由猫,还是usb猫!!!

否则没有人能回答您的问题!!
回复

使用道具 举报

发表于 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]
回复

使用道具 举报

 楼主| 发表于 2004-1-6 10:03:19 | 显示全部楼层
usb猫,请说说,在线等!!
回复

使用道具 举报

 楼主| 发表于 2004-1-6 10:09:39 | 显示全部楼层
再说详细一点,我的猫是阿尔卡特的usb,speedtouch, 是外猫。那种蝙蝠样子的,蓝色的。在线等。
我上win2k,不用网卡,上linux,用不用网卡?
如果用网卡,我就去买,不用的话,我就不花钱了。谢谢了。。。。
回复

使用道具 举报

发表于 2004-1-6 11:48:46 | 显示全部楼层
外猫不用麻烦,adsl-setup就可以了。
回复

使用道具 举报

 楼主| 发表于 2004-1-6 15:32:56 | 显示全部楼层
谢谢楼上的弟兄。
adsl-setup 怎样配置?

摘录如下:


[[[[[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 XXX): 在这里输入ADSL的用户名

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 eth0):如果一张网卡就设置写上eth0

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是202.96.168.68 //这里根据个人不同可以修改

PASSWORD

>>> Please enter your PPPoE password:输入密码
>>> Please re-enter your PPPoE password:再输入一次

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):这里添写为2

** Summary of what you entered **

Ethernet Interface: eth0
User name: XXX
Activate-on-demand: No
DNS: Do not adjust
Firewalling: MASQUERADE

>>> Accept these settings and adjust configuration files (y/n)?

弄完后,就按一个y键。
(以上为北南兄文章里面内容)
不要急于连接,REBOOT -N
然后进入网络设置,设置ETH1固定IP,停止ETH1(我的是用他)
然后ADSL-START
PING 你的DNS,如果可以,那么,恭喜你!
如果不行,REBOOT -N
ADSL-START,这下没问题啦,尽情享受吧!
其中部分内容可能不同,仅作参考,主要在连接后,能够PING通DNS即可!]]]]]]

请问:INTERFACE处,怎么配?我没有网卡呀?
回复

使用道具 举报

 楼主| 发表于 2004-1-9 17:11:28 | 显示全部楼层
我终于知道了,为了不让和我有同样问题的人再走老路,写出来。因为是菜鸟,不对也难免。和和。
答案是不要网卡。

   现在,adsl 上网,有两种,一种要网卡,做成dhcp的client,得到isp分配的地址,动态的。还有一种要网卡的,叫pppoe, 这个e应该是以太网,也要网卡。
   我的是usb adsl,  是用pppoa上网的,不用网卡得到ip地址。这个a是指ATM。
我不能通过pppoe配置,不能用adsl-setup设置,要找驱动。我找驱动找得我好辛苦呀。555555,周围没有人能够解决,我就是在网上找,我昨天搞到夜里两点半,终于可以上网了,尽管不是很完美,但我ping通了dns,得到了动态ip.当你战胜了困难,那种感觉,爽呀!!!!!!!!!!!!!!1
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-29 12:55 , Processed in 0.084657 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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