Linux下pppoe设置
在Linux下配置pppoe,一般有以下步骤:
1. 安装pppoe软件。这个不多说,ape-get install pppoe即可。
2. 设置拨号属性:
[cpp] view plain copy
- root@ubuntu:~# pppoe-setup
详细过程如下:
用户名:
[cpp] view plain copy
- USER NAME
- >>> Enter your PPPoE user name (default test): test
接口(网卡):
[cpp] view plain copy
- 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
dns:
[cpp] view plain copy
- >>> Enter the DNS information here:
密码:
[cpp] view plain copy
- PASSWORD
- >>> Please enter your PPPoE password:
- >>> Please re-enter your PPPoE password:
防火墙:
[cpp] view plain copy
- 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
保存设置:
[cpp] view plain copy
- Ethernet Interface: eth0
- User name: test
- Activate-on-demand: No
- DNS: Do not adjust
- Firewalling: NONE
- >>> Accept these settings and adjust configuration files (y/n)? y
保存成功了。
[cpp] view plain copy
- 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.
3. 开始拨号
[cpp] view plain copy
- root@ubuntu:~# pppoe-start
到了这一步,如果没有问题的话,应该就可以正常连上pppoe服务器了。
但在实际操作时,我遇到了以下两个问题:
问题1:
[cpp] view plain copy
- root@ubuntu:~# 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...
- Oops, I can't execute the program '/usr/local/sbin/pppd'. You
- must install the PPP software suite, version 2.3.10 or later.
原因:目录/usr/local/sbin/没有pppd文件
解决方法:
将/usr/sbin/pppoe-setup脚本里PPPD=/usr/local/sbin/pppd
改为PPPD=/usr/sbin/pppd,保存修改后即恢复可正常
问题2:
[cpp] view plain copy
- root@ubuntu:~# pppoe-status: Link is down (can't read pppoe PID file /var/run/pppoe.conf-pppoe.pid.pppoe)
尝试运行pppoe-connect,出现和问题一类似的错误
原因:同问题1所述
解决方法和问题1中类似:
将/usr/sbin/pppoe-connect脚本里PPPD=/usr/local/sbin/pppd
改为PPPD=/usr/sbin/pppd,保存修改后即恢复可正常
总结:
在配置pppoe时遇到奇怪的问题,很有可能是有相应的脚本的路径设置不当造成。
Linux下pppoe设置的更多相关文章
- MTU介绍以及在windows和linux下怎么设置MTU值
最大传输单元MTU(Maximum Transmission Unit,MTU)是指一种通信协议的某一层上面所能通过的最大数据包大小(以字节为单位).最大传输单元这个参数通常与通信接口有关(网络接口卡 ...
- Linux下如何设置和查看环境变量
Linux的变量种类 按变量的生存周期来划分,Linux变量可分为两类: 1 永久的:需要修改配置文件,变量永久生效. 2 临时的:使用export命令声明即可,变量在关闭shell时失效. 按作用范 ...
- Linux下防火墙设置
Linux下开启/关闭防火墙命令 1) 永久性生效,重启后不会复原 开启:chkconfigiptables on 关闭:chkconfigiptables off 2) 即时生效,重启后复原 开启 ...
- linux下dns设置详解
DNS就是Domain Name System,它能够把形如www.21php.com这样的域名转换为211.152.50.35这样的IP地址;没有DNS,浏览21php.com这个网站时,就必须用2 ...
- linux下mysql设置主从
一 主服务器修改 mysql的主从设置主要原理是 主数据库开启日志,并且创建从服务器专属账户,从服务器用该账户,读取到日志进行同步 准备两个mysql数据库(如何安装请查看,linux下mysql安 ...
- mysql在Linux下大小写敏感设置
默认情况下,mysql在windows下是不区分大小写的,但是mysql在linux下大小写规则是这样的: 1.数据库名与表名是严格区分大小写的: 2.表的别名是严格区分大小写的: 3.列名与列的别名 ...
- 【MySql】linux下,设置mysql表名忽略大小写
[障碍再现] 状况描述01: 在LINUX下调一个程序经常报出找不到表,但是我明明是建了表的, 测试的时候,遇到一些问题,从Windows平台访问虚拟机中的Web应用,经常报出找不到表 ...
- Linux下的设置静态IP命令详解
网络配置的配置文件在/etc/sysconfig/network-scripts/下,文件名前缀为ifcfg-后面跟的就是网卡的名称,可以通过双TAB键查看然后编辑,也可以使用ifconfig查看,也 ...
- linux下定时任务设置
原文http://www.blogjava.net/freeman1984/archive/2010/09/23/332715.html 觉这篇文章写的挺全的,把它拿过来存在博客里,方便以后查询. 为 ...
随机推荐
- 用IO流向存储器或SD卡中存入/读取字符的工具类
FileManager package com.kale.utils; import java.io.BufferedReader; import java.io.File; import java. ...
- Java生成8位随机邀请码,不重复
public static String[] chars = new String[] { "a", "b", "c", "d&q ...
- 7z文件格式及其源码linux/windows编译
7z文件格式及其源码的分析(二) 一. 准备工作: 1. 源码下载: 可以从官方中文主页下载:http://sparanoid.com/lab/7z/. 为了方便, 这里直接给出下载链接: http: ...
- 服务器配置多版本CUDA、CUdnn(不同Linux账户使用不同CUDA、CUdnn版本)
一.由于实验室大家使用的CUDA.CUdnn不同,所以需要在同一台服务器安装多个版本,而且要不引起冲突,方法如下: 1.一般来说CUDA安装在 /usr/local 目录下(当然你可以通过“echo ...
- Cesium中导入三维模型方法(dae到glft/bgltf) 【转】
http://blog.csdn.net/l491453302/article/details/46766909 目录(?)[+] Cesium中目前支持gltf和bgltf两种格式.“gltf是kh ...
- 一款基于jQuery的图片场景标注提示弹窗特效
今天给大家分享一款基于jQuery的图片场景标注提示弹窗特效,这款实例适合在图片上标注某个物件,单击弹出详情说明,兼容360.FireFox.Chrome.Safari.Opera.傲游.搜狗.世界之 ...
- Python 中parse.quote类似JavaScript encodeURI() 函数
from urllib import parse jsRet = 'roleO%2f'print(parse.unquote(jsRet))print(parse.quote(jsRet))输出: r ...
- 精确率、召回率、F1 值、ROC、AUC 各自的优缺点是什么?
https://www.52ml.net/19370.html 精度.召回.F1点直观理解 图片来自:http://blog.csdn.net/marising/article/details/654 ...
- LDR 和MOV 指令区别
ARM是RISC结构,数据从内存到CPU之间的移动只能通过L/S指令来完成,也就是ldr/str指令.比如想把数据从内存中某处读取到寄存器中,只能使用ldr比如:ldr r0, 0x12345678就 ...
- (转)[Unity3D]BuildPipeline.PushAssetDependencies 打包依赖包,优化UI Prefab的资源引用加载(坑爹之处)
转自:http://blog.csdn.net/chiuan/article/details/39040421#reply 1:长话短说,UI Prefab中一般会交叉引用Atlas,那么打包时候我们 ...