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 觉这篇文章写的挺全的,把它拿过来存在博客里,方便以后查询. 为 ...
随机推荐
- spring boot application.properties
1 <properties> <timestamp>${maven.build.timestamp}</timestamp><maven.build.time ...
- easyUi 的DataGrid的绑定
html代码: @{ ViewBag.Title = "Index"; Layout = "~/Views/Shared/_Index_Layout.cshtml&quo ...
- JAVA之带转义字符的json字符串解析
Json数据: { "ret": "0", "Weathers": "[{\"date\":\"20 ...
- VS Code搭建.NetCore开发环境(二)
一.安装VS Code for C#的相关插件 1.C# :https://marketplace.visualstudio.com/items?itemName=ms-vscode.csharp 2 ...
- 对拍练习:A+B
源程序: /* Problem: OJ: User: S.B.S. Time: Memory: Length: */ #include<iostream> #include<cstd ...
- JAVA 是否会发生内存泄露(转)
原文链接: JAVA 是否会发生内存泄露 几次面试,面试官都问到了这个问题,于是搜集了答案.总结出虽然java自身有垃圾回收机制,但是很多情况下还是发生内存泄露的. java导致内存泄露的原因很明确: ...
- windows server 2012将计算机图标添加到桌面
windows server 2012系统安装完以后桌面默认只有回收站一个图标,如何将window常用的图标(计算机.控制面板.网络.用户文件)的图标添加到桌面呢,下面为作者本人亲测.操作简单至极. ...
- svg image标签降级技术
1.svg image标签降级技术: svg不能很好的在anroid2.3中得到支持,需要额外的补充,IE8-以及Android 2.3默认浏览器是不支持SVG的. svg image标签降级技术,这 ...
- Android -- Camera.ShutterCallback
干货 相机拍照的回调 /** * Equivalent to takePicture(shutter, raw, null, jpeg). * * @see #takePicture(ShutterC ...
- 用Python开始机器学习(2:决策树分类算法)
http://blog.csdn.net/lsldd/article/details/41223147 从这一章开始进入正式的算法学习. 首先我们学习经典而有效的分类算法:决策树分类算法. 1.决策树 ...