|
|
Line 1: |
Line 1: |
| This page expains how to setup and configue '''PPPoE''' connection with rp-pppoe and Funtoo Linux network.
| | Funtoo Quick Install Image 013 |
| = Kernel options =
| |
| 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>
| |
| Install and configure <code>rp-pppoe</code>. | |
| <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>.
| |
| = Funtoo Linux network setup =
| |
| 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]]
| |
| [[Category:HOWTO]]
| |