Difference between revisions of "Pppd"

From ArchWiki
Jump to: navigation, search
Line 1: Line 1:
 
[[Category:Network]]
 
[[Category:Network]]
  
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.
+
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'''.
  
 
== Configuration ==
 
== Configuration ==
  
* Make sure pppd is installed and your kernel is compiled with PPPoE support
+
* Make sure '''pppd''' is installed and your kernel is compiled with PPPoE support
  
 
  $ pacman -Q ppp  
 
  $ pacman -Q ppp  
Line 13: Line 13:
 
  CONFIG_PPPOE=m
 
  CONFIG_PPPOE=m
  
* Create the configuration file /etc/ppp/peers/pppoe
+
* Create the configuration file <code>/etc/ppp/peers/pppoe</code>
  
 
  # /etc/ppp/peers/pppoe
 
  # /etc/ppp/peers/pppoe
Line 31: Line 31:
 
  noauth
 
  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.
+
If you want usepeerdns to work, you have to edit your <code>/etc/ppp/ip-up</code> and add a command that copies <code>/etc/ppp/resolv.conf</code> to <code>etc/resolv.conf</code>.
  
 
* Edit /etc/ppp/pap-secrets
 
* Edit /etc/ppp/pap-secrets
Line 37: Line 37:
 
Put a line like this in /etc/ppp/pap-secrets
 
Put a line like this in /etc/ppp/pap-secrets
  
  "someloginname" * "yourpassword*
+
  someloginname * yourpassword
  
 
You can now start the link using the command
 
You can now start the link using the command
Line 45: Line 45:
 
== Starting pppd with Arch ==
 
== Starting pppd with Arch ==
  
* Create a symlink to /etc/ppp/peers/provider
+
* Create a symlink to <code>/etc/ppp/peers/provider</code>
  
 
  ln -s pppoe /etc/ppp/peers/provider
 
  ln -s pppoe /etc/ppp/peers/provider
Line 51: Line 51:
 
* Make sure ppp module is loaded
 
* 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:
+
If ppp support is compiled as a module, you have to load the ppp_generic module. In this case, add this to <code>rc.conf</code>:
  
 
  MODULES=(... ppp-generic ...)
 
  MODULES=(... ppp-generic ...)

Revision as of 07:54, 12 December 2005


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.

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 /usr/lib/pppd/2.4.3/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

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 ...)