centos ppp拨号

CentOS 6.4 电信ADSL 拨号连接的配置,亲测

1.下载 rp-pppoe-3.8.tar.gz
http://down1.chinaunix.net/distfiles/rp-pppoe-3.8.tar.gz

2.安装 rp-pppoe(对文件所在文件夹右键在终端打开)
解压 rp-pppoe-3.8.tar.gz :
#tar -zxf rp-pppoe-3.8.tar.gz

进入生成的目录:
#cd rp-pppoe-3.8

在所在目录内运行脚本 go:
#./go
将自动进行编译和安装

3、网络配置 (红色为输入,蓝色为注释)
[[email protected] liaojch3]# pppoe-setup             (输入 pppoe-setup )
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 cz743720): cz743720              (输入上网账号)
INTERFACE
>>> 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                 (选择你的网卡,默认为 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                  (这里填 no 或 直接回车)

DNS
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: 202.96.128.86              (输入首选 DNS 地址,这个很重要,我一开始看网上是填 sever 表示自动获取DNS,但没有成功,
                                                                                                              后来我查了自己所在城市DNS地址,这里是广东“其他地区”的首选DNS,建议百度自己的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 地址,同样查一下)
PASSWORD
>>> Please enter your PPPoE password:                     (输入密码)
>>> Please re-enter your PPPoE password:                (再次输入密码)
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                     (选择防火墙,0表示不开启防火墙)

** Summary of what you entered **
Ethernet
Interface: eth0
User name: cz743720
Activate-on-demand: No
Primary DNS:202.96.128.86
Secondary DNS:202.96.128.143
Firewalling:NONE
>>> Accept these settings and adjust configuration files (y/n)? y              (填 y 确认)
Adjusting /etc/ppp/pppoe.conf
Adjusting /etc/resolv.conf  (But first backing it up to /etc/resolv.conf-bak)
Adjusting /etc/ppp/pap-secrets and /etc/ppp/chap-secrets  (But first backing it up to /etc/ppp/pap-secrets-bak)  (But first backing it up to /etc/ppp/chap-secrets-bak)
Congratulations, it should be all set up!
Type ‘pppoe-start‘ to bring up your PPPoE link and ‘pppoe-stop‘ to bring
it down.  Type ‘pppoe-status‘ to see the link status.

[[email protected] liaojch3]# pppoe-start              ( 用 pppoe-start 进行连接)
. Connected!                     (连接成功,你可以用 ping www.baiud.com 进行测试一下)

4、上网命令(用 root 权限)
拨号上网     pppoe-start
断开上网     pppoe-stop
查看状态     pppoe-status
时间: 2024-08-09 07:41:58

centos ppp拨号的相关文章

最简易无加密方式下的ppp拨号连接

PPP拨号连接建立虚拟网卡,并可以进行路由设置.几乎所有其他的连接服务都建立在其之上,PPPoE,PPTP,L2TP等等. 而其中一个最基本的话题可能被忽略了,PPP是如何工作的,如何使用PPP建立最简易的连接. PPP协议实际上非常简单,握手信号之后即进行数据交换,由于原来的PPP连接的使用都是基于电话MODEM的点对点通信,不考虑过于复杂的加密并保证传输效率,所以PPP的缺省设置是基于tty设备的,如果使用串口就是ttyS0-ttyS? 当然,使用pppd应用于附加服务并不必须使用tty设备

linux下ppp拨号无线上网

linux下用ppp上网需要两个程序:pppd和chat.ubuntu自带pppd和chat,可以使用man查看具体使用方法. 典型的ppp拨号需要准备几个文件: 1. pppd脚本. 2. chat脚本. 3. chap-secrets文件. 4. pap-secrets文件. chat脚本是真正AT指令的发送和接收脚本,chat脚本主要有TIMEOUT,ABORT和AT指令交互等构成.TIMEOUT超时,ABORT指定AT指令交互时,出现什么样的错误chat将退出.AT指令交互是“接收”“发

0710 mux协议的作用(ppp拨号时如何和gprs进行at指令交互)

ppp拨号使gprs上网的同时如何和gprs模块进行at指令的交互,这是一个问题. 在linux中,ppp拨号上网是内核中支持的,只需要在内核配置中选上. ppp拨号的方式使gprs进行上网与at指令使gprs上网,两者之间有不同.ppp是一个将用at指令使gprs上网的那一部分给封装了起来.只要你将ppp成功的移植到了你的根文件系统中,那么你使用pppd call的时候就相当于用at指令让gprs上网了,封装的部分,包括一部分at命令,认证等等一些列的过程.最后双方认证通过,达成一致后,给了你

关于ppp拨号gprs上网的一些问题

在没有ppp的情况下,我们是在程序中去用at指令与gprs模块进行交互的,但是有了ppp后,ppp内部就做了at指令与gprs模块交互的部分了. 开始的时候,ppp内部的chat脚本,这个chat脚本是用于与gprs模块进行AT指令交互的聊天脚本.这个chat脚本用AT指令与gprs进行交互,从而激活PDP,就是进行联网成功了,终端(只的是我们向gprs发消息的那个终端)向移动终端(指的就是gprs)发送一些要联网的信息,gprs收到后,又向上级,也就是gprs的网关节点(GGSN)等等进行发送

sim900GPRS模块ppp拨号上网

一:编辑Linux内核,使其支持PPP拨号上网 [[email protected] linux-3.0]$ make menuconfig Device dirver --->Network device *** CAIF transport drivers *** <*> PPP (point-to-point protocol) support [*] PPP multilink support (EXPERIMENTAL) [*] PPP filtering <*>

LWIP network interface 网卡 初始化 以 STM32 为例子 后面会有 用 2G 或者4G 模块 用 PPP拨号的 形式 虚拟出网卡 所以先以 这个为 前提

LWIP   network interface   网卡 初始化    以  STM32  为例子  后面会有 用  2G 或者4G 模块 用 PPP拨号的 形式  虚拟出网卡  所以先以 这个为  前提 LWIP   有 一个 结构体 是 描述 物理 接口 的  即  netif Struct, 大神朱工 对这个 有个 详细的 解释 :http://blog.csdn.net/zhzht19861011/article/details/6690534 LWIP  官网  对 这个  结构体

嵌入式Linux系统---ppp拨号,4G模块上网【转】

本文转载自:http://blog.csdn.net/qq562029186/article/details/65438553 4G模块PPP拨号上网 方法1 所需文件: xxx-chat-connect,xxx-chat-disconnect ,xxx-ppp 复制以上三个文件到/etc/ppp/peers目录下 在 xxx-ppp 文件 修改你的串口设备名和pppd 拨号使用的 username,password. 在 xxx-chat-connect文件 修改你的 APN.APN/user

在ARM-linux上实现4G模块PPP拨号上网【转】

本文转载自:http://blog.csdn.net/zqixiao_09/article/details/52540887 在ARM平台上实现4G模块的PPP拨号上网,参考网上的资料和自己的理解,从一无所知到开发完成花了一周多.最后看到ARM板ping通www.baidu.com时甚是高兴,现将此过程整理如下.当然,除此之外要做的工作还有很多. 4G模块使用的SIMTECH 的SIM7100C,SIM7100C带有UART和USB接口,在考虑速度上我们使用USB接口和ARM进行通信.所以向Li

Linux下EC20实现ppp拨号(转)

源: Linux下EC20实现ppp拨号 参考: 4g模块EC20+android6.0系统移植 OK6410开发板调试EC20通信模块 原文地址:https://www.cnblogs.com/LittleTiger/p/10728766.html