一、安装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服务器