码迷,mamicode.com
首页 > 其他好文 > 详细

ADSL pppoe 拔号工具rp-pppoe

时间:2019-06-30 12:31:24      阅读:97      评论:0      收藏:0      [点我收藏+]

标签:choices   上网   dns服务   after   make   links   包管理   默认   letters   

rp-pppoe 目前在各大发行版本都是存在的,比如Redhat/Fedora、红旗、Slackware、Debian、SuSE等系统,都是采用这个拔号软件,所以您大可不必为下载源码编译安装。只需要在各大发行版的安装盘中就可以找得到;请用各大发行版自带的软件包管理工具来安装此软件包;

如果您用的是各大发行版提供的rp-pppoe软件包 比如 RPM包的系统是用 rpm -ivh rp-pppoe*.rpmSlackware 系统是用 installpkg rp-pppoe*.tgz 在Redhat/Fedora 中可以通过图形配置工具来完成,redhat-config-network 命令,调用配置网络,要通过XDSL来添加拔号,比较简单;

所有发行版通用的方法是adsl-setup 命令来配置ADSL;

  1. [root@localhost ~]# adsl-setup  注:配置pppoe拔号,请文档下面,都差不多;  
  2. [root@localhost ~]# adsl-start  注:启动拔号;  
  3. [root@localhost ~]# adsl-stop  注:断开连接;  

5.12 如果是源码包安装,我们要自己来编译安装;

[root@localhost ~]# tar zxvf  rp-pppoe-3.8.tar.gz

[root@localhost ~]# cd rp-pppoe-3.8

[root@localhost rp-pppoe-3.8]# ./go

Welcome to the Roaring Penguin PPPoE 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 bxxxnxnx@sympatico.ca): 在这里添写你的拔号用户名;就是服务商提供的;

>>> Enter the Ethernet interface connected to the DSL 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 如果是乙太接口的ADSL,就要在这里写上接猫的那个网络接口号。此处是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): 注:默认回车

>>> Enter the DNS information here: 202.96.134.133  注:在这里写上DNS服务器地址;可以和提供商要,也可以用我写的这个;

Please enter the IP address of your ISP‘s secondary DNS server.

If you just press enter, I will assume there is only one DNS server.

>>> Enter the secondary DNS server address here: 202.96.128.143 这是第二个DNS服务器地址;

>>> Please enter your PPPoE password:在这里输入用户的密码;

>>> Please re-enter your PPPoE password: 确认密码;

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 注:在这里写上2,可以共享上网的;当然还得加一条防火墙规划 ;

Ethernet Interface: eth0

User name:dxxx

Activate-on-demand: No

Primary DNS:        202.96.134.133

Secondary DNS:      202.96.128.143

Firewalling:        MASQUERADE

>>> Accept these settings and adjust configuration files (y/n)? y 注:是不是保存配置;

ADSL pppoe 拔号工具rp-pppoe

标签:choices   上网   dns服务   after   make   links   包管理   默认   letters   

原文地址:https://www.cnblogs.com/fanweisheng/p/11109313.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!