Difference between pages "PPPoE" and "Form:FLOP"

From Funtoo
(Difference between pages)
Jump to: navigation, search
m
 
 
Line 1: Line 1:
This page expains how to setup and configue '''PPPoE''' connection with rp-pppoe and Funtoo Linux network.
+
<noinclude>
== Kernel options ==
+
__NOTOC__
Make sure following kernel options are enabled
+
<pre>
+
# zgrep PPP /proc/config.gz
+
CONFIG_PPP=m
+
CONFIG_PPP_BSDCOMP=m
+
# CONFIG_PPP_DEFLATE is not set
+
CONFIG_PPP_FILTER=y
+
CONFIG_PPP_MPPE=m
+
CONFIG_PPP_MULTILINK=y
+
CONFIG_PPPOE=m
+
CONFIG_PPP_ASYNC=m
+
CONFIG_PPP_SYNC_TTY=m</pre>
+
Next, we configure and install {{Package|net-dialup/rp-pppoe}}:
+
<console>
+
###i## emerge -av rp-pppoe
+
###i## pppoe-setup
+
</console>
+
Configuration is straightforward, setup username, password and ethernet interface to use, in our example it is <code>eth2</code>.
+
  
= Funtoo Linux network setup =
+
== Add a New FLOP ==
Funtoo openrc does not provide default template for ppp connections. We will create a custom template.
+
<console># ##i##cd /etc/netif.d/</console>
+
Create <code>interface-pppoe</code>
+
<pre>#!/bin/sh
+
netif_pre_up() {
+
pppoe-connect >/var/log/pppoe.log 2>&1 &
+
}
+
netif_pre_down() {
+
pppoe-stop
+
}</pre>
+
Now we will create a <code>eth2</code> interface as follows:
+
<console># ##i##cd /etc/init.d
+
# ##i##ln -s netif.tmpl netif.eth2</console>
+
Then create an <code>/etc/conf.d/netif.eth2</code> configuration file that would specify a pppoe template in <code>/etc/netif.d</code> directory:
+
<pre>template="interface-pppoe"
+
description="Your ISP"</pre>
+
To complete configuration add an interface to default runlevel:
+
<console> # ##i##rc-update add netif.eth2 default</console>
+
  
[[Category:Networking]]
+
{{#forminput:form=FLOP|query string=namespace=FLOP}}
[[Category:HOWTO]]
+
</noinclude><includeonly>
 +
{{{for template|FLOP}}}
 +
{| class="formtable"
 +
!Created on:
 +
| {{{field|Created on|input type=datepicker|date format=dd M yy}}}
 +
|-
 +
! Summary of FLOP:
 +
| {{{field|Summary|}}}{{#info:Specify a short summary of the FLOP here. One or two sentences max.}}
 +
|-
 +
! Author(s): (use wiki usernames if possible, or alternatively, full name)
 +
| {{{field|Author|values from namespace=User|list|size=100}}}{{#info:Specify the FLOP author's name here. Multiple authors can be specified, separated by commas. Will autocomplete using wiki usernames.}}
 +
|-
 +
! Maintainer(s): (use wiki usernames if possible, or alternatively, full name)
 +
| {{{field|Maintainer|values from namespace=User|list|size=100}}} {{#info:Specify the current maintainer of the FLOP. Multiple names can be specified, separated by commas. Will autocomplete using wiki usernames.}}
 +
|-
 +
! Organization:
 +
| {{{field|Organization|values from category=Organizations}}} {{#info:Specify the organization, if any, that authored this FLOP. Note that you can create your own Organization on this wiki -- add it to the Organizations category.}}
 +
|-
 +
! Source URI:
 +
| {{{field|Source URI}}} Paste the "git read-only" GitHub link for your repo (that someone would use to clone)
 +
|-
 +
|}
 +
{{{end template}}}
 +
 
 +
 
 +
== Documentation ==
 +
 
 +
Enter documentation or extended information for the FLOP below.  If you need to add more complex wikitext, use the "Edit" button after saving this page, and enter your wiki text at the bottom. This allows you to provide rich documentation content for your FLOP.
 +
 
 +
{{{standard input|free text|rows=30}}}
 +
 
 +
{{{for template|FLOPFooter}}}
 +
{{{end template}}}
 +
 
 +
{{{standard input|summary}}}
 +
 
 +
{{{standard input|minor edit}}} {{{standard input|watch}}}
 +
 
 +
 
 +
{{{standard input|save}}} {{{standard input|preview}}} {{{standard input|changes}}} {{{standard input|cancel}}}

Revision as of 01:32, 24 February 2014


Add a New FLOP