论坛风格切换切换到宽版
  • 599阅读
  • 4回复

[问题求助]Linux ADSL 设置全攻略! [复制链接]

上一主题 下一主题
离线korey.
 
发帖
2026
C币
-235337
威望
391
贡献值
1
银元
-3
铜钱
4680
人人网人气币
0
只看楼主 正序阅读 使用道具 楼主  发表于: 2009-05-01
一、安装rp-pppoe
http://www.roaringpenguin.com/pppoe/#download下载最新版rp-pppoe 的源代码。.

tar xzvf rp-pppoe-3...5.tar.gz虚拟主机
然后进入解压生成的目录:
cd rp-p.ppoe-3.5学习
cd src

接下来就.是常规的配置编译和安装,一切按默认的即可:.

./configure
make
make install

至此,安装结束,下面是设置过程.。           女人


二、设置
1.        配置你的.网卡,运行:ifconfig eth.0.
不要.给这个网卡(连接ADSL modem的网卡)设置IP.地址,另外也不要设置成启动系统时激活网卡。.
2.        运行adsl-setup#ads.l.-setup .
Welcome to the Roaring Penguin ADSL clie.nt setup. First, I .will run some checks on your system to make su.re .th.e PPPoE client is installed properly... Looks good! Now, please enter some information:            鲜花

USER NAME
>;>;>; Enter your PPPoE .user name (defaul.t XXX): 在这里输入ADSL的用户名 .

INTERFACE
>;>;>; Enter the Ethernet. interface connected to the ADSL mod.em 服务器
For Solaris, this is likely to be s.omething like /de.v/hme0. 外贸
For Linux, it. will be ethn, where 'n' is a numb.er. (default et.h0):如果一张网卡就设置写上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' (tw.o letters, lower-case.) NOTE: Demand-activated links do not inte.rac.t we.ll wi..th dynamic IP addresses. You .may have some problems with demand-activated links. >;>;>; Enter the demand value (default no):不用写什么 .

DNS
Please enter th.e 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 wha.t you are doing and not modify your DNS setup..
>;>;>; Enter the DNS .inf.ormation here:在这里写上主用DNS地址:202.106.0.20    外汇
下一个备用DNS地址是202.106.196.115 //这里是北京CNC的DNS服务器地址.,你可以根据你所在的区域设置不同.的DNS服务器地址。 (广告)

PASSWORD
>;>;>; Please ente.r your PPPoE password:输入密码. .
>;>;>; Please re-enter. your PPPoE passw.ord:再输入一次 投资

FIREWALLING
Please choose th.e fir.ewal.l rules to use. No.te that these r.ules are very basic. .You are strong.ly encouraged to use a more sophisticated firewa.ll set.up; 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 We.b, e-mail, ftp, etc. If you are using SSH, the rules will block outgoing SSH connections which allocate a privileged source port. .

The fir.ewall choices are:. .
0 - NONE: This .script will not set any firewall rules. You are. respon.sible for ensuring the security of your machine. You are STRONGLY recommend.ed to use so.me kind of firewall rules. 服务器

1 - STANDALONE: Appropriate f.or a basic stand-alone. web-surfing w.orkstation            鲜花

2 - MASQUERADE: Appropriate for a machine acting as a.n Internet gat.eway .for a LAN (广告)
>;>;>; Choose a type of firewa.l.l (0-2):这里添写为2 (广告)

** Summary of what. you entere.d **             杀毒
Ethe.rnet Interface: eth0     健康
User name: XX.X     健康
Activate-on-demand: .No 服务器
DNS: Do. not adjust <性病>
Firewalling: MA.SQUERADE     健康
>;>;>; Accept these settings and adjust .configuration files (y/n)? .     美容

3.        查看/etc/.ppp/pap-secrets,里面应该有你刚才设置的账号和密码(密.码是*)。            鲜花

4.      .  编辑/etc/ppp/pppoe.con.f 电影
ETH=eth1 将eth1改为eth0(如果你只有一个网卡的话) USER=bxxxnxnx@sympatico..ca 将b.xxxnxnx@sympatic.o.ca改为你刚才设置的ADSL账号 别的不要动。.

5.  .  .    查看/etc/resolv.conf [成人用品]
name.server xxx.xxx.xxx.xx.x (应该是你设置的第一DNS地址)          婚庆
nameserver xxx.xxx.xxx.xxx (应该是你设置的第二.DN.S地址)    健康

6.        运行ad..sl-connect &连接,期间可以查看你的链接状态:adsl-status服务器

评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
发帖
2021
C币
-235653
威望
381
贡献值
1
银元
-1
铜钱
4484
人人网人气币
0
只看该作者 4楼 发表于: 2010-04-13
Re:Linux
[quote]原帖由 "newbie of redhat"]我用的是redhat 8,也按照上述设置了,但是遇到一个问题,拨号成功之后,仍然无法解析域名,我知道那是因为没有正确设置dns,但是,即使设置了(在win2000下拨号成功之后,查到的dns),还是无法解析,谁知道这个原?.........[/quote 发表:


你是不是设置了缺省路由,删掉再试试
发帖
2134
C币
-235037
威望
393
贡献值
1
银元
-5
铜钱
4821
人人网人气币
0
只看该作者 地板  发表于: 2010-04-13
Re:Linux
“不要给这个网卡(连接ADSL modem的网卡)设置IP地址,另外也不要设置成启动系统时激活网卡。”

离线citurlong.
发帖
2070
C币
-235437
威望
395
贡献值
1
银元
-3
铜钱
4735
人人网人气币
0
只看该作者 板凳  发表于: 2010-04-13
Re:Linux
check your firewall

离线gssasd.
发帖
2090
C币
-60639
威望
395
贡献值
1
银元
-3
铜钱
4719
人人网人气币
0
只看该作者 沙发  发表于: 2010-04-13
Re:Linux
我用的是redhat 8,也按照上述设置了,但是遇到一个问题,拨号成功之后,仍然无法解析域名,我知道那是因为没有正确设置dns,但是,即使设置了(在win2000下拨号成功之后,查到的dns),还是无法解析,谁知道这个原因吗?

快速回复
限100 字节
如果您在写长篇帖子又不马上发表,建议存为草稿
 
上一个 下一个