Differences between current version and predecessor to the previous major change of LinuxPPPoENotes.
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 10 | Last edited on Wednesday, October 24, 2007 4:07:48 pm | by ChrisBrowning | |
Older page: | version 8 | Last edited on Thursday, July 28, 2005 8:14:47 pm | by MattBrown | Revert |
@@ -10,8 +10,9 @@
Here is an example entry for a [PPPoE] connection. In the following, you would replace ''ISP'' with the PPPoE service name on your modem/AccessConcentrator, ''eth0'' with the ethernet device connected to your AccessConcentrator, ''foo@myisp.com'' with your username, ''myisp'' with a label for your ISP and ''mypassword'' with your password.
__/etc/ppp/peers/myisp__:
+<verbatim>
pty '/usr/sbin/pppoe -p /var/run/pppoe.conf-adsl.pid.pppoe -m 1412 -U -T 80 -I eth0 -S ISP'
holdoff 5
#debug
persist
@@ -24,11 +25,13 @@
lcp-echo-interval 5
lcp-echo-failure 5
remotename myisp
maxfail 0
-
+</verbatim>
__/etc/ppp/pap-secrets__:
+<verbatim>
"foo@myisp.com" myisp "mypassword"
+</verbatim>
Now, typing __pppd call myisp__ should connect the the AccessConcentrator then establish the [PPP] connection with the RemoteAccessNode (in the case of [ADSL]).
!!! Kernel Mode [PPPoE]
@@ -38,29 +41,36 @@
The framer provides a pty __/dev/ppp__ for __pppd__ to talk to, but it still needs a [PPPoE] plugin. The ppp package includes one which is supplied by the good folk at [Roaring-Penguin | http://www.roaringpenguin.com]. Oddly enough, the best docs for kernel mode seem to be in the usermode package, see __doc/KERNEL-MODE-PPPOE__.
You need a sufficiently recent version of ppp -- 2.4.2 is the minimum --, and your [Kernel] must have support for the following (this is for 2.6):
+<verbatim>
CONFIG_PPP=m
CONFIG_PPP_ASYNC=m
CONFIG_PPP_DEFLATE=m
CONFIG_PPP_BSDCOMP=m
CONFIG_PPPOE=m
+</verbatim>
You will also need the appropriate character device, in case it doesn't exist:
+<verbatim>
mknod --mode=664 /dev/ppp c 108 0
+</verbatim>
Add the following entries to __/etc/modules.conf__ according to __KERNEL-MODE-PPPOE__ (under your LinuxDistribution the file may already contain some or all of these):
+<verbatim>
alias net-pf-24 pppoe
alias char-major-108 ppp_generic
alias tty-ldisc-3 ppp_async
alias tty-ldisc-13 n_hdlc
alias tty-ldisc-14 ppp_synctty
+</verbatim>
In the following, you would replace ''ISP'' with the PPPoE service name on your modem/AccessConcentrator, ''eth0'' with the ethernet device connected to your AccessConcentrator, ''foo@myisp.com'' with your username, ''myisp'' with a label for your ISP and ''mypassword'' with your password.
__/etc/ppp/peers/myisp__:
+<verbatim>
plugin rp-pppoe.so
rp_pppoe_service ISP eth0
holdoff 5
#debug
@@ -74,9 +84,12 @@
lcp-echo-interval 5
lcp-echo-failure 5
remotename myisp
maxfail 0
+</verbatim>
__/etc/ppp/pap-secrets__:
+<verbatim>
"foo@myisp.com" myisp "mypassword"
+</verbatim>
Now, typing __pppd call myisp__ should connect the the AccessConcentrator then establish the [PPP] connection with the RemoteAccessNode (in the case of [ADSL]).