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 觉这篇文章写的挺全的,把它拿过来存在博客里,方便以后查询. 为 ...
随机推荐
- hex string 换转
hex2string std::stringstream R; R << std::hex << 0x1254; DWORD Str2Hex(string str){ retu ...
- SQLite中的事务操作
关于SQLite事务可以解决一些问题,比如你要插入两个数据,可以将两个数据作为同一个事务进行插入,这样如果第二个数据错误了,便自动执行回滚操作,第一个数据也不会插入成功,保证了数据的同步! 一.实际的 ...
- AutoCompleteTextView,MultiAutoCompleteTextView 用法举例
AutoCompleteTextView 按下去变红色 MultiAutoCompleteTextView(用逗号可以添加多个关键字) AutoCompleteTextView,MultiAutoC ...
- 《例说XBee无线模块开发》
<例说XBee无线模块开发> 基本信息 原书名:The Hands-on XBee Lab Manual:Experiments that Teach you XBee Wireless ...
- SVG渲染顺序及z轴显示问题(zIndex)
SVG是严格按照定义元素的顺序来渲染的,这个与HTML靠z-index值来控制分层不一样. 在SVG中,写在前面的元素先被渲染,写在后面的元素后被渲染.后渲染的元素会覆盖前面的元素,虽然有时候受透明度 ...
- 输入两个很大的正数(用C字符串表示),输出他们的乘积,将设不考虑非法输入。
#include<iostream> #include<cassert> void multiply(const char *a,const char *b) { assert ...
- ArrayBlockingQueue, LinkedBlockingQueue, ConcurrentLinkedQueue, RingBuffer
1. ArrayBlockingQueue, LinkedBlockingQueue, ConcurrentLinkedQueue ArrayBlockingQueue, LinkedBlocking ...
- 第五章 mybatis批量更新update
一.所有的指定id的模型类的同一个字段进行批量更新 实际上: update t set fileld='xx' where id in (id1,id2,...,idn) 代码: <update ...
- 如何查看Isilon的节点的CPU的信息?
使用Isilon自带的命令 isi_hw_status 使用如下的命令 dmidecode --type processor 笔者只是想了解一下F800的CPU有多少个core.上面的命令都可以获得这 ...
- JS中三目运算符和if else的区别,你弄得明白吗
今天写了一个图片轮播的小demo,用到了判断 先试了一下if else,代码如下: if(n >= count-1){ n =0; }else{ n ++; } 随后代码写完了,准备优化 ...