Difference between revisions of "PPPoE"

m (Kernel options)
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
This page expains how to setup and configue '''PPPoE''' connection with rp-pppoe and Funtoo Linux network.
 
This page expains how to setup and configue '''PPPoE''' connection with rp-pppoe and Funtoo Linux network.
 
== Kernel options ==
 
== Kernel options ==
Make sure following kernel options are enabled
+
Make sure following kernel options are enabled:
<pre>
+
 
 +
{{File
 +
|/usr/src/linux/.config|<pre>
 
# zgrep PPP /proc/config.gz
 
# zgrep PPP /proc/config.gz
 
CONFIG_PPP=m
 
CONFIG_PPP=m
Line 12: Line 14:
 
CONFIG_PPPOE=m
 
CONFIG_PPPOE=m
 
CONFIG_PPP_ASYNC=m
 
CONFIG_PPP_ASYNC=m
CONFIG_PPP_SYNC_TTY=m</pre>
+
CONFIG_PPP_SYNC_TTY=m
 +
</pre>}}
 
Next, we configure and install {{Package|net-dialup/rp-pppoe}}:
 
Next, we configure and install {{Package|net-dialup/rp-pppoe}}:
 
<console>
 
<console>
Line 24: Line 27:
 
<console># ##i##cd /etc/netif.d/</console>
 
<console># ##i##cd /etc/netif.d/</console>
 
Create <code>interface-pppoe</code>
 
Create <code>interface-pppoe</code>
<pre>
+
{{File
 +
|interface-pppoe|<pre>
 
#!/bin/sh
 
#!/bin/sh
 
netif_pre_up() {
 
netif_pre_up() {
Line 32: Line 36:
 
pppoe-stop
 
pppoe-stop
 
}
 
}
</pre>
+
</pre>}}
 
Now we will create a <code>eth2</code> interface as follows:
 
Now we will create a <code>eth2</code> interface as follows:
 
<console>
 
<console>
Line 39: Line 43:
 
</console>
 
</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:
 
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"
+
{{File
description="Your ISP"</pre>
+
|/etc/conf.d/netif.eth2|<pre>
 +
template="interface-pppoe"
 +
description="Your ISP"
 +
</pre>}}
 
To complete configuration add an interface to default runlevel:
 
To complete configuration add an interface to default runlevel:
 
<console> # ##i##rc-update add netif.eth2 default</console>
 
<console> # ##i##rc-update add netif.eth2 default</console>

Revision as of 20:52, 28 January 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:

# 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