Archlinux中PPPoE 拨号的建立

其他Linux/Unix/BSD/OSX等发行版讨论
回复
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

Archlinux中PPPoE 拨号的建立

#1

帖子 skyx » 2008-02-04 15:43

图片

http://wiki.archlinux.org/index.php/PPP ... _with_pppd

PPPoE Setup with pppd
From ArchWiki
Jump to: navigation, search


This page explains how to set up a PPPoE connection using pppd and the kernel PPPoE driver. Note that this setup does not need rp-pppoe. ( With rp-pppoe you can have only one account configuration, however, using the method described below, you can have several account configurations at the same time and use anyone of them easily. Besides the dial speed of pppd is much faster than pppoe-start. )
Configuration

* Make sure pppd is installed and your kernel is compiled with PPPoE support

$ pacman -Q ppp
ppp 2.4.3-1

$ zgrep CONFIG_PPPOE /proc/config.gz
CONFIG_PPPOE=m

* Create the configuration file /etc/ppp/peers/pppoe

# /etc/ppp/peers/pppoe

plugin rp-pppoe.so
# network interface
eth0
# login name
name "someloginname"
usepeerdns
persist
# Uncomment this if you want to enable dial on demand
#demand
#idle 180
defaultroute
hide-password
noauth

If you want usepeerdns to work, you have to edit your /etc/ppp/ip-up and add a command that copies /etc/ppp/resolv.conf to etc/resolv.conf.

* Edit /etc/ppp/pap-secrets

Put a line like this in /etc/ppp/pap-secrets

someloginname * yourpassword

You can now start the link using the command

pppd call pppoe

Alternatively, you can use this

pon pppoe

If you want to make the "pppoe" configuration file the default one, just creat a link /etc/ppp/peers/provider point to the default one and then call

pon

To close a pppoe connection, use this

poff pppoe

Starting pppd with Arch

* Create a symlink to /etc/ppp/peers/provider

ln -s pppoe /etc/ppp/peers/provider

* Make sure ppp module is loaded

If ppp support is compiled as a module, you have to load the ppp_generic module. In this case, add this to rc.conf:

MODULES=(... ppp-generic ...)

* Add ppp to DAEMONS in /etc/rc.conf

DAEMONS=(... ppp ...)
no security measure is worth anything if an attacker has physical access to the machine
hujy
帖子: 218
注册时间: 2006-05-25 10:13
来自: 明州

#2

帖子 hujy » 2008-02-04 15:56

有必要吗,开那么多帖子,内容仅仅转载wiki的内容。
skyround
帖子: 96
注册时间: 2006-05-13 15:25

#3

帖子 skyround » 2008-02-04 16:25

直接用rp-pppoe不就行了
pppoe-setup
pppoe-start
pppoe-stop

开机自动拨号在/etc/rc.conf的DAEMONS里加入adsl
yumeng
帖子: 10
注册时间: 2007-09-17 16:17

#4

帖子 yumeng » 2008-02-11 13:21

最简单的方法是,安装时选择rp-pppoe软件包,安装完毕后pppoe-setup,DNS填server,pppoe-start开始连接,和Gentoo一样的方法。
头像
猛将兄
帖子: 2052
注册时间: 2005-10-19 17:33

#5

帖子 猛将兄 » 2008-02-11 13:34

arch的wiki很好,基本上所有资料都有的
头像
haige
帖子: 315
注册时间: 2006-03-16 16:29

#6

帖子 haige » 2008-02-21 15:30

安装完毕后pppoe-setup,DNS填server,pppoe-start开始连接
消除浮躁,静心学习,每天都在进步。
KIS
帖子: 30
注册时间: 2009-07-13 15:12

Re: Archlinux中PPPoE 拨号的建立

#7

帖子 KIS » 2010-08-15 0:43

Besides the dial speed of pppd is much faster than pppoe-start.
为什么会快很多呢。。。?貌似的确快很多的
回复