|
|
发表于 2006-3-25 22:25:49
|
显示全部楼层
以下来自WWW.BAIDU.COM
Linux下拨号上网(adsl)配置步骤
Linux下拨号上网也是利用pppoe这个协议来完成的,因此我们的第一步应该是到网上下载一个adsl客户端软件,我下载的是rp-pppoe-3.7.tar.gz ,这类软件在网上很多,随便到google中搜索都可以得到。
第二步就是安装了(adsl是我放rp-pppoe-3.7的目录)
[root@local adsl]#tar xvfz rp-pppoe-3.7.tar.gz
[root@local adsl]#cd rp-pppoe-3.7
[root@local rp-pppoe-3.7]#./go (千万不要忘了前面的那个.啊)
注意:我用的是.gz版本的,如果是rpm的,你要参照网上的说明进行安装。
使用ifconfig命令来查看你的网卡信息,不要给网卡加IP地址。
运行命令adsl -setup
[root@local adsl]#adsl – setup (adsl是我放rp-pppoe-3.7的目录)
屏幕上会出现诸如:Welcome to the Roaring…….please your enter some information:
USER NAME:
>>>Enter your PPPoE user name (default):
在这里输入电信局给你的用户名
NTERFACE
>>> 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):
用缺省的no就可以了。
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:
这里填你ISP的DNS地址,我填写的是server
PASSWORD
>>> Please enter your PPPoE password:
ADSL拨号密码。
然后运行adsl-start,就可以拨通adsl
[root@local rp-pppoe-3.7]#adsl-start
adsl-stop命令可以断开连接。
[root@local rp-pppoe-3.7]#adsl-stop |
|