Difference between pages "Help:Contents" and "PPPoE"

(Difference between pages)
 
(Kernel options)
 
Line 1: Line 1:
{{PD Help Page}}
+
This page expains how to setup and configue '''PPPoE''' connection with rp-pppoe and Funtoo Linux network.
==Reading==
+
== Kernel options ==
* [[Help:Navigation|Navigation]]
+
Make sure following kernel options are enabled
* [[Help:Searching|Searching]]
+
* [[Help:Tracking changes|Tracking changes]]
+
* [[Help:Watchlist|Watchlist]]
+
  
==Editing==
+
{{File
* [[Help:Editing pages|Editing pages]]
+
|/usr/src/linux/.config|<pre>
* [[Help:Starting a new page|Starting a new page]]
+
# zgrep PPP /proc/config.gz
* [[Help:Formatting|Formatting]]
+
CONFIG_PPP=m
* [[Help:Links|Links]]
+
CONFIG_PPP_BSDCOMP=m
* [[Help:User page|User pages]]
+
# CONFIG_PPP_DEFLATE is not set
* [[Help:Talk pages|Talk pages]]
+
CONFIG_PPP_FILTER=y
* [[Help:Signatures|Signatures]]
+
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 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>.
  
===Advanced editing===
+
== Funtoo Linux network setup ==
* [[Help:Images|Images]]
+
Funtoo openrc does not provide default template for ppp connections. We will create a custom template.
* [[Help:Tables|Tables]]
+
<console># ##i##cd /etc/netif.d/</console>
* [[Help:Categories|Categories]]
+
Create <code>interface-pppoe</code>
* [[Help:Subpages|Subpages]]
+
{{File
* [[Help:Managing files|Managing files]]
+
|interface-pppoe|<pre>
* [[Help:Moving a page|Moving (renaming) a page]]
+
#!/bin/sh
* [[Help:Redirects|Redirects]]
+
netif_pre_up() {
* [[Help:Deleting a page|Deleting a page]]
+
pppoe-connect >/var/log/pppoe.log 2>&1 &
* [[Help:Protected pages|Protected pages]]
+
}
 +
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:
 +
{{File
 +
|/etc/conf.d/netif.eth2|<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>
  
* [[Help:Templates|Templates]]
+
[[Category:Networking]]
* [[Help:Variables|Variables]]
+
[[Category:HOWTO]]
* [[Help:Namespaces|Namespaces]]
+
 
+
* [[Help:Special pages|Special pages]]
+
* [[Help:External searches|External searches]]
+
 
+
* [[Help:Bots|Bots]]
+
 
+
===Personal customization===
+
* [[Help:Preferences|Preferences]]
+
* [[Help:Skins|Skins]]
+
 
+
==Wiki administration==
+
 
+
* [[Help:Sysops and permissions|Sysops and permissions]]
+
 
+
The following features require extra permissions that are not normally granted to all wiki users.
+
 
+
* [[Help:Protecting and unprotecting pages|Protecting and unprotecting pages]]
+
* [[Help:Sysop deleting and undeleting|Sysop deleting and undeleting]]
+
* [[Help:Patrolled edits|Patrolled edits]]
+
* [[Help:Blocking users|Blocking users]]
+
* [[Help:Range blocks|Range IP blocks]]
+
* [[Help:Assigning permissions|Assigning permissions]]
+
 
+
{{Languages|Help:Contents}}
+
[[Category:Help| ]]
+
[[Category:Wiki Development]]
+
__NOTOC__
+

Revision as of 20:52, January 28, 2014

This page expains how to setup and configue PPPoE connection with rp-pppoe and Funtoo Linux network.

Kernel options

Make sure following kernel options are enabled

{{{name}}}
{{{body}}}

Next, we configure and install net-dialup/rp-pppoe (package not on wiki - please add):

# emerge rp-pppoe
# pppoe-setup

Configuration is straightforward, setup username, password and ethernet interface to use, in our example it is eth2.

Funtoo Linux network setup

Funtoo openrc does not provide default template for ppp connections. We will create a custom template.

# cd /etc/netif.d/

Create interface-pppoe

{{{name}}}
{{{body}}}

Now we will create a eth2 interface as follows:

# cd /etc/init.d
# ln -s netif.tmpl netif.eth2

Then create an /etc/conf.d/netif.eth2 configuration file that would specify a pppoe template in /etc/netif.d directory:

{{{name}}}
{{{body}}}

To complete configuration add an interface to default runlevel:

 # rc-update add netif.eth2 default