CentOS下PPPoE拨号设置

1.查看并安装拨号软件:

[root@RedHat ~]# rpm -qa|grep pppoe

[root@redhat ~]# yum -y install rp-pppoe

rp-pppoe.i686 0:3.10-8.el6

2.查看adsl-setup命令所在位置:

[root@redhat ~]#whereis adsl-setup

adsl-setup:

或者直接搜索pppoe信息,yum search pppoe。

3.设置拨号:

[root@redhat ~]# pppoe-setup

首先,你会看到欢迎信息。

Welcome to the PPPoE client setup.  First, I will run some checks on

your system to make sure the PPPoE client is installed properly...

然后要求我们输入登陆名。

LOGIN NAME

Enter your Login Name (default root): (这里填宽带连接的用户名)

接着,要求我们选择使用的网络接口。我们这时候,填入我们刚刚设置的那个网卡。对于大多数只有一个网卡的朋友而言,默认eth0就可以了。

INTERFACE

Enter the Ethernet interface connected to the PPPoE modem

For Solaris, this is likely to be something like /dev/hme0.

For Linux, it will be ethX, where 'X' is a number.

(default eth0):

接下来,询问的是,adsl连接以后,是否持续保持连接。或者是自动的断开,在指定的时间(以秒数计算)内。多数情况下,我们希望手动的打开关闭连接。所以这里选择默认的no。

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)

再下来,就是dns了。建议你输入ISP的dns地址。

DNS

Please enter the IP address of your ISP's primary DNS server.

If your ISP claims that 'the server will provide dynamic 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. (server)

帐号密码是必须,输入两次。密码显示风格和其他的地方一样,不显示在屏幕上。这个,我不知道改怎么填写。太高深的问题了。希望你将你的答案和我分享。:P。

PASSWORD

Please enter your Password: (宽带连接密码)

Please re-enter your Password:

下面的设置,是表示是否允许普通用户启用/关闭 ADSL连接。默认是允许。

Please enter 'yes' (two letters, lower-case.) if you want to allow

normal user to start or stop DSL connection (default yes): (yes)

我们看下防火墙选项。这里提供的防火墙可以给你提供基本的安全保护。我不推荐你使用----你最好选择“NONE”选项。无论是什么样的用户使用,我都建议你使用额外的工具来配置防火墙规则(iptables目前看来是一个非常不错的工具)。

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): (0)

Start this connection at boot time

是否在开机时,打开这个连接?

Do you want to start this connection at boot time?** (yes)

所有的配置信息填写完成之后,系统将给出一个报告,完整的显示出你输入的配置信息。如果,你确信你输入的配置信息是正确的,输入yes写入配置文件。输入no放弃配置。

Summary of what you entered **

Ethernet Interface: eth0

User name: root

Activate-on-demand: No

DNS: Do not adjust

Firewalling: NONE

User Control: yes

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

Please enter no or yes (default no):

Congratulations, it should be all set up!

Type '/sbin/ifup ppp0' to bring up your xDSL link and '/sbin/ifdown ppp0'

to bring it down.

Type '/sbin/ADSL-status /etc/sysconfig/network-scripts/ifcfg-ppp0'

to see the link status.

测试拨号

现在,我们需要测试下我们的拨号是否配置正确了。

输入ADSL-start拨号。一般情况下,ping www.linuxidc.com就可以了。

当然关闭连接的话,使用命令adsl-stop就可以了。

设置linux拨号服务端,CentOS Linux上搭建PPPoE服务器及拨号设置相关推荐

  1. linux pppoe默认路由器,linux(centos)上搭建pppoe服务器!

    搭建pppoe,成功了的话,就觉得TM超级简单,在centos更是5步左右就能搞定 1.yum install rp-pppoe 安装pppoe,安装完成后,会有pppoe-server命令 2.安装 ...

  2. linux上搭建pppoe服务器,linux(centos)上搭建pppoe服务器

    搭建pppoe,成功了的话,就觉得TM超级简单,在centos更是5步左右就能搞定 1.安装pppoe,安装完成后,会有pppoe-server命令yum install rp-pppoe 2.安装完 ...

  3. 一、服务端开发基础(搭建Web服务器、网络基础概念、请求响应流程、配置Apache、静态网站与动态网站)

    一.建立你的第一个网站(目标) 前端开发 最终还是属于 Web 开发 中的一个分支,想要成为一名合格的前端开发人员,就必须要 充分理解Web 的概念. 构建一个专业的网站是一项巨大的工作!对于新手我们 ...

  4. linux samba 服务端口号,Linux系统学习 二十、SAMBA服务—介绍、安装、端口

    1.简介 网络数据文件共享服务器 可以和Windows中的网上邻居通用 数据共享的方法: Windows中最常用的是"网上邻居".网上邻居使用的文件系统是CIFS(通用互联网文件系 ...

  5. linux cxf服务端,cxf linux问题

    请各位大神原谅我在nutz上问这个问题..... Mar 28, 2016 4:56:46 PM org.apache.cxf.wsdl.service.factory.ReflectionServi ...

  6. 神武服务端手游开服架设服务器搭建教程linux

    神武服务端手游开服架设服务器搭建教程linux 大家好我是艾西,今天跟大家分享下怎么架设神武手游服务端 <神武>回合制网络游戏以西游记为背景,辅以多样化的门派设置.画面.活动玩法和各种创新 ...

  7. python3 ftp服务器_python3实现ftp服务功能(服务端 For Linux)

    本文实例为大家分享了python3实现ftp服务功能的具体代码,供大家参考,具体内容如下 功能介绍: 可执行的命令: ls pwd cd put rm get mkdir 1.用户加密认证 2.允许多 ...

  8. 《Linux多线程服务端编程:使用muduo C++网络库》书摘6.6.2节

    6.6.2 常见的并发网络服务程序设计方案 W. Richard Stevens 的<UNIX 网络编程(第2 版)>第27 章"Client-ServerDesign Alte ...

  9. 《Linux多线程服务端编程:使用muduoC++网络库》学习笔记

    文章目录 第1章 线程安全的对象生命期管理 1.1 当析构函数遇到多线程 1.1.1 线程安全的定义 1.1.3 线程安全实例 1.2 对象的创建很简单 1.3 销毁很难 1.4 线程安全的Obser ...

最新文章

  1. 华为汪涛:无线网络未来十年十大趋势
  2. C#.NET通过Socket实现平行主机之间网络通讯(含图片传输的Demo演示)
  3. 波形包络提取与峰值提取_研究提出从地震噪声提取微弱体波信号探测下地幔散射体的方法...
  4. Oracle中的序列 sequence 用法
  5. top20万_主播收入榜(12.10)| 快手小伊伊收入150万;薇娅抖音快手开账号
  6. java乱码怎么解决_如何解决java乱码
  7. 基4fft算法的蝶形图_原地且自动整序的FFT算法
  8. Linux操作汇总(常用命令、vim)
  9. jQuery操作input值总结
  10. Java实现人力资源管理系统
  11. VB6 自定义 Msgbox 和 InputBox 消息框
  12. 淘宝详情页设计要点有哪些 优秀淘宝详情页面多少屏合适
  13. 公鸡五钱,母鸡三钱,小鸡三只一文钱,求百钱买百鸡
  14. python之并发编程-进程之间的通信
  15. iNode客户端“未收到服务器回应,即将强行下线,请检查终端能否正常访问网络或者与管理员联系”问题与解决方式
  16. 虚拟化系统(XenServer,ESXi)-XenServer
  17. eclipse相关介绍
  18. STM32的SPI外设片选只有一个怎么破?
  19. 中国奥运在线流量的数据所做的总结性结案报告
  20. 牛顿迭代(二元函数)

热门文章

  1. Linux系统json文件打中文,如何在 Linux 终端上漂亮地打印 JSON 文件
  2. python教程简书_Python快速教程
  3. Python变量 - Python零基础入门教程
  4. linux服务器p2v,使用 Linux dd 命令实现 P2V 或 V2V
  5. python转义引号的作用_python传到前端的数据,双引号被转义的问题
  6. mysql 联合索引 性能_mysql:联合索引及优化
  7. wegame每次登陆都要滑动验证_Vue项目中实现用户登录及token验证
  8. java 注释 过时_Java 注解
  9. udl 连mysql_自己如何正确获取MYSQL的ADO连接字符串
  10. java %3c%=a%%3e_跪求帮忙解析,急!!!